Senior Member
Join Date: Oct 2016
Posts: 621
|
Hi all, long time no talk!
I am making a custom archetype and one of the abilities has an activatable ability that raises his Con for a time. I figured out the ability but I can't get it to be only active when activated, for the life of me I can't remember how please help here is my code Pre-attr/10000 ~ If we're not shown, just get out now doneif (tagis[Helper.ShowSpec] <> 1) ~ if we've been disabled, get out now doneif (tagis[Helper.SpcDisable] <> 0) hero.child[aCON].field[aNormMod].value += 2 What am I doing wrong? |
#1 |
Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
Is that code directly on the archetype or on a class/racial special?
From the looks of it that will just increase your mod all the time. You need to add: if (field[abilActive].value <> 0) then hero.child[aCON].field[aNormMod].value += 2 endif Also, I think your doneif for showSpec is incorrect, shouldnt it be <> 0 not <> 1? |
#2 |
Senior Member
Join Date: Oct 2016
Posts: 621
|
ok I'll check that out thanks
|
#3 |
Senior Member
Join Date: Oct 2016
Posts: 621
|
code is on the special
|
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Nope I think your thinking that it should be "= 0" to follow the LW standards but having it be "<> 1" works just fine. In both cases we are saying if the tag is NOT present then we are stopping.
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#5 |
Senior Member
Join Date: Oct 2016
Posts: 621
|
Thanks guys
|
#6 |
|
|