0
Answered

"value is less or equal" in stats module not working

snorbii 2 months ago in Stats updated by Marti (Lead Developer) 1 month ago 2

Hi! 

Why isnt work this condition? this condition starts with an onstart trigger.
Help me pls :)

Unity version:
2019.4.6f1
Game Creator version:
1.1.9

Answer

+1
Answer

Why are you using an Onstart trigger and not the on attribute change trigger? Do you only want to check the player's health on start?

+1
Answer

Why are you using an Onstart trigger and not the on attribute change trigger? Do you only want to check the player's health on start?

Answered

Yup, Thatunder is right. Conditions are only checked when invoked. You need to detect when a stat changes its value and then apply the Condition check. Using a "On Stat Change" Trigger instead of "On Start" should do the trick.