Trigger:
Events
Player - Player 1 (Red) types a chat message containing - as An exact match
Conditions
Actions
Set Minus = 1
When i write "-" in the chat the variable Minus is set to 1, as you can see above.
The problem is that i have this trigger:
Trigger:
Events
Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
Conditions
Minus Equal to 1
Actions
Set Minus = 0
Now i would think that AFTER writing "-", the condition of the above trigger should be true, and therefore run the NEXT time that i write something,
but the problem is that when i write "-", BOTH triggers is executed (is that the right word for it ?) and therefore i am not getting a second string/chat message, then my theory would be that the second trigger is being executed AFTER "Minus" has been set to 1, which would result in that both triggers will be executed...
I have had this exact problem before, and last time i just solved it by adding a 0.01 second wait BEFORE setting "Minus" to 1, that worked fine and all, but i think its weird that i have 2 triggers which are NEARLY the same as the above 2, which is working fine WITHOUT any wait before setting the variable.
So my questions is: Is it right that one of the triggers is executing before the other, and therefore running both triggers ? And that the only solution is adding a 0.01 second wait ? (i wouldnt mind, it just seems weird that i, as i said, have identical triggers which IS working.....?
Hope anyone gets this
Thx in advance.
PS: Dont try to get any meaning out of the triggers (purpose, etc.), i have edited out the unrelevant stuff.
Events
Player - Player 1 (Red) types a chat message containing - as An exact match
Conditions
Actions
Set Minus = 1
When i write "-" in the chat the variable Minus is set to 1, as you can see above.
The problem is that i have this trigger:
Trigger:
Events
Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
Conditions
Minus Equal to 1
Actions
Set Minus = 0
Now i would think that AFTER writing "-", the condition of the above trigger should be true, and therefore run the NEXT time that i write something,
but the problem is that when i write "-", BOTH triggers is executed (is that the right word for it ?) and therefore i am not getting a second string/chat message, then my theory would be that the second trigger is being executed AFTER "Minus" has been set to 1, which would result in that both triggers will be executed...
I have had this exact problem before, and last time i just solved it by adding a 0.01 second wait BEFORE setting "Minus" to 1, that worked fine and all, but i think its weird that i have 2 triggers which are NEARLY the same as the above 2, which is working fine WITHOUT any wait before setting the variable.
So my questions is: Is it right that one of the triggers is executing before the other, and therefore running both triggers ? And that the only solution is adding a 0.01 second wait ? (i wouldnt mind, it just seems weird that i, as i said, have identical triggers which IS working.....?
Hope anyone gets this
Thx in advance.
PS: Dont try to get any meaning out of the triggers (purpose, etc.), i have edited out the unrelevant stuff.