Junior Member
Join Date: Jul 2013
Posts: 5
|
Hi, first post here so I hope this is in the right section.
I have been trying to create a race that has built in spellcasting that scales with level/HD. I thought it would be relatively simple since there is a check-box for this option (the option in the relevant section says to leave the box empty to have "caster level= HD"). However when I went to test it I found that the caster level of spellcasting does not in fact scale with level. Does anyone know how to implement scaling racial spellcasting? I have no idea where to start if I were to write a script for this. |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
That box is referring to racial Spell Like Abilites, which is distinct from racial spellcasting.
The Kirin, Emperor race has racial spellcasting which increases with bonus HD. Make a copy of that race and check out the eval script on it for an example. |
#2 |
Junior Member
Join Date: Jul 2013
Posts: 5
|
Ah, thanks forgot about that.
|
#3 |
Junior Member
Join Date: Jul 2013
Posts: 5
|
Hm, still not working correctly. I should probably note that this would be a playable character race as opposed to an NPC. So it should scale up with class levels as well.
Even directly copy/pasting from the emperor kirin and adding hd instead of class levels is not doing anything. Yeah... I'm not very good at this :\ edit: just to give some context to my failure. I tried replacing "field[rHDFinal].value - field[rHitDice].value" with "field[tHitDice]" which compiled correctly. But when using it I got an error saying that "tHitDice" did not exist. Last edited by Zilong; August 5th, 2013 at 01:08 PM. |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
try Code:
herofield[tHitDice].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. |
|
#5 |
Junior Member
Join Date: Jul 2013
Posts: 5
|
... Well I kind of got it to work.
Thanks for the above suggestion. It doesn't work for HD but I changed it to tLevel and it works now... weird. I guess it is more appropriate this way anyway since the race would take class levels for progression. Last edited by Zilong; August 5th, 2013 at 01:54 PM. |
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
When working with these kind of fields/values Timing is important. 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. |
|
#7 |
|
|