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.
  • jonas jonas:
    Cool, enjoy your vacation!
  • The Helper The Helper:
    Have a great vacation Tom!
  • The Helper The Helper:
    Happy Friday Night!
    +1
  • V-SNES V-SNES:
    Happy Friday Night!
    +1
  • The Helper The Helper:
    Going out of a town for the weekend will be back sunday night! Hope everyone has a great weekend!
    +2
  • The Helper The Helper:
    Happy Monday!
  • Ghan Ghan:
    Monday? Speak for yourself. :p
    +2
  • The Helper The Helper:
    Happy Taco Tuesday!
    +1
  • The Helper The Helper:
    Tacos! :)
  • The Helper The Helper:
    Check out the discord for taco pictures :) You cannot put pictures in this chat
    +1
  • The Helper The Helper:
    Damn here come the bots again - 193 online but they are totally invisible to any stats - bunch of bots!'
  • C cubanismo:
    Re: Taco Tuesday, if there were some way to share edible tacos over the internet, technology would be complete.
    +2
  • The Helper The Helper:
    One can only wish!
  • tom_mai78101 tom_mai78101:
    I'm back from Taiwan
    +1
  • The Helper The Helper:
    I am reorganizing the site I know nobody will notice but I am not done quite yet but the main forums order has been changed and there is a new news category in Other News which is all the remaining headline news stuff not categorized - Headline News is just the stuff that shows on the main page now and the news archive is off the main forums page
  • The Helper The Helper:
    and the real archive lives off of headline news

    The Helper Discord

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top