Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old March 28th, 2007, 12:50 AM
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.
bodrin is offline   #1 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old March 28th, 2007, 03:01 PM
At 01:50 AM 3/28/2007, you wrote:
Quote:
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! [img]./modules/mdforum/images/smiles/icon_confused.gif[/img]
There are a number of prestige classes with the pre-requisite of casting Arcane spells at a minimum level of X. You can look at those class level entries to see how to setup the pre-requisites properly. For example, you could use the following pre-requisite test:

*** @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
rob is offline   #2 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old March 30th, 2007, 01:33 AM
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
bodrin is offline   #3 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:06 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.