Page 1 of 1

Time Condition

Posted: Wed Jul 27, 2011 7:26 am
by OrcSlayer101
I've been looking for a sort of time elapsed condition for a trigger like this

Event: Player 1 leaves the game
:arrow: Condition: Time elapsed = 1 minute or more
Display game message bla bla bla

where can i find a condition like this (integer, Boolean) or is it even possibe :?

Re: Time Condition

Posted: Wed Jul 27, 2011 1:25 pm
by 3ICE
No such condition, I will give you two possible workarounds.
Since you didn't post your trigger's name I will call it "trigger x".

This workaround is elegant and is reusable for multiple triggers:
Step 1: Create a boolean variable: Time_elapsed_equals_1_minute_or_more (a shorter name would be better of course).
Step 2: Create a new trigger with event: Elapsed game time is 1 minute.
Step 3: Add the "Set variable Time_elapsed_equals_1_minute_or_more = true" action to the new trigger.
Step 4: Add the condition "Time_elapsed_equals_1_minute_or_more equals true" to your trigger x.


Ugly hack, usable once only per trigger:
Step 1: Trigger x starts off disabled.
Step 2: Create a new trigger with event: Elapsed game time is 1 minute.
Step 3: Add the "Enable trigger x" action to the new trigger.

Send 5$ to paypal@3ice.hu if you like my solution.

Re: Time Condition

Posted: Wed Jul 27, 2011 6:54 pm
by OrcSlayer101
Lol thanks. The first solution works great. I was thinking of doing something like that but was hoping there was a easier way.

Oh and sorry but at the moment my life savings have only adeed up to 2 cents. Ill get back to you in a couple thousand years

Re: Time Condition

Posted: Thu Jul 28, 2011 6:52 am
by 3ICE
Then recruit more people to join. Only if you feel like doing it, I'm not forcing anything.

p.s.: How about 5000 years? Haha, I'll hold you to it.