View Single Post
Kendall-DM
Spy
 
Join Date: Jan 2011
Location: Overland Park, Kansas
Posts: 1,217

Old June 16th, 2011, 05:55 PM
I've actually cleaned up Natural Bond by reducing alot of the code. If interested in a cleaner version, here it is.

First/498
Code:
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)

~ If we are within range of our effective druid level.
var bonus as number
bonus = #totallevelcount[] - hero.childfound[cAnimClass].field[CompClLev].value 
bonus = minimum(bonus,3)

~ Add bonus to our companion level.
hero.childfound[cAnimClass].field[CompClLev].value += bonus
Kendall-DM is offline   #6 Reply With Quote