ok here goes... I want a series of triggers to work together, for when, like.
A rat enters.
To check a variable, and if its say like 1, then to kick rat, then set the variable to like 0, but if. You kill a rat appears. I want it to change the variable back to 1, and if the rat is still alive, when i recover balance, i want to have it check the variable again, and attack if the variable is right, any ideas or suggestions would be nice thank you all!
You want to attack the rat, if youre not already attacking it, if youre attacking it, and you recover balance, you want to kick it again, and if you kill the rat, you want to stop the balancing attack, and restart the initializing one?
Instead of using variables, you can use the "enabled" flag of the triggers. You would have three triggers.
Trigger 1:
Name: AttInitialize
match: A rat enters.
flags: enabled, keep evaluating, ignore case.
Send to: Script
Send:
world.enabletrigger "AttInitialize", 0
world.enabletrigger "Balance", 1
world.enabletrigger "RatDeath", 1
world.send "kick rat"
Trigger 2:
Name: "Balance"
match: (whatever the balance message is)
flags: keep evaluating, ignore case. (NOT ENABLED)
send to: world
Send: "kick rat"
Trigger 3:
Name: "RatDeath"
match: You kill a rat
flags: keep evaluating, ignore case. (NOT ENABLED)
send to: script
send:
world.enabletrigger "AttInitialize", 1
world.enabletrigger "Balance", 0
world.enabletrigger "RatDeath", 0
Now some comments.
You can rename the triggers, just make sure you change the first and third send texts. You can also change the sequence of the THIRD trigger to be LOWER than the second, having them in the same sequence could be problematic, because you could get 'kill a rat' and then after battle 'you regain your balance' and then it could start you in another battle (that you might not want), so if you change the sequence of the third to lower than the second, it will trigger, and then your balance message wont get triggered.
ok quick question, using that above, multiple rats may enter a room and leave during the course of the fight, could someone help me figure out how i could set it up to watch on rats that continue to enter and remove them if they laeve?