View Single Post
McPir8
Junior Member
 
Join Date: Jul 2020
Posts: 7

Old July 26th, 2020, 09:53 AM
i think i solved it accidentially by copying the world is square weapon focus and just changing tags given.

Code:
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)

~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen1].ischosen + tagis[Target.?] = 0)

~get the wFtrGroup tag from our choice or Target tag
if (tagis[Target.?] <> 0) then
	perform this.pulltags[Target.?,wFtrGroup]
else
	perform field[usrChosen1].chosen.pulltags[wFtrGroup.?]
endif

~if we didn't find a wFtrGroup tag, there's nothing more we can do
doneif (tagis[wFtrGroup.?] = 0)

~ Get the list of weapons in the group.
var searchexp as string
searchexp = tagids[wFtrGroup.?,"|"]

~ Tag the hero has having Weapon Proficiency for each weapon
~ in order to satisfy pre-requisites for feats that
~ require Weapon Proficiency with a specific weapon.
~ First we pull the WepProf tags from the weapons in the group ...
foreach thing in BaseWep where tagids[wFtrGroup.?,"|"]
	perform eachthing.pulltags[WepProf.?]
nexteach

~ Then push them onto the hero.
perform hero.pushtags[WepProf.?]
McPir8 is offline   #7 Reply With Quote