Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Kaleb
Senior Member
 
Join Date: Aug 2010
Posts: 576

Old December 25th, 2016, 07:38 PM
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)
Kaleb is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old December 27th, 2016, 02:36 PM
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.
ShadowChemosh is offline   #2 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:00 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.