• 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

Armored Grace

Kaleb

Well-known member
I am tring to make a new class ability Armored Grace which removes the Tag Armored slows and reduces the armored check penalty to 0 I copied the adjustment from the spell Efortless armor spell and used the eval script for it but I am getting an error in the color bolded area cannot access field pIson
question would it be better to change it to done if hero.child,pChosen
Idont quite know how to finish it I want to point it to if the chosen is wearing armor. then have the preform statement remove the armors slows tag and reduces the armor check penalty to 0. whats the best way to do this?


~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)

~if nothing's been chosen, get out now
doneif (field[pChosen].ischosen = 0)

perform field[pChosen].chosen.delete[ArmorCateg.Slows]

~ Increase/Decrease ACP but don't let the ACP be lowered
~ to more than zero.
field[pChosen].chosen.field[arArmorChk].value = minimum(field[pChosen].chosen.field[arArmorChk].value + field[pAdjust].value, 0)
 
Here is the script logic you need and can just past into your class ability. Its made to run at Post-Level/10000.

Code:
~ 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)

~ Loop through all armor on the character
foreach pick in hero from BaseArmor where "EquipType.Armor"
  ~ Remove armor slow tag
  perform eachpick.delete[ArmorCateg.Slows]
nexteach
 
Back
Top