~ First, we want to stop if nothing has been chosen
doneif (field[fChosen].ischosen = 0)
~ Now we want to pull the IsWeapon tag from our selected weapon.
perform field[fChosen].chosen.pulltags[IsWeapon.?]
~ Now we want to create a string of letters (a string variable) which matches the tag we just pulled. We can name this anything we want, but since we are about to use this in a search expression, we will call it "searchexpr"
var searchexpr as string
searchexpr = tagids[IsWeapon.?]
~ Next we want to cycle through all weapons on the hero. If that weapon matches our chosen IsWeapon tag, then apply Helper.Finesse to make that a Finessable weapon
foreach pick in hero from BaseWep where searchexpr
perform eachpick.assign[Helper.Finesse]
nexteach