SeeleyOne |
December 24th, 2014 09:19 AM |
Quote:
Originally Posted by Paragon
(Post 200177)
Natural armor no longer seems to be displaying parenthetically as of the most recent update. I'm not sure but that this might have been going on for a while, but its a bit of a problem since you need to know how much of Toughness is armor for weapons with points of armor penetrating modifier.
|
Just to help clarify, is that armor being added with a Racial Ability or a Racial Property. Just comparing the Racial Ability of Natural Armor, which has id abArmor, and the Racial Property of Armor +2, which has id rpArmor2, there are some very distinct differences in that eval sripts.
Racial Ability of Natural Armor, abArmor
Phase: Effects
Code:
~set the defensive value for the armor
perform hero.child[armNatural].setfocus
focus.field[defDefense].value = field[abilValue].value
~if we've been assigned a custom name, assign it to the armor
if (empty(field[livename].text) = 0) then
focus.field[livename].text = field[livename].text
endif
~append the value to both names
field[livename].text = field[name].text & " " & signed(field[abilValue].value)
focus.field[livename].text = focus.field[name].text & " " & signed(field[abilValue].value)
Armor +2, rpArmor2
Phase: Initialization
Code:
~set the defensive value for the armor
perform hero.child[armNatural].setfocus
focus.field[defDefense].value = 2
I just tested both of them. They both work correctly, that is adding to toughness and putting the armor value in parenthesis. Perhaps you are using a different method? If so perhaps you could look at these as examples. A note about the first method -- the abArmor -- it is meant to be used as a bootstrap (like all of the racial things) but it requires a value in that bootstrap. Just assign a field of abilValue of 2 or whatever as it is being bootstrapped.
|