• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Proficiency with Fighter Weapon Group

AndrewD2

Well-known member
Archetype I'm working on gains profienceny with a fighter weapon group. I've got the custom expression.

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.
 
so right after I posted this I discovered the Unarmed Fighter that gets all monk weapons. (This was after looking at archetypes for 2 hours)

And changed my code to:

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 thing in BaseWep where searchexp
        perform eachthing.pulltags[WepProf.?]
        nexteach

perform hero.pushtags[WepProf.?]

and it works.
 
Back
Top