• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Remove armor slows tag

I am trying to delete the armor slows tag from heavy armor made of this material.


~ If we're armor, change our class if necessary - we become one class
~ lighter.

~note that here, we're only replacing the ArmorClass tag. The
~BaseArmTyp tag isn't changed by this material

elseif(container.parent.tagis[component.BaseArmor] <> 0) then
if (container.tagis[ArmorClass.Medium] <> 0) then
perform container.tagreplace[ArmorClass.Medium,ArmorClass.Light]
perform container.delete[ArmorCateg.Slows]

if (container.tagis[ArmorClass.Heavy] <> 0) then
perform container.tagreplace[ArmorClass.Heavy,ArmorClass.Medium]
perform container.delete[ArmorCateg.Slows]
endif
endif

~ Add to our custom description if we're armor
if (container.parent.tagis[component.BaseArmor] <> 0) then
field[mtDesc].text &= " Decreased armor category and penalties."
endif

~ If we are using the Piecemeal Armor rules and have been equipped,
~ forward a tag to the PieceArmor thing so that we can reduce armor check
~ penalty and arcane spell failure if appropriate.
doneif (hero.tagis[source.UCPieceArm] = 0)
doneif (container.parent.field[gIsEquip].value = 0)

perform hero.child[PieceArmor].assign[Helper.MatCermite]

another question if I do not want to use the piecemeal armor rules for this material can I delete the logic below the en

Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'mCermite' (Eval Script '#1') on line 8
-> Encountered an 'else' statement with no 'if' statement to match
 
Now I am getting an invalid use of reserved word on this line

if(container.parent.tagis[component.BaseArmor] <> 0) then
 
Back
Top