Senior Member
Join Date: Aug 2010
Posts: 576
|
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) |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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 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. |
#2 |
|
|