View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 18th, 2011, 12:30 PM
Quote:
Originally Posted by Jobe00 View Post
foreach pick in hero from BaseWep where "Helper.Finesse"
eachpick.field[manDisarm].field[manCMD].value += field[abValue].value
eachpick.field[manSunder].field[manCMD].value += field[abValue].value
nexteach[/code]
Ah ok. manDisarm is a Total Level Thing. Sorry best I can think of to describe it. There is not a specific manDisarm for Each Weapon. Also you can never have a field of a field. You can have a field of a child but never a field of a field.

So it goes Hero_Character.Child_Thing.Child_Field.Value_of_ field Hope that makes sense.

So you have a Disarm Value on your Character or Hero not on each weapon.

So what you want is simply:
Code:
hero.child[manDisarm].field[manCMD].value += field[abValue].value
hero.child[manSunder].field[manCMD].value += field[abValue].value
And totally remove the whole "ForEach" loop you have around them. As there is never more than one manDisarm on a hero.

Hope that helps.

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   #27 Reply With Quote