Time Condition

Do you need World Editor help? Ask here!
Before making a new topic:
First, check if your question has already been answered in the Tutorials section.
If you didn't find a solution, use the search function.
If searching didn't help either, you can make a new topic.

Topic title & content:
You must use a descriptive title. (Help plz is not good) (Need help with Dialog buttons is good)
Go into much detail when posting. You should post attachments. Like screenshots of the problem, the map you are making, replays of the error. Or you could even make a screencast (video) of your problem and upload it here.

Spelling:
Grammar seems to be a serious problem amongst teenagers, so use a spell checker or you will get no love.
Read your posts twice, before pressing the reply button.
And do not use profanity. Chatspeak (y r u nub) and Leetspeak (1 C4N S33 H4X) are not welcome here either.

Only World Editor related questions are allowed here!
(Click for Battle.net help) (Click for World Editor help)

Time Condition

New postby OrcSlayer101 on Wed Jul 27, 2011 7:26 am

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 :?
The Slayer Of Orcs...
User avatar
OrcSlayer101
 
Posts: 81
Joined: Thu Mar 25, 2010 6:09 pm
Realm: US East
Account: ShadowBlades
Clan: TvN

Re: Time Condition

New postby 3ICE on Wed Jul 27, 2011 1:25 pm

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.
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2099
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: Time Condition

New postby OrcSlayer101 on Wed Jul 27, 2011 6:54 pm

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
The Slayer Of Orcs...
User avatar
OrcSlayer101
 
Posts: 81
Joined: Thu Mar 25, 2010 6:09 pm
Realm: US East
Account: ShadowBlades
Clan: TvN

Re: Time Condition

New postby 3ICE on Thu Jul 28, 2011 6:52 am

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.
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2099
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE


Return to HELP



Who is online

Users browsing this forum: No registered users and 2 guests