"If Unit dies Player Team wins" How?

K

Kibawolf

Guest
I'm trying to set up a trigger so that when the final boss "unit" dies, the players team who killed the unit wins.

How do I do this?

Event:
[Unit] [Dies]

Condition:
?

Event:
?
I can't figure it out. I was thinking "Pick every unit in [Units owned by [Triggering Player]] and do [Something?] But then that doesn't win the game for the whole team. In addition, I don't even know if the editor would count the "triggering unit" as the player who killed the guy.


Please tell me if anyone knows how to do this. It seems like a simple trigger but I can't figure it out :(

Thanks in advance!
 

Bjerrum

New Member
Reaction score
12
like this

Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        (Dying unit) Equal to YourUnit
    Actions
        Player Group - Pick every player in (All allies of (Owner of (Killing unit))) and do (Actions)
            Loop - Actions
                Game - Victory (Picked player) (Show dialogs, Show scores)

remember it leaks (and if you dont know what that is, check out this tut: http://world-editor-tutorials.thehelper.net/cat_usersubmit.php) but i guess it dosen't matter when all players are victorious..

hope it helped :)
 

Sim

Forum Administrator
Staff member
Reaction score
534
Pick every players in (All allies of (Owner of (Killing unit))) and do (Actions)

Game - Victory (Picked player)
 
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