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

Reply
 
Thread Tools Display Modes
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old September 16th, 2013, 12:46 PM
I figured I'd post a list of the shutdown codes I've come across as a reference to others and for myself since I tend to forget what ones I need unless I'm copying a thing that's already done.

Code:
doneif (tagis[Helper.SpcDisable] <> 0)
Used in class specials and racial specials (I believe) so that the code doesn't run if they're disabled (or replaced since replacing gives something the SpcDisable tag)

Code:
doneif (tagis[Helper.ShowSpec] <> 1)
Used for class specials so they don't affect the hero before they are available.

Code:
doneif (tagis[Helper.FirstCopy] = 0)
Used for abilities that you add multiple times but only have one net effect in the end (sneak attack, monk's unarmed strike, etc)

NOTE: the Helper.FirstCopy tag is placed early in the Post-Levels phase so it is useless to use this shutdown code earlier than that.

Code:
doneif (tagis[Helper.FtDisable] <> 0)
Used on Feats so that the feat doesn't work when it's disabled (whether that means the prereqs aren't met or it's been disabled by something else)

Code:
doneif (field[pIsOn].value = 0)
Used in Adjustments. The pIsOn field is the check box to say if an adjustment is enabled or disabled.

Code:
doneif (field[pChosen].ischosen = 0)
Used in adjustments that have a drop-down selector so the code doesn't run is nothing is selected.

Code:
doneif (field[abilActive].value = 0)
doneif (field[abilAct2].value = 0)
Used on an ability with an activation to disable the code when the Ability is not activated.

Code:
doneif (field[gIsEquip].value = 0)
Used for items that can be equipped.

Code:
doneif (field[usrChosen1].ischosen = 0)
doneif (field[usrChosen2].ischosen = 0)
Used for items that have drop-downs.

If anyone has more feel free to add them. If anyone has any comments on these one add them. I'll keep the post edited to keep everything up-to-date.

Last edited by AndrewD2; September 17th, 2013 at 12:16 PM.
AndrewD2 is offline   #1 Reply With Quote
Umarian
Senior Member
 
Join Date: Apr 2010
Location: Lemont, IL
Posts: 320

Old September 16th, 2013, 12:59 PM
There is a detailed thread on these here also with a lot more detail on their use.
Umarian is offline   #2 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old September 17th, 2013, 09:32 AM
Don't forget abilAct2, for the second activation box (when there are two).
Aaron is offline   #3 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old September 17th, 2013, 10:12 AM
True and usrChosen2
AndrewD2 is offline   #4 Reply With Quote
Reply


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 02:46 PM.


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