• 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

How can I do that?

OK, this works fine now.

Where can I find an overview over d20tags and field etc. I think than I will have less questions.

How can I add energy resistance (f.i. cold 20)?
How can I add a luck bonus to AC (natural armor and dodge work well, but what's the tag for luck)?
 
One more question:
I have some feats, where I need a selection.

f.i. there is the energy mage feat. You have to decide, which type of energy (fire, cold, acid, sonic, electricity) you want. Is there a possibility to create my own selection menu with this 5 energytypes or have I add this feat 5 times. If it is possible, how can I use this selection for further processing?
 
In the Editor you can click on "Help for some basic information, and a link to the Wiki.

I would recommend making copies of things that do similar things to what you want and looking at thier pre-req's/eval scripts.

To see what fields or tags are on a thing, do this. In the main HL (not the editor) click on the Develop drop down, and "Enable Data File Debugging". Now you can right click on many things and show it's tags and fields. You can also click on Develop -> Floating Info Windows -> Show Hero Tags/Fields or Show Selection Tags/Fields (Selection is needed for things that are otherwise invisible, like Class Helpers and such.
 
In the Help Files click on "Useful Macros" and you will find that to apply energy Resistance use:

#applyresist[type, bonus]

Allows you to add a type of damage resistance to the hero. Using this macro makes sure that the highest resistance value is used, since resistance doesn't stack.

~ We're going to add damage resistance against acid, which is of type xDamRsAcid - we
~ assume that the xDamRsAcid pick has already been bootstrapped.

~ Give us resistance 5 vs. acid
#applyresist[xDamRsAcid, 5]

You could also find this by copying any of the Rings of Energy Resistance.

Luck bonuses are fields rather than tags. Look at the Stone of Good Luck (a Wonderous Item), make a copy of that in the editor and look at the Eval Script. Try and change it so it works for you, but tell me if you have more trouble.
 
For the Energy Mage feat, I did a similar thing for the Energy Substitution feat. You can make a special for each element that is invisible (not shown on either the specials or charges tab) with a particular User.Whatever tag. Bootrap the specials to the feat, and the feat has a Select From, Restrict To and Custom Expression field.

You want the Custom Expression section, which allows you to search for things with any combination of tags. Have it seach for the User.Whatever tag you have on each of the elements.

If you have my files, the Specials are named "xPickXXXX" and the tags are called "User.PickElem".

So you could have a Custom Expression for "User.PickElem".

As a side note, in case which element chosen matters, each of the specials I made also has a "User.ElemAcid or User.ElemXXXX" you can look for through via Eval scripts and change the feat accordingly.
 
One final note for Custom Expressions. Just listing somthing looks for things with that tag, you can link multiple things via "&". ALternately you can link with or via"|". Not is indicated by ! placed in front of the tag.

Example: Look for something with User tag A and either B or C, and not D would be

User.A & User.B|User.C & !User.D
 
#applyresist[type, bonus]

~ Give us resistance 5 vs. acid
#applyresist[xDamRsAcid, 5]

It works fine for the 5 energytypes, but i need a resisteance for the elements too (fire, water, air and earth). I didn't found the tags. At the moment I use the specific tag.
 
In the Editor you can click on "Help for some basic information, and a link to the Wiki.

I have less access to internet, so this possibility is not really useful (no access to internet when I can use HeroLab and vice versa).

In the Help Files click on "Useful Macros"

Sorry, I didn't found them....


The luckbonus works fine. Thank you.

I need to add an racial bonus to attack and damage for the bite attack (or other attacks)
 
Last edited:
I have less access to internet, so this possibility is not really useful (no access to internet when I can use HeroLab and vice versa).
The help pages are in HTML format, but they are not located on the internet. They are in Hero Lab's local directory. So you can easily get to them with no access to the internet.
 
OK, now I found it.
There are a lot of useful things in.

But:
How can I add a attribute bonus to a selectable attribute? I have the ability +1 at any attribut score (use the selection menu for this - but I don't know how to use the information what kind if attribute is selected).
 
Step 1 - Have the base special with a chooser looking for a User tag on 6 invisible specials (one for each attribute) that are bootstrapped.

Step 2 - Write an Eval Script that applies a different User tag to whichever special is chosen.

Step 3 - On each special have an Eval script, if the User tag from Step 2 is present, apply the +1 bonus to that stat. For examples of stat boosting code look at the Dragon Disciple prestige class.

Final Step - Test and adjust as necessary. Ask here if you have trouble.
 
There's a much easier way to choose an attribute - Find the "Item Selection" section on the class special tab.

Leave "Select From" blank

Enter "component.BaseAttr" as the "Custom Expression"

Set "Restrict First List to..." to "All Picks on Hero"

Now, in an Eval Script, phase: Pre-Attributes/priority: 10000

Code:
if (field[usrChosen1].ischosen <> 0) then
  field[usrChosen1].chosen.field[Bonus].value += 1
  endif
 
OK, I found the right tag.....

My next problem concerns templates. I created a template and i created some "Special". I bootstrapped the special and it worked. Now is my problem: the specials are leveldependent (it means, i have to activate the special, when the charakterlevel is greater than a value).

When I used it for class specials i used "count:Classes.xxx >= 13" buit it works only for the class xxx.
"herofield[tLevel].value <= 13" produces an error and will not work. What's the right expression?

The 2. problem is: these specials are spell-like abilities where you can chose one of three for this special. How can I realize that?

Maybe I can look in lawful_g's dataset when I get it.

@lawful_g: Did you recieve my PM with my e-mail adress?
 
Back
Top