• 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

Calculating Ki points

Abrion

Member
I am in the process of creating the ninja character class from CA and have gotten stuck calculating the ki points for the character's various abilities. The points are calculated by gaining 1 point for every two levels plus points equal to the character's wisdom bonus. I can calculate the points for levels just fine but have not been able to add the wisdom bonus.

Here is what I have so far:

~ set ki points for levels
var level as number
level = field[xTotalLev].value / 2
level = round(level, 0, 1)
field[hTotal].value = level

I've tried using the following code to add to the level total but apparently this doesn't work:

var bonus as number
bonus = hero.child[aWIS].field[aModBonus].value

Can anyone help?
 
I figured out the problem. I was in the wrong phase. I needed this to occur in the PostAttr phase and it worked like a charm.

Here is the code I used in case it helps anybody else out:

~ set ki points for levels
var level as number
level = field[xTotalLev].value / 2
level = round(level, 0, 1)
~ add wisdom bonus
var bonus as number
bonus = hero.child[aWIS].field[aModBonus].value
var total as number
total = level + bonus
field[hTotal].value = total

This will display the ki points in the charges section.
 
Back
Top