• 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

Activated Ability Activation Amount Field

ValaraukarU

Well-known member
I am trying to script an activated ability with an amount of activation. I have the special ability in the editor, but I cannot find an example of an ability with an activation amount so I can get its value in the script.

hero.child[ArmorClass].field[BonProfane].value += field[<what to put here>].value
 
When you create a racial ability you can specify Choose Activation amount. Then that ability will appear on the In-Play tab with a +X scrollable value that can be changed.

I am thinking to use this to specify the number of Anchored Spirits a Chained Spirit has and use it to set the fast healing and # of chains and profane AC bonus. What I don't know is what the field is called to get its value in script.

if it were an adjustment I would use field[pAdjust].value. I just don't know what to use to get the value of an amount from an activated ability.
 
You can see the fields assocatied to any Thing in Hero Lab. So to find the correct field Right click on the "?" of your Thing on the In-Play tab to get a list of choices. Take the one called something like "Show Debug Fields...".

If you don't see that you have to go to the develop menu, make sure the first option, "Enable Data File Debugging" is checked. This way you can start seeing the name of the fields on Things and their values. Really helpful. Plus this lets you do a Ctrl-R which does a quick reload of the data set. Also very helpful when making changes.

Plus their is an option in the Develop menu to see Tags/Fields for the Hero or for anything currently Live on the Hero.

Hopefully that should help you track down the value of the field you are looking for.
 
Back
Top