Victory Trigger

lordrd

New Member
Reaction score
2
See my trigger... i can't understand why it dont work...

Code:
Untitled Trigger 001
    Events
        Unit - A unit owned by Player 1 (Red) Dies
        Unit - A unit owned by Player 2 (Blue) Dies
        Unit - A unit owned by Player 3 (Teal) Dies
        Unit - A unit owned by Player 4 (Purple) Dies
        Unit - A unit owned by Player 5 (Yellow) Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Golem Tower 0041 <gen> Equal to (Dying unit)
                Golem Tower 0020 <gen> Equal to (Dying unit)
                Golem Tower 0038 <gen> Equal to (Dying unit)
                Golem Tower 0042 <gen> Equal to (Dying unit)
            Then - Actions
                Game - Victory Player 1 (Red) (Show dialogs, Show scores)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Golem Tower 0040 <gen> Equal to (Dying unit)
                Golem Tower 0020 <gen> Equal to (Dying unit)
                Golem Tower 0038 <gen> Equal to (Dying unit)
                Golem Tower 0042 <gen> Equal to (Dying unit)
            Then - Actions
                Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Golem Tower 0040 <gen> Equal to (Dying unit)
                Golem Tower 0041 <gen> Equal to (Dying unit)
                Golem Tower 0038 <gen> Equal to (Dying unit)
                Golem Tower 0042 <gen> Equal to (Dying unit)
            Then - Actions
                Game - Victory Player 3 (Teal) (Show dialogs, Show scores)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Golem Tower 0040 <gen> Equal to (Dying unit)
                Golem Tower 0041 <gen> Equal to (Dying unit)
                Golem Tower 0020 <gen> Equal to (Dying unit)
                Golem Tower 0042 <gen> Equal to (Dying unit)
            Then - Actions
                Game - Victory Player 4 (Purple) (Show dialogs, Show scores)
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Golem Tower 0040 <gen> Equal to (Dying unit)
                        Golem Tower 0041 <gen> Equal to (Dying unit)
                        Golem Tower 0020 <gen> Equal to (Dying unit)
                        Golem Tower 0038 <gen> Equal to (Dying unit)
                    Then - Actions
                        Game - Victory Player 5 (Yellow) (Show dialogs, Show scores)
                    Else - Actions

thx lordrd
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Golem Tower 0041 <gen> Equal to (Dying unit)
                Golem Tower 0020 <gen> Equal to (Dying unit)
                Golem Tower 0038 <gen> Equal to (Dying unit)
                Golem Tower 0042 <gen> Equal to (Dying unit)
            Then - Actions

Methinks those cannot all be true at the same instant.
 
A

AK-47Pirates

Guest
Yea, the

If (All conditions are true) part.

It cant be equal to all of those at the same time. :p
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Code:
Conditions
    [COLOR="Red"]Or - Any (Conditions) are true
        Conditions[/COLOR]            
            (Unit-type of (Triggering unit)) Equal to Footman
            (Unit-type of (Triggering unit)) Equal to Rifleman
            (Unit-type of (Triggering unit)) Equal to Gryphon Rider
 

lordrd

New Member
Reaction score
2
I will test it

thx lordrd

hmmm, it dont work... because i dont need "Or - Any..." i need All... i will try explain:
my map have 5 towers, all players have 1 tower. What i try to do is this -
If P1 kills P2, P3, P4 and P5 towers, P1 wins the game...

But this trigger dont work because i do:
if P1 kills P2, P3, P4 or P5 tower P1 wins the game
Code:
Untitled Trigger 001
    Events
        Unit - A unit owned by Player 1 (Red) Dies
        Unit - A unit owned by Player 2 (Blue) Dies
        Unit - A unit owned by Player 3 (Teal) Dies
        Unit - A unit owned by Player 4 (Purple) Dies
        Unit - A unit owned by Player 5 (Yellow) Dies
    Conditions
    Actions
            If - Conditions
                        Golem Tower 0041 <gen> Equal to (Dying unit)
                        Golem Tower 0020 <gen> Equal to (Dying unit)
                        Golem Tower 0038 <gen> Equal to (Dying unit)
                        Golem Tower 0042 <gen> Equal to (Dying unit)
            Then - Actions
                Game - Victory Player 1 (Red) (Show dialogs, Show scores)
            Else -Actions

sorry if the english sucks... im not english and i try do my best
thx lordrd
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
Code:
Golem Tower 0041 <gen> Equal to (Dying unit)

Instead of that, try doing:

Code:
Golem Tower 0041 <gen> Is Dead Equal to True

Boolean Comparison. Unit Is Dead.
 
General chit-chat
Help Users

      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