Defeat question

hamiltonbb2

Cool Member
Reaction score
0
Hey, why isn't this displaying a Defeat message?

Code:
Events
Unit - A unit dies
Conditions
(Number of units in (Units of type Lost Recruit)) Equal to 0
Actions
Wait 10.00 seconds
Game - Defeat Player 1 (Red) with the message: Defeat!
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
well it must be the condition try giving us more details about this condition like what it checks and what it supposed to do....
 

werasd

New Member
Reaction score
14
Try doing this...

So try doing this... i think it wont help but if it does...

Code:
Defeat
    Events
        Unit - A unit Dies
    Conditions
        (Number of units in (Units of type Footman)) Equal to 0
    Actions
        Wait 10.00 seconds
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked player) controller) Equal to User
                        ((Picked player) slot status) Equal to Is playing
                    Then - Actions
                        Game - Defeat (Picked player) with the message: Defeat!
                    Else - Actions
                        Do nothing
 

hamiltonbb2

Cool Member
Reaction score
0
well okay, its: player 1 (marine)

player 12 (9 marine allies)

if all marines die, i want a defeat trigger to run
 

Miz

Administrator
Reaction score
424
Hey, why isn't this displaying a Defeat message?

Code:
Events
Unit - A unit dies
Conditions
(Number of units in (Units of type Lost Recruit)) Equal to 0
Actions
Wait 10.00 seconds
Game - Defeat Player 1 (Red) with the message: Defeat!

May be if you change it here
Code:
Conditions
(Number of living Footman units [COLOR="Red"]owned by Player 1 (Red)[/COLOR]) Equal to 0
I think that might help because if player 12 has other marines how is red going to be defeated
 
D

dadads

Guest
1 more major problem:

"Number of units in (Units of type Lost Recruit)" also counts in the (decaying) dead bodies.
 
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