• 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 do I edit Eval scripts?

pwiecek

Member
I'm trying to create a new condition using the editor. I copied the "Fatigued " condition and clicked the "Eval Script" button. This is what I see:

~ If we're not enabled, get out now
doneif (field[pIsOn].value + hero.isidentity[Condition] = 0)

~ -2 STR
hero.child[aSTR].field[Penalty].value -= 2
~ -2 DEX
hero.child[aDEX].field[Penalty].value -= 2

All fine & good if all I want to modify are Str & Dex, but I want to change attack bonus, damage etc. Where do I find a list of all the children?
 
The best approach is to think of a feat or ability which grants the same effect that you are trying to achieve, and then look at the scripts on that feat/ability to see how it does it.

e.g. "Prayer: ally" spell ability adjustment for bonus to attack, there's another which is for the enemy which grants a penalty. (These adjustments might be in the community pack.)
 
I'm trying to create a new condition using the editor. I copied the "Fatigued " condition and clicked the "Eval Script" button. This is what I see:

~ If we're not enabled, get out now
doneif (field[pIsOn].value + hero.isidentity[Condition] = 0)

~ -2 STR
hero.child[aSTR].field[Penalty].value -= 2
~ -2 DEX
hero.child[aDEX].field[Penalty].value -= 2

All fine & good if all I want to modify are Str & Dex, but I want to change attack bonus, damage etc. Where do I find a list of all the children?

I don't know if there is a comprehensive list of all children in HL, but I know attack bonuses reside in the Attack pick, and damage in the Damage pick. There is also a very useful tutorial that helps you find most common picks, click on help and select "Help on using the editor."
 
Another excellent way to explore the values is to turn on Development tools in the product, and then to right-click the item you want to edit, and bring up its info. :) Alternately, you can use the Development menu to view all of the Fields, or Picks, on the Hero.
 
Thanks, the combination should get me most of the stuff I need.

Farling, what is the community pack & where is it?
 
Thanks, the combination should get me most of the stuff I need.

Farling, what is the community pack & where is it?
HERE

In addition I would recommend reading the Glossary of Terms for the Editor. Then check out FAQ#2 for all the places to learn about the editor including YouTube videos. Welcome to the wonderful world of using the HL editor which will be the most frustrating and rewarding thing you can do with Hero Lab. :)
 
Thanks. I'm trying to add something to the conditions like "Raging" or "Hasted". Do you know if someone has done something like that already?
 
Thanks. I'm trying to add something to the conditions like "Raging" or "Hasted". Do you know if someone has done something like that already?
You mean the spell effects? Have you checked the adjust tab under Spell Adjustments? That lists lots of the spells in the game and or provides a very useful list of examples to make your own.

If you mean Barbarian Rage then you can just turn on "Rage" on the In-Play tab already.

Otherwise need more info if those are not what you are looking for.
 
No, that's exactly what I mean.

I found raging after posting but never saw a spell effects section

...

Beauty! That's exactly what I was looking for.
 
Last edited:
Back
Top