• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

New to Scripts, How do I manage this?

bodrin

Well-known member
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.
 
At 01:50 AM 3/28/2007, you wrote:
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!
icon_confused.gif
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
 
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!
 
Back
Top