Please note I did this off the top of my head so misspelled/mistype words could happen.
Code:
doneif (field[gIsEquip].value = 0)
doneif (field[gIsAttuned].value = 0)
~ Grant Proficient & Expertise to All Tools carried and Advantage to All
~ Tools the Bearer is Proficient with.
foreach pick in hero from BaseEquip where "ToolCat.Artisan"
perform eachpick.assign[Proficienc.Tool]
perform eachpick.assign[Hide.Tool]
~ Pull the tags from the tool to our self. This is an easy way to build a list
~ of tags that we want to assign to the hero.
perform eachpick.pulltags[ProfTooDbl.?]
nexteach
~ Now push all the ProfTooDbl tags on our self to the hero
perform hero.pushtags[ProfTooDbl.?]