Triggers Help


Topic author
RenTed
Terran Academy Student (50k mineral debt)
Terran Academy Student (50k mineral debt)
Posts: 6
Joined: Mon Sep 03, 2012 10:32 am
Status: Offline

Triggers Help

Postby RenTed » Sat Oct 04, 2014 9:58 am

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 ;)

User avatar

Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6579
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet
Contact:
Status: Offline

Re: Triggers Help

Postby Lavarinth » Sat Oct 04, 2014 10:23 am

What are the triggers you are actually using?
- - Lavarinth
Campaign Creations Administrator


Topic author
RenTed
Terran Academy Student (50k mineral debt)
Terran Academy Student (50k mineral debt)
Posts: 6
Joined: Mon Sep 03, 2012 10:32 am
Status: Offline

Re: Triggers Help

Postby RenTed » Sat Oct 04, 2014 10:30 am

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.

User avatar

Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6579
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet
Contact:
Status: Offline

Re: Triggers Help

Postby Lavarinth » Sun Oct 05, 2014 1:12 am

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"
- - Lavarinth
Campaign Creations Administrator


Topic author
RenTed
Terran Academy Student (50k mineral debt)
Terran Academy Student (50k mineral debt)
Posts: 6
Joined: Mon Sep 03, 2012 10:32 am
Status: Offline

Re: Triggers Help

Postby RenTed » Sun Oct 05, 2014 3:29 am

Wow, thx alot Lavarinth. I will try this when i get back home.

Thx again :)


Topic author
RenTed
Terran Academy Student (50k mineral debt)
Terran Academy Student (50k mineral debt)
Posts: 6
Joined: Mon Sep 03, 2012 10:32 am
Status: Offline

Re: Triggers Help

Postby RenTed » Sun Oct 05, 2014 11:41 am

A small question,

If i put "Always" instead of "Game Start" for the switch, will it work the same way??

User avatar

Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6579
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet
Contact:
Status: Offline

Re: Triggers Help

Postby Lavarinth » Thu Oct 09, 2014 9:09 am

I believe so, yes!
- - Lavarinth
Campaign Creations Administrator


Return to “StarCraft Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests