• 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

Living Weapon as a custom ability, script stopped working.

Pezmerga

Well-known member
I cannot get this to work...It is a modified Monk unarmed damage as a custom ability.

Code:
Post Levels   Priority 5000
~ Get our unarmed strike pick, delete the damage tag from it, and assign
      ~ a new damage tag.
      var dice as string
      perform hero.child[wUnarmed].delete[wMain.?]
      if (field[xTotalLev].value <= 3) then
        perform hero.child[wUnarmed].assign[wMain.1d6_5]
        dice = "1d6"
      elseif (field[xTotalLev].value < 8) then
        perform hero.child[wUnarmed].assign[wMain.1d8_6]
        dice = "1d8"
      elseif (field[xTotalLev].value >= 8) then
        perform hero.child[wUnarmed].assign[wMain.1d10_304]
        dice = "1d10"
      endif

level 1-3 they do 1d6
level 4-7 its 1d8
and 8 and up is 1d10...

I noticed [xAllLev] wouldn't work in custom abilities, just in class specials.... I swear I had this same script working like last week.
 
Last edited:
I figured out what was going on. I have a feat as a prereq that changes unarmed damage to 1d4. This is taking precedence over the class ability.
Changed the feats timing to Pre-Levels and now it works fine! :D
 
Last edited:
Back
Top