|
Senior Member
Join Date: Oct 2016
Posts: 621
|
I think I need to make a new tracker for an ability I am coding for the Malefactor Class called Strife Pool. It is similar to Grit et al, in that it is used to fuel abilities and certain effects occur when you run out of it. I looked at Grit but it wasn't really helpful. Here is the text from the ability, can someone point me in the right direction?
At first level, Yla spirits provide the malefactor with a supply of supernatural chaotic energy called strife, which the malefactor can use to twist luck in a variety of ways. The maximum number of points in the malefactor’s strife pool is equal to ½ her malefactor level + her Wisdom modifier. A malefactor's supply of strife is replenished to maximum every 24 hours, at the same time each day. As long as the malefactor has at least one point of strife, she is immune to the effects of her own aura of misfortune. Thanks in advance |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Make it as a class ability with the ChargeCalc.LevelHalf and ChargeAttr.aWIS tags, then bootstrap it to your class.
|
#2 |
Senior Member
Join Date: Oct 2016
Posts: 621
|
OK, that makes sense, but I am drawing a blank on where to start with the code, help?
|
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
No code required. Select your Strife Pool class ability in the editor, scroll down to the "Charge Information" section, click the blue Edit button on the "Automatic Calculations" line. In the window that pops up look for the checkbox named "Half Levels", that is the one which applies "ChargeCalc.LevelHalf" I mentioned above (you can see the actual tag applied rather than the tag name by clicking on the "?" to the right of the tag name). Check the checkbox for Half Levels, then hit the blue "OK" button in the top right to close the window.
Now apply the ChargeAttr.aWIS tag the same way. The button to do so is on the "Charge Calc Attribute" line. The program should do all the eval scripting you need in the background. |
#4 |
Senior Member
Join Date: Oct 2016
Posts: 621
|
Wow, that's super easy, thanks
|
#5 |
|
|