Mathias,
I am having an issue with a script timing and I don't know why.
The total armor field is supposed to calculate the master's armor points.
Here's the script giving me the issue:
(I have used the master.child and hero.master.child on the script and it still does the same thing. So I've ruled out the scripting)
When I have the ability active, the script executes but the armor on the master is not picking up the +1, it's reading it as 0. I learned from this from running debug scripts on both abilities. I'm not sure why but the ability script is sending the +1 through, I can see it in the fields of the master, but the master's armor script is not picking it up when it calculates the armor points. In my summary panel info window and field list, however, the armor point is showing up. The total armor script is not adding in.
Did I do something incorrect in my source code or is hero lab giving me a hard time?
I am having an issue with a script timing and I don't know why.
The total armor field is supposed to calculate the master's armor points.
Code:
<eval index="1" phase="Final" priority="15000" name="Calculate Armor Total"><![CDATA[
field[armTotal].value = field[armArmor].value + field[armShield].value + field[armType].value + field[armDesc].value
field[armTotal].value += field[armFocus].value + field[armHelmet].value + field[armMutate].value + field[armVehicle].value
field[armTotal].value += field[armArtifact].value
]]></eval>
Here's the script giving me the issue:
HTML:
<eval index="1" phase="Effects" priority="2000"><![CDATA[
doneif (tagis[Helper.Disable] <> 0)
doneif (field[abilActive].value = 0)
~our rider gets +1 armor
if (field[abilActive].value <> 0) then
hero.master.child[mscArmor].field[armVehicle].value += 1
endif
]]></eval>
(I have used the master.child and hero.master.child on the script and it still does the same thing. So I've ruled out the scripting)
When I have the ability active, the script executes but the armor on the master is not picking up the +1, it's reading it as 0. I learned from this from running debug scripts on both abilities. I'm not sure why but the ability script is sending the +1 through, I can see it in the fields of the master, but the master's armor script is not picking it up when it calculates the armor points. In my summary panel info window and field list, however, the armor point is showing up. The total armor script is not adding in.
Did I do something incorrect in my source code or is hero lab giving me a hard time?
Last edited: