Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I thought when using childfound instead of child that HL was not suppose to throw an error if the thing was not found? From the wiki "Transitions to the pick context corresponding to the first pick within the container that derives from the thing with the id specified. This transition is identical to "child[id]", except that the existence of the child pick is optional. If the child is found, the transition occurs normally. If the child does not exist, no run-time error is reported, although the transition still fails to resolve."
I have the following code on a new class I am creating: Code:
~First 498 hero.childfound[cAnimClass].field[CompClLev].value -= 3 hero.childfound[cAnimComp].field[CompLevBas].value -= 3 hero.childfound[cAnimComp].field[CompLevel].value -= 3 I am mis-reading what childfound does or is their another way to test that a Thing is really their before trying to affect it? 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. |
#1 |
|
|