Senior Member
Join Date: Jun 2010
Location: Beaverton, OR
Posts: 267
|
I have a prestige class that uses magical tatoos. One of the tatoos can be activated once a day and will give you the ability to rage like a 1st level barbarian. I have bootstaped cBbnRage to the custom ablity, with a tag ClSpecWhen of 1 and a condition First 400 of fieldval:abilActive<>0.
This almost works perfectly except for the trkMax on the rage is wrong and giving too many rounds of rage/ day. It should be 4 + CON mod. It is adding 2 to this for every level of the prestige class. The CON mod is working correctly. What do I need to do to set the rage round/day to 4+Con but allow things like extra rage to effect it? Thanks in advanced. James |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,214
|
The way barbarian rage works is to grant 2 + CON Mod + 2/level rounds of rage.
So, what you can do is add a script to the class itself to subtract (level - 1) * 2 uses from barbarian rage, leaving it at 4 all the time. Code:
var bonus as number bonus = field[cTotalLev].value - 1 bonus *= 2 #trkmax[cBbnRage] -= bonus |
#2 |
Senior Member
Join Date: Jun 2010
Location: Beaverton, OR
Posts: 267
|
I tried putting the code in both the Totemic Demonslayer class and the badger tatoo custom ability. In both cases I got the following errors. These are not fatal errors.
Attempt to access non-live child pick 'cBbnRage' from script Attempt to access non-live pick via script fails for pick'cBbnRage' Attempt to access non-live child pick 'cBbnRage' from script Attempt to access non-live pick via script fails for pick'cBbnRage' |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,214
|
Hmmm - I thought I had trkmax[] properly set up to not do anything if the target isn't available. In that case, you'll have to make sure cBbnRage is there before modifying it:
Code:
var bonus as number bonus = field[cTotalLev].value - 1 bonus *= 2 if (hero.childlives[cBbnRage] <> 0) then #trkmax[cBbnRage] -= bonus endif |
#4 |
Junior Member
Join Date: Jun 2015
Posts: 1
|
Were you ever able to create the Totemic Demonslayer prestige class for herolab? If so would you be willing to share it with me?
Savage Chap |
#5 |
|
|