Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
Abrion
Junior Member
 
Join Date: Dec 2007
Posts: 5

Old February 8th, 2008, 07:37 PM
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?
Abrion is offline   #1 Reply With Quote
Abrion
Junior Member
 
Join Date: Dec 2007
Posts: 5

Old February 9th, 2008, 05:24 AM
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.
Abrion is offline   #2 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:45 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.