End Game

Status
Not open for further replies.
Well create 2 triggers:
  • Settings
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Wait 2100.00 seconds
      • Set Point = (Point where the unit should be spawned)
      • Unit - Create 1 (Your Unit) for (Some Player) at Point facing Default building facing (270.0) degrees
      • Set Unit = (Last created unit)
      • Custom script: call RemoveLocation(udg_Point)
  • End
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Triggering unit) Equal to (==) Unit
    • Actions
      • Game - Victory (Some Player) (Show dialogs, Show scores) //set the players that should win
      • Game - Defeat (Some Player) with the message: Defeat! ////set the players that should loose
 
Well create 2 triggers:
  • Settings
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Wait 2100.00 seconds
      • Set Point = (Point where the unit should be spawned)
      • Unit - Create 1 (Your Unit) for (Some Player) at Point facing Default building facing (270.0) degrees
      • Set Unit = (Last created unit)
      • Custom script: call RemoveLocation(udg_Point)
  • End
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Triggering unit) Equal to (==) Unit
    • Actions
      • Game - Victory (Some Player) (Show dialogs, Show scores) //set the players that should win
      • Game - Defeat (Some Player) with the message: Defeat! ////set the players that should loose

It's way better to use
  • Time - Elapsed game time is 2100.00 seconds
in first trigger.
 
okay Malthe16 here you go a test map with two triggers and a region where to spawn a unit.
You need to cope Folder called "End Game" to your map and Region called "Spawn Point"
After you copy those into your map check if point value is that region, like this:
  • Set Point = (Center of Spawn Point <gen>)
Test map attached below...
 

Attachments

Status
Not open for further replies.
Back
Top