A simple defeat condition

BlargIAmDead

New Member
Reaction score
25
I'm making a set of triggers where if Players 3 and 4 lose all of their buildings and units, they lose, and when both have lost, Player 2 gets a victory.

Hatecrest
Events
Player - Player 3 (Teal)'s Food used becomes Equal to 0.00
Conditions
(Count structures controlled by Player 3 (Teal) (Exclude incomplete structures)) Equal to 0
Actions
Wait 2.00 seconds
Game - Defeat Player 3 (Teal) with the message: The Hatecrest Naga ...
Quest - Display to (All players) the Warning message: WARNING: The Hatecr...
Set HatecrestDefeat = True
Trigger - Run Murfolk Victory <gen> (checking conditions)

Slitherblade
Events
Player - Player 4 (Purple)'s Food used becomes Equal to 0.00
Conditions
(Count structures controlled by Player 4 (Purple) (Exclude incomplete structures)) Equal to 0
Actions
Wait 2.00 seconds
Game - Defeat Player 4 (Purple) with the message: The Slitherblade Na...
Quest - Display to (All players) the Warning message: WARNING: The Slithe...
Set SlitherbladeDefeat = True
Trigger - Run Murfolk Victory <gen> (checking conditions)

Murloc Victory
Events
Conditions
(HatecrestDefeat Equal to True) and (SlitherbladeDefeat Equal to True)
Actions
Wait 5.00 seconds
Game - Victory Player 2 (Blue) (Show dialogs, Show scores)

The triggers don't seem to work in my latest map, even though they worked in an older version. Any ideas?
 
P

Pawnable

Guest
It has to be every 0.01 seconds or 'Map Initilization' for the event..
 

BlargIAmDead

New Member
Reaction score
25
My mistake; I should have added that none of the triggers seem to work. No warning message is shown for the defeat of Players 3 and 4, even when I give a Map Init event to the "Murloc Victory" trigger. Something must be wrong with the "Hatecrest" and "Slitherblade" triggers, but I'm not sure what...
 

Zeromatter

New Member
Reaction score
20
Dont make it "Food=0."


Event: A unit owned by Hatecrest (Or whatever dies)
conditions:
Actions: If number of units owned by Hatecrest matching "is alive" (Means if they're living) =0, then defeat Hatecrest, run murlock victory.

Repeat for the other side.
 

BlargIAmDead

New Member
Reaction score
25
I used two conditions instead of one (Count Structures and Count Non-Structure Units), but otherwise that works. Thanks, Zeromatter!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top