Junior Member
Join Date: Jan 2011
Posts: 28
|
I am building a feat that requires race: Aasimar and able to prepare or cast Concecrate.
I figured out the first part: #hasrace[rAasimar] <> 0 I can't figure out how to verify the Hero has ability to cast Concecrate. Thanks in advance for any help. |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Not sure if this will work, I had taken a procedure that Shadow had made and modified it for my stuff that I did with Rite, so it got added to my core code for Rite ... so in other words it may work, and if it does thank Shadow for his wonderful procedure.
Under Prereqs, not Expr-Req Code:
var SpellID as String var HaveSpell as number SpellID = "spConsecr2" Call SpellChk @valid = HaveSpell And also yay I hit 900 posts. Last edited by AndrewD2; April 29th, 2014 at 10:57 AM. |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Officially there is no mechanism in place to check to see if a character can cast a specific spell that I am aware of. At least that is what I've been told over the course of building many data files. This is just something a DM has to check. The racial restriction looks fine.
RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. |
#3 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
Apologies for the thread necro -- has there been any implementation of a mechanism that will be able to check to see if a specific spell is known?
|
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Why can't you use the HaveSpell procedure that is the in the Pack?
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 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Does that procedure work for different levels of the same spell? For example, if the pre-req is the ability to cast "Cure Moderate Wounds", would it be validated for both clerics (who get it as a 2nd level spell) and druids (who get it as a 3rd level spell)? And is it automatically extensible if new "Cure Moderate Wounds" spells get added (like a 4th level version used by some obscure domain)?
|
#6 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
Quote:
When I added it to my arcanist character (that has every summon monster spell 1 through 5 as a spell known) it did not pass the pre-req. Hence my question. Given this thread, I was under the suspicion that this function simply did not work. |
|
#7 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
Ok, I think I see why the RGG bullet point scripts aren't working with the HaveSpell -- the class I have the feat applied to is the Arcanist -- and if I'm not mistaken, the HaveSpell check for the classes that are valid for the spells passed -- and Arcanist is not on that list.
|
#8 |
|
|