• 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

Trigger forcing recalculation of a Field?

TCArknight

Well-known member
Is there a way to have a trigger action force a script to be run or a calculate/finalize script on a field to process?

I have a Levelhelper component with levHP, levBaseHP and levBonusHP fields. Each level advanced for the hero adds a Levelhelper pick. On the Levelhelper component, I have a script running at Traits/3500 to do a
Code:
field[levHP].value = field[levBaseHP].value + field[levBonusHP].value
On the Dynamic table displaying the component, I have a action button where it sets
Code:
field[levBaseHP].value = 1 + random(6)

However, after the random number is generated, the script to calculate the field[levHP].value doesn’t run to update the overall HP gained for that level.

Is there anything I can do to force recalculation of the Field after the BaseHP value is determined?
 
I don't know of a way to force recalculation.
There is a table flag:
alwaysupdate="yes"
Which requires things to be retested when things change? Have you tried it?
 
Back
Top