• 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

Drop down for a dexterity bonus

Morphaeon

New member
Hi everyone!

I'm trying to create a subclass that can pick a dexterity based skill and receive a proficiency bonus to it.

I made it as a racial special ability, but I'm a little lost as to how to make a drop down that shows all of the dexterity based skills, and then add the proficiency bonus to it.

Any help is greatly appreciated!
 
I would first suggest that you create this as a class special rather than a racial special, since applying a racial ability as a class bootstrap can confuse you when you're troubleshooting later.

Secondly, you can put this in as a Custom Expression down in the Item Selection area:

SkillAbil.aDEX (remember to restrict this list to All Picks on Hero)

Any skill that uses DEX will have this tag on it.

You would then need to write a script that looks like the following in post-levels/10000 timing or so:

Code:
      if (field[usrChosen1].ischosen <> 0) then
        tagexpr = field[usrChosen1].chosen.tagids[ProfSkill.?," | "]
        foreach pick in hero from BaseSkill where tagexpr
          perform eachpick.assign[Helper.Proficient]
          nexteach

I haven't tested this code, but it's close to what you want to do or should get you pointed down the path.
 
I would first suggest that you create this as a class special rather than a racial special, since applying a racial ability as a class bootstrap can confuse you when you're troubleshooting later.

Secondly, you can put this in as a Custom Expression down in the Item Selection area:

SkillAbil.aDEX (remember to restrict this list to All Picks on Hero)

Any skill that uses DEX will have this tag on it.

You would then need to write a script that looks like the following in post-levels/10000 timing or so:

Code:
      if (field[usrChosen1].ischosen <> 0) then
        tagexpr = field[usrChosen1].chosen.tagids[ProfSkill.?," | "]
        foreach pick in hero from BaseSkill where tagexpr
          perform eachpick.assign[Helper.Proficient]
          nexteach

I haven't tested this code, but it's close to what you want to do or should get you pointed down the path.

Thank you so much! That did exactly what I wanted it to!
 
Back
Top