Ok, here's a strange one, I have the following expression trigger set up....
((@Health_Mana_Queue <> %null) AND (@Health_Mana_Balance = 1))
This code works perfectly
Health_Mana_Balance = 0
Health_Mana_Queue = %sort( @Health_Mana_Queue)
drink %delete( %item( @Health_Mana_Queue, 1), 1, 4)
Health_Mana_Queue = %delitem( %item( @Health_Mana_Queue, 1), @Health_Mana_Queue)
#ALARM {+5} {Health_Mana_Balance = 1}
note there is a "plus" before the 5 in the Alarm.
If you make Health_Mana_Queue = "500_Health|500_Health|500|Health" it gives you....
drink health
drink health
drink health
in 5 second intervals
when you change the last line to
#ALARM "HealthManaTimer" {+5} {Health_Mana_Balance = 1}
it then only executes twice, leaving Health_Mana_Balance as 0
Can anyone tell me what the difference is?