Senior Member
Join Date: Jul 2007
Location: Syracuse, NY (USA)
Posts: 213
|
I'm trying to add a class feature that calculates an attack bonus based on level in a specific class. The calculation works just fine, but I can't get the bonus to apply when I need it to. The documentation on the Attack pick says the following:
Quote:
Quote:
Help??? |
||
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
You can calculate a level using Classes.? during the level phase. Here's a piece of the script for the Transformation spell - it replaces BAC with your class level.
Level, 10500 Code:
~Count the number of classes var levels as number levels = hero.tagcount[Classes.?] - hero.tagcount[Classes.Race] - hero.tagcount[Classes.Template] hero.child[Attack].field[tAtkBase].value = levels |
#2 |
Senior Member
Join Date: Jul 2007
Location: Syracuse, NY (USA)
Posts: 213
|
Thanks for the tip - looks to be working great now!
|
#3 |
|
|