View Single Post
Pezmerga
Senior Member
 
Join Date: Oct 2010
Location: Cincinnati, OH
Posts: 328

Old December 21st, 2011, 02:27 PM
Quote:
Originally Posted by Mathias View Post
Code:
eachpick.field[abValue].value += bonus + 1 - eachpick.field[xIndex].value
Let's take a 10th level character - they'll have 2 weapon training abilities.

bonus = 2 in this case.

So, it comes to ability #1:

+= 2 + 1 - 1 = +2

and then ability #2:

+= 2 + 1 - 2 = +1

I'd put in more debug expressions - see if you can track the changing values.

For example:

Code:
 
debug eachpick.field[name].value & " is ability #" & eachpick.field[xIndex].value & ", and is at " & eachpick.field[abValue].value
(put that immediately after the eachpick.field[abValue].value line)
Code:
~set the bonus for this ability
        eachpick.field[abValue].value += bonus + 1 - eachpick.field[xIndex].value
debug eachpick.field[name].text & " is ability #" & eachpick.field[xIndex].value & ", and is at " & eachpick.field[abValue].value
        tagbonus = eachpick.field[abValue].value
If I debug that at level 6 with two weapon Training abilities, (Even though I should have 1) it shows up as Close being +3
and Heavy blades being +1 on the character but the debug shows the values correctly. Something is causing it to display improperly. Also it adds the bonus improperly to the weapons.

Edit: Actually it is saying +3 on the class tab for weapon training but actually adding 4 to hit and damge on the weapons tab....



********** Start Evaluation Cycle **********

wFtrGroup.? & CustTaken.cHelpBrd & Helper.Tertiary
Weapon Training: Blades, Heavy is ability #2, and is at 0
Weapon Training: Close is ability #1, and is at 1

Last edited by Pezmerga; December 21st, 2011 at 02:30 PM.
Pezmerga is offline   #25 Reply With Quote