Trying to set up a feat that gives a +3 with a specific weapon. Was looking at Weapon Focus tree for guidelines, but ran into a snag since that tree uses Broadcast.Xfeat.
Phase: Pre-levels, Priority: 5000, Index: 1, no timing
Weapon focus etc have:
perform eachpick.assign[Broadcast.WepFocus]
I can't figure out what to substitute in the 'eachpick' statement to get a +3 attack to the chosen weapon (I tried broadcasting WepFocus x3, but that didn't work)
Phase: Pre-levels, Priority: 5000, Index: 1, no timing
Code:
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)
~ If we haven't chosen anything, get out now
doneif (field[usrChosen1].ischosen = 0)
~ Assign the appropriate tag to all weapons that meet the criteria
var id as string
id = field[usrChosen1].chosen.idstring
foreach pick in hero where "IsWeapon." & id
perform eachpick.hero.child[Attack].field[tAtkMelee].value -= 2
nexteach
Weapon focus etc have:
perform eachpick.assign[Broadcast.WepFocus]
I can't figure out what to substitute in the 'eachpick' statement to get a +3 attack to the chosen weapon (I tried broadcasting WepFocus x3, but that didn't work)