Junior Member
Join Date: Dec 2018
Posts: 11
|
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? |
#1 |
Senior Member
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623
|
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.) Farling Author of the Realm Works Import tool, Realm Works Output tool and Realm Works to Foundry module Donations gratefully received via Patreon, Ko-Fi or Paypal |
#2 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Quote:
|
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Nov 2009
Posts: 1,502
|
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.
|
#4 |
Junior Member
Join Date: Dec 2018
Posts: 11
|
Thanks, the combination should get me most of the stuff I need.
Farling, what is the community pack & where is it? |
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#6 |
Junior Member
Join Date: Dec 2018
Posts: 11
|
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?
|
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#8 |
Junior Member
Join Date: Dec 2018
Posts: 11
|
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 by pwiecek; December 28th, 2018 at 01:01 PM. |
#9 |
|
|