• 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

Battered Condition

Frodie

Well-known member
Sorry for the inconvenience, I have a question on a mechanic I am try to get to work.

It's for a Battered Condition: "A battered character is at 50% or less of his hit point total."

I have the condition working correctly, but I wanted to make a mechanic to apply all the time. Basically if you lose 1/2 your hit points you automatically are under the "Battered Condition"

Here is my script:


if (hero.child
PHP:
 <= hero.child[pHP].value/2) then
        perform hero.assign[Condition.pMPSGGTBat]
        endif


and here is the error:

Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'mMPSGGTBat' (Eval Script '#1') on line 2
  -> Invalid child transition syntax used


Thank you for help and ideas.
 
if (hero.child
PHP:
 <= hero.child[pHP].value/2) then
        perform hero.assign[Condition.pMPSGGTBat]
        endif
[/QUOTE]

Your missing .value on the first pHP line:

[code]
if (hero.child[pHP][B].value[/B] <= hero.child[pHP].value/2) then
    perform hero.assign[Condition.pMPSGGTBat]
endif
[/code]
 
Back
Top