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.
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)
Used for class specials so they don't affect the hero before they are available.
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.
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)
Used in Adjustments. The pIsOn field is the check box to say if an adjustment is enabled or disabled.
Used in adjustments that have a drop-down selector so the code doesn't run is nothing is selected.
Used on an ability with an activation to disable the code when the Ability is not activated.
Used for items that can be equipped.
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.
Code:
doneif (tagis[Helper.SpcDisable] <> 0)
Code:
doneif (tagis[Helper.ShowSpec] <> 1)
Code:
doneif (tagis[Helper.FirstCopy] = 0)
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)
Code:
doneif (field[pIsOn].value = 0)
Code:
doneif (field[pChosen].ischosen = 0)
Code:
doneif (field[abilActive].value = 0)
doneif (field[abilAct2].value = 0)
Code:
doneif (field[gIsEquip].value = 0)
Code:
doneif (field[usrChosen1].ischosen = 0)
doneif (field[usrChosen2].ischosen = 0)
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: