• 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

Helpful Code - Monk Abilities

TCArknight

Well-known member
OK, I just thought I would share some helpful code that I just found out works. :)

If you need to add to a Monk's Flurry, AC, Unarmed damage and Speed you will get just that with the following code. I set mine at Levels/1000, but I welcome a better timing for it.

Code:
~get current class level
var level as number
level = #levelcount[<current class here>]

~Add current class level to Monk for Unarmed, Flurry, AC and Speed
if (hero.tagis[Classes.Monk] <> 0) then
  hero.child[cMnkUnarm].field[xExtraLev].value += level
  hero.childfound[cMnkFlurr].field[xExtraLev].value += level
  hero.child[cMnkAC].field[xExtraLev].value += level
  hero.childfound[cMnkSpeed].field[xExtraLev].value += level
  endif
 
That would be me not noticing the difference. :)

I borrowed those from the Monk's robe and a couple of other places and that's how they had them. I am guessing it would be better to use childfound so to prevent issues if the ability isn't present for some reason.
 
Back
Top