Archetype I'm working on gains profienceny with a fighter weapon group. I've got the custom expression.
I've got the following code running at First/1000
And it works to an extent. I would like to actually assign the weapon proficiency for everythign in the group so when, for example, you select a weapon it shows a valid choice, but I'm not sure how to search through and assign the selections. This obviously only gives them proficiency after they select the weapon.
Code:
component.BaseCustSp & SpecSource.cHelpFtr & !Helper.Secondary & !Helper.Tertiary & !Helper.Quaternary & !wFtrGroup.Natural
I've got the following code running at First/1000
Code:
~if we haven't chosen anything yet, just get out now
doneif (field[usrChosen1].ischosen = 0)
~get the wFtrGroup tag from our choice
perform field[usrChosen1].chosen.pulltags[wFtrGroup.?]
~if we didn't find a wFtrGroup tag, there's nothing more we can do
doneif (tagis[wFtrGroup.?] = 0)
var searchexp as string
searchexp = tagids[wFtrGroup.?,"|"]
foreach pick in hero from BaseWep where searchexp
perform eachpick.pulltags[WepProf.?]
nexteach
perform hero.pushtags[WepProf.?]
And it works to an extent. I would like to actually assign the weapon proficiency for everythign in the group so when, for example, you select a weapon it shows a valid choice, but I'm not sure how to search through and assign the selections. This obviously only gives them proficiency after they select the weapon.