Condition help.

Str4ndb3rg

Cool Member
Reaction score
0
I'm a little lost about conditions. What I am trying to do is that when a player dies they get unallied with their allies and get allied with player 12. I'll show the script.

Code:
Untitled Trigger 003
    Events
        Unit - A unit owned by Player 1 (Red) Dies
    Conditions
        ((Triggering unit) is A structure) Equal to ((Triggering unit) is dead)
    Actions
        Player - Make Player 1 (Red) treat Player 12 (Brown) as an Ally with shared vision
        Player - Make Player 1 (Red) treat Player 2 (Blue) as an Enemy
        Player - Make Player 1 (Red) treat Player 3 (Teal) as an Enemy
        Player - Make Player 1 (Red) treat Player 4 (Purple) as an Enemy
        Player - Make Player 1 (Red) treat Player 5 (Yellow) as an Enemy
        Player - Make Player 1 (Red) treat Player 6 (Orange) as an Enemy
        Player - Make Player 1 (Red) treat Player 7 (Green) as an Enemy
 

whoopwhoop

Cool Member
Reaction score
1
So you want to make it happen only when a structure dies?

In that case you just need to do:
Trigger:
  • ((Triggering unit) is A structure) Equal to True


Instead of the condition you have now.
 

Xan_Kriegor

I can change this now in User CP.
Reaction score
12
I think the condition you're looking for is this:
Trigger:
  • ((Triggering Unit) is a Hero) Equal to True
 
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