• 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

Scripting a new archetype

Steelight

Member
I'm trying to enter a new archetype into HL. The archetype modifies a normal ability so you get it at a later level. in this case it is Trap Sense. I figured out the script to move each section from one level to the next tier (i.e. getting it at level 6 instead of level 3), but when I get to the one at 18 it is still showing that the character gains Trap Sense +5 and +6. What is the scripting to remove the ability normally gained at 18th level without removing the whole ability?

I tried using this:
perform hero.findchild[BaseClSpec,"thingid.cTrapSense & SpecSource.cHelpBbn & ClSpecWhen.18"].delete[ClSpecWhen.18]

But when I do it eliminates all of the other scripting and gives me an error message saying Trap Sense +1 (Ex) doesn't have an assigned level.

Any suggestions?
 
Another Question

This same archetype grants a special weapon while using a specific ability. I figured out how to make it work with a normal weapon, but at higher levels I have to make it a magic weapon to add the abilities to the weapon I need. When I do this it gives me an error saying that the condition phase/priority (First/475) occurs after the earliest rule/script (First/100) but I can't find any rule or script that occurs at First/100.

What am I missing?
 
This same archetype grants a special weapon while using a specific ability. I figured out how to make it work with a normal weapon, but at higher levels I have to make it a magic weapon to add the abilities to the weapon I need. When I do this it gives me an error saying that the condition phase/priority (First/475) occurs after the earliest rule/script (First/100) but I can't find any rule or script that occurs at First/100.

What am I missing?
First/100 is a script running on the Magic Weapon Thing. So you will need to change your bootstrap condition to run at First/99 or earlier.

Normally you don't bootstrap weapon other than natural to a class. You maybe better off just putting a pre-req script on the weapon that requires this class ability to be valid. Be easier than dealing with the bootstrap conditions.
 
Pre-Req Script?

So what would the pre-req script look like for that then?

The concept is that while raging the archetype gains this weapon automatically, and at certain levels the weapon changes into something more. The basic weapon worked out fine. The magical ones did not and gave me the above listed error. I want the weapon to automatically show up on the weapons list for the character, but only while they are raging. Is there a way around the magical weapon thing?
 
Last edited:
First/100 is a script running on the Magic Weapon Thing. So you will need to change your bootstrap condition to run at First/99 or earlier.

I tried that. When I did it that way the whole function (i.e. the weapon appearing when raging and disappearing when not) didn't work, even for the normal weapon part of it.
 
Back
Top