• 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

findchild under d20?

areteas

Well-known member
Anyone know where I can find documentation on the findchild function under d20? Or maybe could help me translate a PF eval script to a d20-friendly version? I see from other threads findchild exists but I gather it has different syntax under D20.
The script I'm trying to adapt is to create the MM3/Races of Eberron shifter race using ShadowChemosh's modified Shifter race from the PF community package.
Code:
~First 450
~because custom class specials test their existence at First/500, they can't run a script before then
~however, we need to find out what type has been selected, so we know which set of abilities to add
~therefore, we make the check from the class, rather than the bloodline, and forward that tag to the hero
if (hero.findchild[RaceAbil,"thingid.raShifting"].field[usrChosen1].ischosen <> 0) then
perform hero.findchild[RaceAbil,"thingid.raShifting"].field[usrChosen1].chosen.forward[Custom.?]
endif
Custom.x tags don't seem to exist in d20 so I imagine that has to be replaced with User.? at the end there.
However I can't figure out how to fix the findchild part. The raShifting custom ability has a pick field that specifies what type of shifter they are from a list and then sets a tag (i.e. Razorclaw gets User.ShifterRC). The script is designed to look this up. I can't figure out how to put this in a way d20 will accept, though (tried replacing RaceAbil with CustAbil or just Abil, but I'm not even sure it accepts the category,thingid syntax anyway).
 
childfound

Simple example: hero.childfound[rDarkVis].field[Value].value

All this does is apply whatever you are using it for based on whether the child is found or not, and if it isn't present, it allows the script to continue without error. Others can correct me if I've missed something. The d20 files are notoriously lacking when compared to the PF files, so you might not be able to move scripts over.
 
d20 has a different set of components than Pathfinder. For the component, try "BaseSpec" instead of "RaceAbil"
 
Thanks for both good tips. One last question - is the Item Selection section of Custom Abilities under d20 usable? I have added some a Custom Ability called Shifting and hoped the user could use it to select the breed of shifter their character is (and thus bootstrap appropriate weapons/abilities), but it appears the Special tab of HeroLab with no way for them to make a selection.
 
Custom Class Abilities? They should be able to make a selection on the class tab, nothing makes selections on the Special tab.
 
I've been able to 'trick' specials by adding them to the Feats list and bootstrapping that selection onto the Special. As Aaron said, there is really no way to have a chooser in the Specials tab.
 
Back
Top