Staredit Network

Staredit Network -> UMS Assistance -> Trigger assistance
Report, edit, etc...Posted by ae)fenrir on 2005-12-01 at 09:27:17
Please Help!

i am making a map where i need a specific line of triggers to operate it.
What i need to have happen is that every time a vhichle gets destroyed, in 30 seconds it respawns, and i need this to repeat. I kknow about the perserve trigger but it just keeps creating that vheicle. I only want one of the vichles out at a time, but when they are destroyed, i need them to come back in 30 seconds...
HELP IF YOU UNDERSTAND WHAT I AM ASKING!!!

Also, i whould like to know how to make it so every time you kill a unit you get an amout of minerals. But if you do some thing like:
Player 1 kills 1 zerg. Player 1 gets 5 minerals. preserve trigger
it just keeps giving. How can i do this with out getting tons of minerals????
Report, edit, etc...Posted by Kenoli on 2005-12-01 at 09:52:19
QUOTE
What i need to have happen is that every time a vhichle gets destroyed, in 30 seconds it respawns, and i need this to repeat.
Do you have just one thing to respawn, or one for each player, or lots?
If you've got just one, you could set the coundown timer to 30 seconds and respawn when it gets to 0.
If you have one for each player, you could use a counter (like custom score or a death count) and counts up and respawns the unit when it gets high enough.
If you have lots of the same unit to respawn, tell me and I'll explain something you could do.

Why...
QUOTE
Player 1 kills 1 zerg. Player 1 gets 5 minerals. preserve trigger
Dosen't work:
You can't subtract from a player's kills. Once the player gets at least one kill, the trigger will always end up ture. (You can set the player's "Kill" score, but that's not the same score as how many kills the player has of a certain unit)

Tutorials:
Kills to Cash
Kills to Cash 'Perfect'
Report, edit, etc...Posted by Syphon on 2005-12-01 at 15:44:05
QUOTE(ae)fenrir @ Dec 1 2005, 09:27 AM)
Please Help!

i am making a map where i need a specific line of triggers to operate it.
What i need to have happen is that every time a vhichle gets destroyed, in 30 seconds it respawns, and i need this to repeat.  I kknow about the perserve trigger but it just keeps creating that vheicle.  I only want one of the vichles out at a time, but when they are destroyed, i need them to come back in 30 seconds...
HELP IF YOU UNDERSTAND WHAT I AM ASKING!!!
[right][snapback]368845[/snapback][/right]



Trigger
Description:
Respawn Set
Players:
¤ Any
Conditions:
¤ Player _ brings exactly 0 "vehicle" to anywhere
Actions:
¤ Set switch 1
¤ Preserve Trigger



Trigger
Description:
Respawn
Players:
¤ Any
Conditions:
¤ Switch 1 is set
Actions:
¤ Wait 30000 milliseconds
¤ Clear switch 1
¤ Create 1 "vehicle" at "" for player _
Report, edit, etc...Posted by Kenoli on 2005-12-01 at 16:33:13
What's the point of the switch there? You could just have the conditions of the top one with the actions of the bottom one.

I never heard of the "suffers brings" trigger, lol. tongue.gif
Report, edit, etc...Posted by Diggidoyo on 2005-12-01 at 16:54:59
why is the "suffers brings" count 0? that makes no sense either.
Report, edit, etc...Posted by Kenoli on 2005-12-01 at 17:00:31
Maybe he was aiming for something like this:

Trigger
Description:
Respawn
Conditions:
¤ 'Player' commands 'exactly 0' 'Unit'.
Actions:
¤ Preserve Trigger.
¤ Wait 30000ms.
¤ Create 1 'Unit' at 'Location' for 'Player'.


*Edit*
A trigger like this would work, but you should be careful about using such a long wait.
Report, edit, etc...Posted by The_Shattered_moose on 2005-12-01 at 20:27:28
However, were you to attempt to run the trigger that way, they would all execute at once, seeing as the conditions would be true for all of them if they were for one.
Therefor, using the handy little preserve trigger action would probably be much, much smarter.
Report, edit, etc...Posted by Raindodger on 2005-12-01 at 20:52:15
Lol, and to add on to the last post. It's actually a lot easier just to click "Preserve Trigger" rather then clicking copy 100 times, which would not work.
Report, edit, etc...Posted by Syphon on 2005-12-02 at 13:49:25
QUOTE(Kenoli @ Dec 1 2005, 04:33 PM)
What's the point of the switch there? You could just have the conditions of the top one with the actions of the bottom one.

I never heard of the "suffers brings" trigger, lol. tongue.gif
[right][snapback]368967[/snapback][/right]



QUOTE(Diggidoyo @ Dec 1 2005, 04:54 PM)
why is the "suffers brings" count 0? that makes no sense either.
[right][snapback]368984[/snapback][/right]


I originally ment suffers deaths, but changed it to brings becuase suffers deaths wouldn't work. And there is no "commands ___ units" trigger. Well atleast I don't think so.
Report, edit, etc...Posted by Kenoli on 2005-12-02 at 17:48:38
QUOTE
I originally ment suffers deaths, but changed it to brings becuase suffers deaths wouldn't work.
Actually deaths would work.
QUOTE
And there is no "commands ___ units" trigger. Well atleast I don't think so.
Command is like bring, but without a location.
[attachmentid=15783]
Next Page (1)