Menu

#133 Some of BG2 GUIScripts changes

closed-accepted
nobody
GUIScripts (38)
5
2009-05-19
2009-05-05
mattinm
No

Information is saved (SetPlayerStat) directly after it is received. I'm working on an implementation for on-the-fly saving, but moving it into "batches" seemed easiest for now (perhaps always). GetPlayerStat should now be able to be called if the GUICGX comes after the value would have been gotten, which could help clean up some of the code. I'll look into that coming up.

I added a function: IsMultiClassed(actor, verbose) to GUICommonWindows that acts similar to IsDualClassed. I haven't implemented it yet, but it should clean up some of my level up script and make checking elsewhere simpler. It return an array whereby the first value is the number of classes and the subsequent values are the class id's of the given classes. If verbose is set to 0, it returns 0 if the actor isn't multiclassed.

Added full multi-class support to GetStatOverview(pc, LevelDiff) in GUIREC. It expects an array for LevelDiff if the character is multiclassed, and either an array with LevelDiff[0] being the correct difference for a dual-classed character, or just an integer. If no value is passed, LevelDiff is properly changed to an array of [0,0,0] if the character is multi-class.

Updated LevelUp. Update information is now saved, including: hp, proficiencies, saves, skills, thac0, backstab (needed?), lay-on-hands (not fully), lore, and, of course, level. Still pretty rough, but it works for the most part. I'm working on implementing new wizard and divine spells and generally cleaning it up. It'd be nice if people can give it a look or test it out.

Discussion

  • mattinm

    mattinm - 2009-05-05

    All my changes to GUIScripts/bg2/

     
  • Jaka Kranjc

    Jaka Kranjc - 2009-05-05

    Thank you very much! :) I've applied the chargen part of the patch and added a review of the rest to the forum (I saw it there first).

    The swashbuckler was added to the skills table and now I'm working on fixing the barbarian reckognition.

     
  • mattinm

    mattinm - 2009-05-06

    No problem :). Hopefully I can have the level up script working soonish.

     
  • mattinm

    mattinm - 2009-05-13

    New LevelUp scripts (and other improvements)

     
  • mattinm

    mattinm - 2009-05-15

    Latest updates

     
  • mattinm

    mattinm - 2009-05-17

    Reactivation, HLAs

     
  • mattinm

    mattinm - 2009-05-17

    Better HLA support and dual class reactivation primarily. Same link for the full list.

     
  • Jaka Kranjc

    Jaka Kranjc - 2009-05-19
    • status: open --> closed-accepted
     
  • Jaka Kranjc

    Jaka Kranjc - 2009-05-19

    This has snuck in trunk already.

     

Log in to post a comment.