fail on hero death?

ghostsick113

New Member
Reaction score
0
how do i make it so that when the hero dies the game ends with a failure

one more thing how do you make it so after you kill a curtain unit the game ends with a win

anything will help thanks :thup:
 

Ayanami

칼리
Reaction score
288
Trigger:
  • Defeat
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • Game - Defeat Player 1 (Red) with the message: Defeat!


In this trigger, Triggering unit refers to the dying unit.
 

Raveren

New Member
Reaction score
1
And also,
Trigger:
  • Victory
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Big Bad Evil Man
    • Actions
      • Game - Victory Player 1 (Red) (Show Dialogs, Show Scores)


Sorry if something is bad translated ;P
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Here's a more overall used trigger:
Trigger:
  • Win and Defeat
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Footman
          • ((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Temp_PGroup = (All allies of Player 1 (Red))
          • Player Group - Pick every player in Temp_PGroup and do (Actions)
            • Loop - Actions
              • Game - Defeat (Picked player) with the message: Defeat!
          • Custom script: call DestroyForce(udg_Temp_PGroup)
          • Set Temp_PGroup = (All allies of Player 7 (Green))
          • Player Group - Pick every player in Temp_PGroup and do (Actions)
            • Loop - Actions
              • Game - Victory (Picked player) (Show dialogs, Show scores)
          • Custom script: call DestroyForce(udg_Temp_PGroup)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Grunt
          • ((Owner of (Triggering unit)) is an ally of Player 7 (Green)) Equal to True
        • Then - Actions
          • Set Temp_PGroup = (All allies of Player 7 (Green))
          • Player Group - Pick every player in Temp_PGroup and do (Actions)
            • Loop - Actions
              • Game - Defeat (Picked player) with the message: Defeat!
          • Custom script: call DestroyForce(udg_Temp_PGroup)
          • Set Temp_PGroup = (All allies of Player 1 (Red))
          • Player Group - Pick every player in Temp_PGroup and do (Actions)
            • Loop - Actions
              • Game - Victory (Picked player) (Show dialogs, Show scores)
          • Custom script: call DestroyForce(udg_Temp_PGroup)
        • Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top