Page 1 of 1
Triggers Help
Posted: Sat Oct 04, 2014 9:58 am
by RenTed
I need help on some Triggers.
I want to create 2 different constant wave of attacking Unit. But, i failed soo hard everytime

I need your help !!
First, I want to create 10-15 Units, send them to random attack, once they all die, u want them to respawn and redo the same thing over and over.
So far, im able to create the Unit and send them to their death. But, they wont respawn. I dont know what i did wrong.
Second, I want to spawn 5 units every 15 seconds. And, send them on a random attack. And, redo this over and over.
So far, im able to create the 5 units but with no delay, they just overspawn at the location and the maps getting maxed.
Im also able to send them on random attack.
I use SCMDraft map editor, so easy to use
Thanks in advance for any help you guys can provide.
From a noob map creator

Re: Triggers Help
Posted: Sat Oct 04, 2014 10:23 am
by Lavarinth
What are the triggers you are actually using?
Re: Triggers Help
Posted: Sat Oct 04, 2014 10:30 am
by RenTed
Something like that, im at work so i dont remember exactly what i used.
First:
Condition:
Elapse time 5 minutes
Actions:
Create 10 X units for X player at X location.
Order all X unit owned by X Player to attack X Location.
Second:
Condition:
Elapse time 5 minutes
Actions:
Create 10 X units for X player at X location.
Order all X unit owned by X Player to attack X Location.
Wait 15 seconds.
Preserver trigger.
I think its like that i made them.
Re: Triggers Help
Posted: Sun Oct 05, 2014 1:12 am
by Lavarinth
These triggers would not repeat, regardless of the fact they are preserved. You would need Switches in the game to have respawns like you're looking for. I don't recall StarEdit to the exact details, but I know something along the following converted to triggers would work:
First wave type:
Start the game with this:
Condition:
Game start
Action:
Disable switch "Wave Type 1"
Disable switch "Wave Type 1 Respawn"
When you want the waves to start:
Condition:
Whatever conditions you need for the waves to start
Actions:
Enable switch "Wave Type 1"
Enable switch "Wave Type 1 Respawn"
For the first wave to spawn and move:
Condition:
Switch "Wave Type 1" is Enabled
Switch "Wave Type 1 Respawn" is Enabled
Action:
Create 10 X units for X player at X location.
Order all X unit owned by X Player to attack X Location.
Disable switch "Wave Type 1 Respawn"
Preserver trigger
To make the units respawn:
Condition:
Switch "Wave Type 1 Respawn" is Disabled
Switch "Wave Type 1" is Enabled
Action:
Enable switch "Wave Type 1 Respawn"
Preserve trigger
To end the wave 1 game:
Condition:
Your condition here to end the game, such as a player has killed 30 units, etc.
Action:
Disable switch "Wave Type 1"
For the second set, it's mostly the same with a few changes:
Start the game with this:
Condition:
Game start
Action:
Disable switch "Wave Type 2"
Disable switch "Wave Type 2 Respawn"
When you want the waves to start:
Condition:
Whatever conditions you need for the waves to start
Actions:
Enable switch "Wave Type 2"
Enable switch "Wave Type 2 Respawn"
For the first wave to spawn and move:
Condition:
Switch "Wave Type 2" is Enabled
Switch "Wave Type 2 Respawn" is Enabled
Action:
Create 10 X units for X player at X location.
Order all X unit owned by X Player to attack X Location.
Disable switch "Wave Type 2 Respawn"
Preserver trigger
To make the units respawn:
Condition:
Switch "Wave Type 2 Respawn" is Disabled
Switch "Wave Type 2" is Enabled
Action:
Wait 15 seconds.
Enable switch "Wave Type 2 Respawn"
Preserve trigger
To end the wave 2 game:
Condition:
Your condition here to end the game, such as a player has killed 30 units, etc.
Action:
Disable switch "Wave Type 2"
Re: Triggers Help
Posted: Sun Oct 05, 2014 3:29 am
by RenTed
Wow, thx alot Lavarinth. I will try this when i get back home.
Thx again

Re: Triggers Help
Posted: Sun Oct 05, 2014 11:41 am
by RenTed
A small question,
If i put "Always" instead of "Game Start" for the switch, will it work the same way??
Re: Triggers Help
Posted: Thu Oct 09, 2014 9:09 am
by Lavarinth
I believe so, yes!