PDA

View Full Version : Timer Method


raylu
02-28-2004, 8:52 PM
I downloaded a movie map off of SC.org. It had a few bugs so I opened it to edit it. The map-maker used a pretty revolutionary/original way of timing things.

So far, we either use a countdown timer, or custom score.

This person used a unit he renamed GENERIC TIMER.
I think he had a trigger somewhere that says:
Conditions:
-Always
Actions:
-Kill 1 GENERIC TIMER for Player X at 'somewhere'.
-Create 1 GENERIC TIMER for Player X at 'somewhere'.
-Preserve trigger.

Then, he referenced it by saying:
Conditions:
-Player X has suffered 100 deaths of GENERIC TIMER
Actions:
-[Something]

In this way, you could have multiple timers for everybody (there is only 1 countdown timer and 8 player timers). Also, you could reuse the timers by using the Set Deaths action.

I dunno? What do you think? Have you ever heard of this?

StealthyDeath
02-28-2004, 9:02 PM
Lots of map use this. I guess it saves timers maybe. Also the Kill trigger doesn't add into the death count. The unit has to be killed in the game by another unit.

BSTRhino
02-29-2004, 12:02 AM
Why yes, I think this is a tutorial on Campaign Creations somewhere. When someone uses the two second delay between triggers as a timer thing. Too bad it doesn't work with the hyper trigger things. But thanks for sharing it with us.

Nozomu
02-29-2004, 1:32 AM
It's a lot easier to have a trigger that adds 1 to the deaths of an unused unit every time it fires. Why bother creating the unit?

Doom_Dragoon
02-29-2004, 2:03 AM
With hypers you end up with another problem though. Rather than adding 1 each time, it add 1 for each active player per player you have it checked for. So if you set it to player 1 and there were 7 other people playing with you, it would add 8 each time. If it was for players 1 and 2 and there were 8 players again it would add 16.

raylu
02-29-2004, 7:48 AM
No, not if you create it for "Current Player."

Nozomu
02-29-2004, 4:43 PM
I usually give it to a computer, and just experiment with high numbers to keep the timing tight. The cool part about Death Counters is that they can be as high as 9,999,999. That's 10 million different states. So even with hyper triggers you can have accurate timing.

BSTRhino
02-29-2004, 6:53 PM
You're right. I never actually thought about how you could use the thing as a counter, even with hyper triggers. I just learnt something! woohoo!