Hello,
I'm trying to understand the flaw in my logic when subtracting HP from an enemy based on a formula (ATK-DEF) and displaying on a popup ( function call).
Here is the code:
Result:
Seems that the variable value being passed to the Popup_Damage function is the initial one and not the one calculated inside the parent function.
Just wondering if there is a construct specific logic at work or I'm overlooking something obvious.
Thanks for all the help in advance.