Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Anpumes
Member
 
Join Date: Sep 2012
Posts: 57

Old April 18th, 2014, 10:46 AM
Yet again, I'm banging my head against my keyboard trying to figure out why a script is not working. The script is as follows:
Post-attributes; 10000
Code:
   ~Get our encumbrance level - if we're encumbered by that, or if we're wearing armor or shield, we're disabled
   if (hero.tagis[Encumbered.Light] = 0) then
      perform assign[Helper.SpcDisable]
   done
   endif

   ~If we're not shown, disabled or the first copy, get out now
   doneif (tagis[Helper.ShowSpec] = 0)
   doneif (tagis[Helper.SpcDisable] <> 0)
   doneif (tagis[Helper.FirstCopy] = 0)

   ~assign our climb speed and climb skill bonus
   #value[xClimb] += hero.child[cMnkSpeed].field[xCount].value *10
   #skillbonus[skClimb] += 8
Timing - After Script; Encumber Final
This code is very similar to, and running at the same timing as, the Monk's AC Bonus and Fast Movement class specials but while those seem to work perfectly when adding armor or being encumbered, this one does not. It simply dos not disable as I would expect. As far as I can tell, the Helper.SpcDisable is not reaching the class special and I simply do not understand how or why this is happening.

Now I've played with timing, including learning that Encumber Final runs at Post-attributes; 2000. Nothing I've tried in Post-attributes gets it work and if I move it to Final Phase, anything after 15000 disables it completely. I'm very lost on what is going on here and now believe that there is something fundamentally wrong with my code.

Thanks again, in advance, for any help.

Last edited by Anpumes; April 18th, 2014 at 11:46 AM. Reason: Forgot to actually include my problem...
Anpumes is offline   #1 Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:01 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.