• 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.

[Trigger] The Trigger Decoding Olympics

Status
Not open for further replies.
Level 17
Joined
Aug 20, 2007
Messages
1,122
Decode what this trigger does and you get a su-prize!

(MORE TRIGGER DECODING IN BOTTOM POSTS AND ECT)

  • Spawn
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • Set spawnpoints[1] = (Center of Red Spawn Top <gen>)
      • Set spawnpoints[2] = (Center of Red Spawn Middle <gen>)
      • Set spawnpoints[3] = (Center of Red Spawn Bottom <gen>)
      • Set spawnpoints[4] = (Center of Blue Spawn Top <gen>)
      • Set spawnpoints[5] = (Center of Blue Spawn Middle <gen>)
      • Set spawnpoints[6] = (Center of Blue Spawn Bottom <gen>)
        • Do Multiple ActionsFor each (Integer A) from 0 to 1, do (Actions)
          • Loop - Actions
            • Do Multiple ActionsFor each (Integer B) from 1 to 3, do (Actions)
              • Loop - Actions
                • Unit - Create 3 Assault for (Player(((Integer A) + 1))) at spawnpoints[((Integer B) + (3 x (Integer A)))] facing Default building facing (270.0) degrees
                • Unit - Create 1 Medic for (Player(((Integer A) + 1))) at spawnpoints[((Integer B) + (3 x (Integer A)))] facing Default building facing (270.0) degrees
                • Unit - Create 1 Engineer for (Player(((Integer A) + 1))) at spawnpoints[((Integer B) + (3 x (Integer A)))] facing Default building facing (270.0) degrees
                • Unit - Create 1 Sniper for (Player(((Integer A) + 1))) at spawnpoints[((Integer B) + (3 x (Integer A)))] facing Default building facing (270.0) degrees
 
Last edited:
Level 17
Joined
Aug 20, 2007
Messages
1,122
Guys, be more exact on what your saying...

It creates at spawnpoint[1,2,3,4,5,6] 18 assaults, 6 medics, 6 engineers and 6 sniper every 15 seconds for player 1 and player 2 and sets their facing to 270.00 degrees.

IS NOT the correct answer... But it seems like it, doesn't it?

EDIT: You know what? You're quote is just not very exact... I can't really tell where your answer is pointing at...

Creates those units at spawn points 1,2,3,4,6 (twice at 2) for players red and blue.

Do you sure?
 
Level 17
Joined
Aug 20, 2007
Messages
1,122
Another day for a decoding Olympics!

This time, there are TWO triggers, both are related to each other...

  • Variable Setup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set spawnregions[1] = Red Spawn Top <gen>
      • Set spawnregions[2] = Red Spawn Middle <gen>
      • Set spawnregions[3] = Red Spawn Bottom <gen>
      • Set spawnregions[4] = Blue Spawn Top <gen>
      • Set spawnregions[5] = Blue Spawn Middle <gen>
      • Set spawnregions[6] = Blue Spawn Bottom <gen>
  • Spawn Move
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • Do Multiple ActionsFor each (Integer A) from 0 to 1, do (Actions)
        • Loop - Actions
          • Do Multiple ActionsFor each (Integer B) from 1 to 3, do (Actions)
            • Loop - Actions
              • Set spawnunitsgroups[((Integer B) + (3 x (Integer A)))] = (Units in spawnregions[((Integer B) + (3 x (Integer A)))] owned by (Player((1 + (Integer A)))))
      • Do Multiple ActionsFor each (Integer A) from 1 to 3, do (Actions)
        • Loop - Actions
          • Unit Group - Pick every unit in spawnunitsgroups[(Integer A)] and do (Actions)
            • Loop - Actions
              • Unit - Order (Picked unit) to Attack-Move To spawnpoints[(3 + (Integer A))]
      • Do Multiple ActionsFor each (Integer A) from 1 to 3, do (Actions)
        • Loop - Actions
          • Unit Group - Pick every unit in spawnunitsgroups[(3 + (Integer A))] and do (Actions)
            • Loop - Actions
              • Unit - Order (Picked unit) to Attack-Move To spawnpoints[(Integer A)]
Triggers work in-game~
 
Status
Not open for further replies.
Top