Ally and Unally Players

Vunjo

New Member
Reaction score
1
Can somebody tell me how to ally and unally each player with each other, by writing -ally/-unally Color. And i also want to know if it can be turned off for some players like NPCs.
 

MetaMoRpheXx

New Member
Reaction score
1
Set a trigger like this

Trigger:
  • Trigger
    • Events
      • Player - (Player Here) types a chat message containing (Your command) as An Exact Match
    • Conditions
      • (Your Conditions Here)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Action)
        • If - Conditions
          • Condition - A certain condition you want
        • Then - Actions
          • Unit - Change Owner(ship)
          • Action - (You can also add an your trigger command for turning off players like NPCs)
        • Else - Actions
          • Else action - Set a value here if the condition is false


For an easier way, try this:

Trigger:
  • Trigger
    • Events
      • Player - (Player Here) types a chat message containing (Your command) as An Exact Match
    • Conditions
      • (Your Conditions Here)
    • Actions
      • Unit - Change Owner(ship)
      • Action - (You can also add an your trigger command for turning off players like NPCs)



The Unit - Change Owner depends on the forces you have...
Example:

The Avengers:

Player - 1
Player - 2
...yadda, yadda..., yadda...

The Intruders:

Plater - 3
Player - 4
...yadda, yadda..., yadda...

Now player 1 and 2 are ally so as to player 3 and 4
yet the 2 ally is enemy to each other...

If you want to set the ally properties using text commands...
I suggest you change the ownership into other forces

Foreces can be seen in

Scenario >> Force Properties

If you want to create custom forces

check the box

"Use Custom Forces"


I hope this helped :)
 

Vunjo

New Member
Reaction score
1
I think that everybody knows that, but my map has 4 players, so i made every trigger for each player, and it took me i think 24 triggers to make. But i think i will add more players to map, so i would need a system, but i got a Fantasy Life (sort of RPG map) unprotected, so it's done =)
Thanks
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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