Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Hello, I'm new to scripting and have had my interest piqued by this product, I quite enjoyed following the tutorials by adding the Moonelf and the Craftsman so I thought i'd try something else.
I am interested in adding a [General] Feat from the complete Warrior Supplement, (Pg96) Arcane Strike. The prerequisites are Ability to cast 3rd-level Arcane Spells and a Base attack Bonus +4. I scanned through similar feats that referenced Base Attack Bonus Pre-Reqs just to see how they were scripted, and had some success however when i tried to find an example that referenced the Ability to cast "n" level spells there wasn't any guidelines. After looking through the Kit documentation I can honestly say that I am flummoxed as to the syntax and the steps required to check for spell level! :? Thanks for any advice. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
At 01:50 AM 3/28/2007, you wrote:
Quote:
*** @valid = 0 *** if (tagcount[Hero.Arcane] > 3) then ******* @valid = 1 ******* endif This will make sure that the character has a sufficient number of a Arcane spell levels available for your Feat. I pulled this by looking at the Arcane Archer and Arcane Trickster prestige classes. Hope this helps, Rob |
|
#2 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Thank you, that did the trick.
I now just have to trawl through available examples to try and figure out how to apply scripts in the correct order! Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
|
#3 |
|
|