• 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

Exotic Weapon Proficiency - All - Class Special

AndrewD2

Well-known member
I have a class that at 8th level gains Proficiency with all exotic weapons. I found a post where frumple and Shadow were discussing it for a race, but the script did not work on the class. I'm at a loss here as dissecting the EWP feat seems to not help much except for showing that it uses the Helper.ExoticProf tag as I can't see what is inside the procedure being called.

Anyone have any ideas?

Andrew
 
I got it to work by putting the code right on the class helper with a shutdown code doing tagcount Classes for the class, but I'd really like to have this run off the class special in case it's ever replaced via an archetype.
 
sorry thought I posted that:

First/600
Code:
~make all exotic weapons proficient if more than 8 levels

doneif (hero.tagcount[Classes.Taskshape] <= 7)
~ Make proficient in all exotic weapons
foreach thing in BaseWep where "wProfReq.Exotic"
   perform eachthing.pulltags[WepProf.?]
nexteach


foreach pick in hero from BaseWep where "wProfReq.Exotic"
   perform eachpick.assign[Helper.ExoticProf]
nexteach
 
Well, the automated application of Helper.Proficient takes place at Pre-Levels 10000, so if you want to put this on the class special instead, you'll have to apply the tag yourself (as you are doing in the second, pick foreach). The first foreach I think actually is all you need if you're putting the eval script on the helper, as the class helper automatically forwards WepProf tags to the hero, which are then checked by the weapons.

So, you'll need to do both yourself if you're intent on making this happen after Pre-levels. Try this (as always, not tested, tweak as necessary)

PostLevel 10000
Code:
doneif (tagis[Helper.ShowSpec] = 0)
doneif (tagis[Helper.SpcDisable] <> 0)

~Make all exotic weapons added to the hero proficient, once they are picks
foreach pick in hero from BaseWep where "wProfReq.Exotic"
   perform eachpick.assign[Helper.Proficient]
   nexteach

~Collect all relevant WepProf tags to ourselves and then apply them to hero. This ensures when a weapon is viewed as a thing (such as before you buy it), it shows black rather than greyed out as non-proficient.
foreach thing in BaseWep where "wProfReq.Exotic"
   perform eachthing.pulltags[WepProf.?]
   nexteach

perform hero.pushtags[WepProf.?]

Again, not tested, but I think it might work.
 
You are a godsend, do I still need to assign the Helper.ExoticProf tag or does this cover that then?

It appears to work.

I'm guessing the thing I was missing really had to do with the pushtags ... which I never really understand push/pull tags very well and the wiki seems a big confusing
 
I think you should apply Helper.ExoticProf as well. Some weapons are proficient if wielded 2 handed (like the bastard sword) and it looks like that is to distinguish that you are proficient with it 1 handed as well.
 
Back
Top