Below is the code for a helper in their "hurt state", I'm trying to get this changestate to happen only once, after the fvar has dripped below 350, but it happens every time the helper is attacked and sent to a new state. The fvar is acting as HP. and I can't change the var(52) number since the helper's existence is tied to it. So, I'm left with feeling kind of lost, being working on this for almost a week now and I can't figure out the right set up for the triggers.[State 999, ChangeState]type = ChangeStatetriggerall = fvar(0) <= 350 trigger1 = var(52)= 300trigger1 = time = 1value = 1923
Set a variable in state 1923 to 1, then add "triggerall = Var(x) != 1" to the changestate controller, where x is the variable set to 1. Assuming Var(0) was used, this code is added to state 1923:Code: [State 1923, VarSet]type = VarSettrigger1 = Var(0) != 1v = 0value = 1Then the above changestate controller should be this:Code: [State 999, ChangeState]type = ChangeStatetriggerall = fvar(0) <= 350triggerall = Var(0) != 1trigger1 = var(52)= 300trigger1 = time = 1value = 1923
This was perfect! I was wondering why I didn't get a notification or at least a small reply after two days. Thanks a bunch for the quick response as well, I can finally move on to something else.Variables will never be my strong suit, no matter how often I use'em.