Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
hero.child[spSpeawit1].etc
hero.findchild[component, "tag expression"].etc
hero.findchild[BaseSpell,"Helper.SpellLike & Target.spSpeawit1 & Custom.GnomeSpell"].etc
Correct. But you are usually using it when you want a specific Pick that has Tags that may identify it.Seems the same to me, because even with findchild you might get more than one match and the default is likely to return the first match found. Thank you for the explanation.
hero.findchild[BaseWep,"thingid.wBite & PolyAdjust.Attack".field[].value
Just to be clear on the typical uses, using findchild like you do below is useful for when you have different things that all bootstrap the same thing but you want to find the pick that's been bootstrapped by a particular pick/thing, and that has been tagged appropriately when it was bootstrapped?Find child is allows you to find one occurrence of a specific occurrence of a child with a custom tag on it.
Lets say you want to find the specific "Speak With Animals" SLA from a Gnome.
You could just look for speak with animals by going
Code:hero.child[spSpeawit1].etc
But that would find the first occurrence of it whether its from a class a, a race, etc, so you might get the Gnome ability, but you might not.
so you use find child instead.
Find child works like this
Code:hero.findchild[component, "tag expression"].etc
So using my Speak with Animals example, to find the Gnome one you would use
Code:hero.findchild[BaseSpell,"Helper.SpellLike & Target.spSpeawit1 & Custom.GnomeSpell"].etc
Now you've specified exactly which copy of Speak With Animals you want to affect with your script.
EDIT: I just realized I replied on the authoring kit forum and not in pathfinder where I thought I was, but the idea should still be the same