Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
Ah, the one book I dont have. but let me work on getting code to add a +1 AC at each 5 levels. Would this occur at level 1, level 5, and level 10? Is this a dodge bonus?
I'll see what I can do about using Cha as well as dex for AC. |
#11 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
OK, to add an AC bonus, use the follwoign code:
~ If we're not shown, just get out now if (tagis[Helper.ShowSpec] = 0) then done endif ~ Calculate our total bonus hero.child[ArmorClass].field[tACDodge].value = hero.child[ArmorClass].field[tACDodge].value + 1 there will be a field called "level Requreemnt" just change that to the level when the char gets the bonus. you will need to create a special for each instance of the AC increase. I use this same code to give an AC bonus to my Halfling Outrider and it works without a problem. I am still working on getting the cha bonus added to AC as well. The examples that are given aren't very good when it comes to skills. they only give comparisons, not how to add something to a skill. I am in fact having the same issue trying to add a char level to a ride skill. |
#12 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
You should be able to add a +1 AC to defense per 5 levels as follows:
Code:
~get our current level var level as number level = #totallevelcount[] ~divide it by 5 and round it down to 0 decimal places var bonus as number bonus = level / 5 bonus = round(bonus, 0, -1) ~add it to your AC as a dodge bonus (as in chiefweasel's example) hero.child[ArmorClass].field[tACDodge].value += bonus |
#13 |
|
|