[CoreRPG] Force a field update
Hello,
I am stuck with a problem that I can't find a solution to, mainly because of a lack of knowledge.
Let’s say i have a field called Strength, with a numerical value, i.e 6. This field has a source=«strength.value» name that i use to call this value later. I got a second field too on the same character sheet, wich has to build from this Strength value, i.e. Base Strength value+1. To do this, i have a lua file with the formulae, calling the Strength via getDatabaseNode().getChild().getvalue.
The problem appears when i change and update the base Strength value of 6 to another one, i.e. 8: the second field doesn’t refresh accordingly, despite the setValue and function onInit used. It stays at 6+1 and i have to reload the entire ruleset to see the second field updated to 8+1.
What am i missing or doing wrong?
Thanks by advance