Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Make a copy of any feat in the book which has a BAB pre-req, there are a million of them, and look at it's expr-req. For the will save, look at Heroic Will from the ARG, or Draconic Discipline from Dragonslayer's handbook.
~Set the list name
field[listname].text = field[thingname].text & " " & signed(field[xIndex].value)
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] <> 1)
~ if we've been disabled, get out now
doneif (tagis[Helper.SpcDisable] <> 0)
field[abValue].value += field[xCount].value
field[livename].text = field[thingname].text & " " & signed(field[abValue].value)
~Set the list name
field[listname].text = field[thingname].text & " " & field[xIndex].value & tagnames[Usage.?]
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] <> 1)
~ if we've been disabled, get out now
doneif (tagis[Helper.SpcDisable] <> 0)
field[abValue].value += field[xCount].value
~ Set the usage field called Tracker Max
field[trkMax].value += field[abValue].value
Here is a basic class ability script I always start from. Its made to level up a bonus each time it is bootstrapped to the class.
Post-Levels/10000
Code:~Set the list name field[listname].text = field[thingname].text & " " & signed(field[xIndex].value) ~ If we're not shown, just get out now doneif (tagis[Helper.ShowSpec] <> 1) ~ if we've been disabled, get out now doneif (tagis[Helper.SpcDisable] <> 0) field[abValue].value += field[xCount].value field[livename].text = field[thingname].text & " " & signed(field[abValue].value)
The design is made so that the script figures out the "Bonus" based on the levels you bootstrapped this class feature to the class. So in this case you would bootstrap at 5th, 7th, and 9th level.
Now the above needs a small change as it giving a "bonus" instead of usage per day. But its just a slight tweak to make abValue into a usage value instead of a bonus:
Post-Levels/10000:
Then just make sure you leave the default trkMax field as zero and set tracked resources to "/day".Code:~Set the list name field[listname].text = field[thingname].text & " " & field[xIndex].value & tagnames[Usage.?] ~ If we're not shown, just get out now doneif (tagis[Helper.ShowSpec] <> 1) ~ if we've been disabled, get out now doneif (tagis[Helper.SpcDisable] <> 0) field[abValue].value += field[xCount].value ~ Set the usage field called Tracker Max field[trkMax].value += field[abValue].value
svAll and AllSkills
For future reference, to look this sort of information up, you can use the "Find Thing" button that's at the top of the Eval Script form.
Select "Saving Throws" as the category of things whose Ids you want to look up, and you'll see that there are only 4 items there - fort, ref, will, and "All Saves". Double-click "All Saves", and it will place the Id of that item wherever the cursor was in your script before you clicked "Find Thing".
You need to do your calculation working off xIndex instead of xCount and you want it to happen for every copy for calculating the listname. For Spell Resistance you also don't need to show the livename (Hide from Specials) because you can use the macro #applysr[] to add the final amount in (for this you'll want the value of abValue.)
var sr as number
sr += 9
sr += (field[xIndex].value * 2)
field[listname].text = "Spell Resistance " & sr
~if were not shown, get out now
doneif (tagis[Helper.ShowSpec] = 0)
~if we're disabled, get out now
doneif (tagis[Helper.SpcDisable] <> 0)
~only perform the calculations for the first copy
doneif (tagis[Helper.FirstCopy] = 0)
field[abValue].value += 9
field[abValue].value += (field[xCount].value * 2)
#applysr[field[abValue].value]