Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
chiefweasel
Senior Member
 
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322

Old January 31st, 2009, 04:59 PM
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.
chiefweasel is offline   #11 Reply With Quote
chiefweasel
Senior Member
 
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322

Old January 31st, 2009, 07:31 PM
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.
chiefweasel is offline   #12 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old February 5th, 2009, 04:30 PM
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
Hope this helps!
Colen is offline   #13 Reply With Quote
Reply


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 08:30 PM.


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