How to award victory for killing 6 of the same type towers

tobbygnome

New Member
Reaction score
2
In my map there are 6 towers or just pillars which in order to win the game, each of the 2 forces needs to destroy the other forces pillars(6 of them). I need a trigger of some sort to help me succed in making my game like this, thx alot.

ive tried lots of different ways to try and succeed this myself but they keep failing. :D
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
Code:
Events
    Unit - A unit dies
Conditions
    Unit-type of (Dieing unit) Equal to Tower
    (Number of (Units of type Tower owned by (Player 11 (Dark green)))) Equal to 0
Actions
    Player Group -  Pick every in (Allies of (Player 11 (Dark green))) and do actions
        Loop (Actions)
            Game - Victory (Picked player)
    Player Group -  Pick every in (Enemies of (Player 11 (Dark green))) and do actions
        Loop (Actions)
            Game - Defeat (Picked player) with the message "Defeat!"

This should work for one team. Just switch the players and player groups, for the other team. There are player group leaks though... :eek:
 

tobbygnome

New Member
Reaction score
2
AHAH thankyou so much i just modified it to suit me abit but thank you, i have only been using triggers for a month so i dont have the full skill of picking up a trigger in my head like that to compliment what i want as accurate as you thankyou!!!
 
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