Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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.
|
#61 |
Member
Join Date: May 2014
Location: Plantation, FL
Posts: 78
|
Quote:
While we're at it (prereqs), two more quickies for you. One, how do you add 5 ranks of Perform (no specifics, any) as a prereq? And how about adding the ability to cast a specific spell? - Andrew <:-(} |
|
#62 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
1 - hero.child[svWill].field[svBase].value >= X
2 - In a pre-req, Foreach through all skills with the Helper.SkCatPerf tag, inside the foreach put "validif (eachpick.field[skRanks].value >= 5)" 3 - Not doable in any reasonable fashion. |
#63 |
Member
Join Date: May 2014
Location: Plantation, FL
Posts: 78
|
Thanks as always!
- Andrew <:-(} |
#64 |
Member
Join Date: May 2014
Location: Plantation, FL
Posts: 78
|
I'm having trouble figuring out another new class feature. The issue is getting the script to register adding 1 use per day each time it's added to the class, at levels 5, 7 and 9. Here's the Class Special rules as written:
At 5th level, an anchorite of the Mists can use {i}dimension door{/i} once per day, as a sorcerer with a level equal to the character's primary divine spellcasting level plus her anchorite of the Mists level. At 7th level, she can use this ability twice per day, and at 9th level she can use it three times per day. The automatic calculations don't cover the unusual level progression for this ability. Any suggestions? - Andrew <:-(} |
#65 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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) 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: 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 Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#66 |
Member
Join Date: May 2014
Location: Plantation, FL
Posts: 78
|
Quote:
- Andrew <:-(} |
|
#67 |
Member
Join Date: May 2014
Location: Plantation, FL
Posts: 78
|
New question. I have a 10-level PClass that has an ability giving a +1 sacred bonus to attack rolls, saving throws, and skill checks at every even level. The script is an easy copy and paste, but the problem is finding the right "thing" for "All Saving Throws." In addition, I'm not seeing the bonus to skill checks show up under the Skills tab when I run my cursor over the skills to see details pop up.
I am guessing I have the wrong Things for "All Saving Throws" and "All Skills" but I cannot find others in the lists that work with the script. The error message: Attempt to access non-existent child pick 'pSave' from script. Script is below. Post-levels 10000 1 ~if we're not shown, just get out now doneif (tagis[Helper.ShowSpec] = 0) field[abValue].value += field[xCount].value Render 1000 2 field[listname].text = "Guardian of Innocence " & signed(field[xIndex].value) ~if we're not shown, just get out now doneif (tagis[Helper.ShowSpec] = 0) ~only do the rest if we're the first copy doneif (tagis[Helper.FirstCopy] = 0) field[sbName].text = lowercase(field[thingname].text) & " " & signed(field[abValue].value) field[livename].text = "Guardian of Innocence " & signed(field[abValue].value) field[abSumm].text = signed(field[abValue].value) & " sacred bonus to attacks, saves, and skill checks when defending a good creature." #situational[hero.child[Attack],signed(field[abValue].value) & " sacred bonus to attacks, saves, and skill checks when defending a good creature.",field[thingname].text] #situational[hero.child[pSave],signed(field[abValue].value) & " sacred bonus to attacks, saves, and skill checks when defending a good creature.",field[thingname].text] #situational[hero.child[AllSkills],signed(field[abValue].value) & " sacred bonus to attacks, saves, and skill checks when defending a good creature.",field[thingname].text] - Andrew <:-(} |
#68 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
svAll and AllSkills
|
#69 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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". |
#70 |
|
|