Staredit Network

Staredit Network -> UMS Assistance -> Elapsed time help?
Report, edit, etc...Posted by SWATJDG on 2006-03-28 at 11:41:18
Hey, I'm having trouble with the elapsed time triggers. I'm trying to display a text message and have a wav file play at 5, 10, 15, and 20 minutes. It seems like the elapsed time is for fast speed and not fastest because the triggers happen earlier than they should. Anyone know how to convert the seconds to be used in fastest speed?
Report, edit, etc...Posted by Moogle on 2006-03-28 at 12:23:30
All you really need to know about wait timers in a starcraft map is this, 1000 = 1 second in game time, so if you wanted wait 50 seconds just do 50000 so on, is this what you wanted? Or count down timer?

\\Moogle
Report, edit, etc...Posted by SWATJDG on 2006-03-28 at 12:34:45
Basically what I want is this:

I have created some maps that are melee maps but with observer slots. The maps are played under UMS. I've created triggers to display a message and play a wav file at certain times during the game. Here's what I want:

5 seconds into game display text "GOOD LUCK!" and play wav file.
5 minutes into game display text "FIVE MINUTES!" and play wav file.
10 minutes into game display text TEN MINUTES!" and play wav file.

...and so on through 25 minutes.

I can't get the timing right for the triggers.
An example would be this:

Conditions: Elapsed scenario time is exactly 300 game seconds.
Actions: Display for current player: FIVE MINUTES!

300 seconds = 5 minutes

The problem is the trigger displays FIVE MINUTES! at around 3:30 instead of 5:00. Do you know how to adjust the seconds to display the text and play the wav files at their correct times?
Report, edit, etc...Posted by flipmonkey on 2006-03-28 at 16:35:36
Try using a death counter.

http://www.staredit.net/index.php?tutorial=124
Report, edit, etc...Posted by SWATJDG on 2006-03-28 at 17:16:02
I'm not sure how I could use that to display what I want at the specific times?
I just want to be able to display text at 5 minute intervals. Using the standard elapsed time feature makes the text display at an earlier time than wanted. I just need to figure out a way to make it display on time.
Report, edit, etc...Posted by PhoenixRajoNight on 2006-03-28 at 17:32:00
QUOTE(flipmonkey @ Mar 28 2006, 04:35 PM)
Try using a death counter.

http://www.staredit.net/index.php?tutorial=124
[right][snapback]454957[/snapback][/right]


Yes, this is the way to go, however, I would set it up, with 3 different death counters for sake of sanity.

This Timer is setup Assuming that Your using Hyper-Triggers, which cause your triggers to fire Aproximately 12 times per second, so the 1sec timer is set to 12 before it counts as a second.


Timer to track seconds
Players:
All Players

Condtions:
Deaths(CurrentPlayer, AtMost, 11, Rhynadon);

Actions:
SetDeaths(CurrentPlayer, Add, 1, Rhynadon);
Preserve Trigger();
Comment("Second Tracker Death Counter");


Second Timer
Players:
All Players

Condtions:
Deaths(CurrentPlayer, Exactly, 12, Rhynadon);
Deaths(CurrentPlayer, AtMost, 59, Bengalaas);

Actions:
SetDeaths(CurrentPlayer, Set, 0, Rhynadon);
SetDeaths(CurrentPlayer, Add, 1, Bengalaas);
Preserve Trigger();
Comment("Second Death Counter");


Minute Timer
Players:
All Players

Condtions:
Deaths(CurrentPlayer, Exactly, 60, Bengalaas);

Actions:
SetDeaths(CurrentPlayer, Set, 0, Bengalaas);
SetDeaths(CurrentPlayer, Add, 1, Scantid);
Preserve Trigger();
Comment("Minute Death Counter");


This Now makes scantid your minutes in the game, so to display your triggers.


5 Minute Message
Players:
All Players

Condtions:
Deaths(CurrentPlayer, Exactly, 5, Scantid);

Actions:
DisplayText("5 Minutes has passed", 4);
Comment("5 Minute Message");


Report, edit, etc...Posted by Noober on 2006-03-28 at 17:38:24
In fastest, the time goes 1.5x faster than normal. So if you wanted 300 real seconds in fastest, you should put it at 450 seconds.
Report, edit, etc...Posted by SWATJDG on 2006-03-28 at 20:29:52
Thanks for your help guys, but I seem to have a few more problems.

I've changed the seconds to adapt to the fastest setting, but now it seems that some of the triggers don't work. I didn't change anything except the number of seconds in the trigger. For example, while a 15 minute message will appear, the 5 or 10 minute messages won't. I don't understand what could be happening to make the triggers not take place. Also, I am using the SCMDraft program and after I save my map and close the program to test it, I try to open the map to edit it later and I get an error opening map message.

I don't see why it is so difficult to just make a map with messages that tell you how much time has gone by during the game. Or maybe I am doing something wrong? Any help?

BTW, the death counter suggestion seems like an awful lot of work just to display a text message and play a wav file. I'd much rather use the elapsed time trigger if possible, but I'd like to be able to achieve what I want with my maps in any way possible. I am not really experienced with map making so please try to explain as basic as possible?
Next Page (1)