• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Unit spawn trigger.

Status
Not open for further replies.
Level 2
Joined
Jun 1, 2010
Messages
13
I've tried to make one that looks something like the one in Footmen Frenzy, but i dont realy quiet remember how that one looked like, and my skills with the SC2 trigger editor are not so good yet... it is way to messy... Nothing like the WC3 WE :(

This is the closest i've cometh to achieve my tiny goal :confused:
  • ((Unit(Any Unit)) is in Player 1) == true
 
Last edited:
Here is what your trigger would look like if you wanted to create a footman frenzy type of map:

Trigger.png


To stop the spawns when the main base dies:

Trigger2.png
 
Level 2
Joined
Jun 1, 2010
Messages
13
Here is what your trigger would look like if you wanted to create a footman frenzy type of map:

Trigger.png


To stop the spawns when the main base dies:

Trigger2.png

Thank you, but that i knew =)
But it is my fault for not letting you know in my badly explaind OP.

What i need is a condition that detects what buildning is in a region, and spawns a unit according to that unit in region.
 
Level 2
Joined
Jun 1, 2010
Messages
13
Footman frenzy spawns do not need triggers in SC2. Next to win and lose you could make a footman frenzy using only the data editor.

Oh, i did not know that.
Thought that was like the Object Editor in World Editor.


Well, thank you.
I'll try and see what i am able to decipher from that data editor.

Edit:... do i have to know anything at all about coding?

/body
/neck

? -.-;
 
Level 2
Joined
Jun 1, 2010
Messages
13
On the event: <building A> enters <region>
Action: (if then else) spawn <unit A> else spawn <unit B>

or..

On the event <every 1 second of game time>
condition <building A> current life >= 1
Action: spawn <unit A>

I found out what to do, in the world editor <3

World Editor
  • Untitled Trigger 001
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in Region 000 <gen>) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Town Hall
            • Then - Actions
              • Do nothing
            • Else - Actions
              • Do nothing

Galaxy Editor

For some unkown, frustrating reason, the triggets from SC2 wont copy now.


Actions
Unit Group - Pick each unit in (Any units in Test1 owned by player Player 1 matching No Unit Filter, with at most Any Amount) and do (Actions)

- General - If (Conditions) then do (Actions) else do (Actions)
- (Picked unit) == [Can only pick units on the map /sadface]
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
lol.

In wc3, it automatically made u select the type. in SC2, it gives u unit. Click the ( looking thingy to pull up the menu to switch to unit type.
 
Level 2
Joined
Jun 1, 2010
Messages
13
lol..
  • Trigger
    • General - If (Conditions) then do (Actions) else do (Actions)
      • If
        • (Unit type of (Picked unit)) == Command Center
      • Then
      • Else
nuff said

is that structure picked from the map, or from a list?
Becouse, i dont get the list, only structure placed on the map, and i dont want that, since the structures will change when upgraded.


Edit: I see now what you did there -.-;
Thank you,

This thread may now be closed =)
 

Attachments

  • right-and-wrong.jpg
    right-and-wrong.jpg
    322.2 KB · Views: 393
Status
Not open for further replies.
Top