Alliances Help

DeathWing

New Member
Reaction score
3
Hi thats me again :p heh

I need help how to make following thing:

Player red is ally of player Orange, Green and Pink but enemy of player Blue, Teal and Purple.
Blue is ally of player Yellow, Green and Pink but enemy of player Red, Teal and Purple.
Teal is ally of player Orange,Yellow and Pink but enemy of Red, Blue and Purple.
Purple is ally of Yellow, Orange and Green but enemy of Red, Blue and Teal.

I need this for TD cuz towers will great range would be able to shot down other players creeps :p
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Code:
Untitled Trigger 001
    Events
        Map initialization
    Conditions
    Actions
        Player Group - Make (All players) treat (All players) as an Ally with shared vision
        Player Group - Make Player Group - Player 1 (Red) treat Player Group - Player 2 (Blue) as an Enemy
        Player Group - Make Player Group - Player 1 (Red) treat Player Group - Player 3 (Teal) as an Enemy
 etcetcetc.....
Now you just have to consider the players that are enemies against each other. Since you first mark them as allies.

Btw, if you got all user-players inside the "force properties" in same force, and check that they are allied, you can remove the first line here. And just think about who is enemy with who.
 

remix

New Member
Reaction score
9
This is the full thing:

Code:
Enemy Or Ally
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Player - Make Player 1 (Red) treat Player 6 (Orange) as an Ally with shared vision
        Player - Make Player 8 (Pink) treat Player 2 (Blue) as an Enemy
        Player - Make Player 8 (Pink) treat Player 3 (Teal) as an Enemy
        Player - Make Player 8 (Pink) treat Player 4 (Purple) as an Enemy
        Player - Make Player 8 (Pink) treat Player 1 (Red) as an Enemy
        Player - Make Player 7 (Green) treat Player 1 (Red) as an Enemy
        Player - Make Player 7 (Green) treat Player 2 (Blue) as an Enemy
        Player - Make Player 7 (Green) treat Player 3 (Teal) as an Enemy
        Player - Make Player 7 (Green) treat Player 4 (Purple) as an Enemy
        Player - Make Player 2 (Blue) treat Player 5 (Yellow) as an Enemy
        Player - Make Player 7 (Green) treat Player 1 (Red) as an Enemy
        Player - Make Player 6 (Orange) treat Player 1 (Red) as an Enemy
        Player - Make Player 3 (Teal) treat Player 6 (Orange) as an Ally with shared vision
        Player - Make Player 5 (Yellow) treat Player 1 (Red) as an Enemy
        Player - Make Player 5 (Yellow) treat Player 2 (Blue) as an Enemy
        Player - Make Player 4 (Purple) treat Player 5 (Yellow) as an Ally with shared vision
        Player - Make Player 6 (Orange) treat Player 2 (Blue) as an Enemy
        Player - Make Player 6 (Orange) treat Player 3 (Teal) as an Enemy
 

luke20054

New Member
Reaction score
3
Here is a slightly quicker way to do it:

For each (Integer A) from 6 to 8, do (Actions)
Loop - Actions
Player Group - Make Player Group - Player 1 (Red) treat (Player group((Player((Integer A))))) as an Ally with shared vision
etc etc;)
 

DeathWing

New Member
Reaction score
3
Taken To The Candy Shop By DeathWing!!! LoL :D :D :eek:

I don't know what u wanted to say by that :p

And what about cold attack? Where i need to set splash radious to make it work? I did that in ability but this wasn't working :p

Btw, I have time so i you don't need to make triggers shorter :p

[Yay 10th post xD buhahah - ][_,([])][_, xD ]
 

Romek

Super Moderator
Reaction score
963
I don't know what u wanted to say by that :p

And what about cold attack? Where i need to set splash radious to make it work? I did that in ability but this wasn't working :p

Btw, I have time so i you don't need to make triggers shorter :p

[Yay 10th post xD buhahah - ][_,([])][_, xD ]

look at frost worms attack. cold breath or something and theres a cold attack - type as well i think.
He also wasn't really shortening the trigger using a loop that runs from 6-8. thats just lazy :p
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top