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.
~ Use findchild to find a deity on this hero and set the focus to it. We don't need anything more than the component because there is never going to be more than one deity present on a hero at any one time.
perform hero.findchild[Deity].setfocus
~ If we didn't find a deity, then we have no focus and should do nothing further.
doneif (state.isfocus = 0)
~ If we got this far, we have a deity, so fulfill our bootstrap condition
field[abValue].value = 1
~ Use the focus previously established and pulltags to transform the WepProf tag on the deity (representative of their favored weapon) into a Target tag on us.
perform focus.pulltags[WepProf.?,Target]
~ Find the copy of Weapon focus we marked with a custom tag and set it to be the focus of this script.
perform hero.findchild[BaseFeat,"Custom.DeiWeapFoc"].setfocus
~ If, for some reason, that feat isn't found then do nothing further
doneif (state.isfocus = 0)
~ Push the Target tag we got last eval script from ourselves to the focus
perform focus.pushtags[Target.?]
You can just use the macro #hasarchetype[].I see how to make the feat valid only for a specific class. Now what I want to do is make it only valid for a specific archetype.
#hasarchetype[XXXXXXXX] <> 0