Switch Teams with a trigger

jedi8955

New Member
Reaction score
4
As usual, I've got a pretty out there idea that I have no idea how to implement.

In this map I'm working on, there's two sides. When one side takes out a player on the other side, that player will have the option of joining the enemy or attempting to rebuild and keep helping his team. (Suffice it to say, his old team would gain a buff to balance out the loss of a team member.)

I have no idea how to begin implementing this. Normally the players are locked from changing their alliance settings.

The basic structure I'm thinking of would look something like this, but I don't know the syntax.

Trigger:
  • Defeated
    • Events
      • Player is defeated. (Not Game - Defeat Player or anything like that, just using the english word defeated, not the Game Term.)
    • Action
      • Players Builder gains "Defect" ability
      • Players Builder gains "Loyalty" ability


Trigger:
  • Defect
    • Events
      • Builder uses "Defect"
    • Actions
      • Player changes to Enemy Force
      • Players Builder loses "Defect" Ability
      • Players Builder loses "Loyalty" Ability
      • Applies Buff to Former Allied Force


Trigger:
  • Loyalty
    • Events
      • Builder uses "Loyalty"
    • Actions
      • Players Builder loses "Defect" Ability
      • Players Builder loses "Loyalty" Ability


As always, any and all help is greatly appreciated. Thanks!
 

Nenad

~Choco Coronet~ Omnomnom
Reaction score
137
Hm, would something like Storing Players at the start in a Group variable, than when this happens adding them to that player group / Removing them from the last group and using:

Trigger:
  • Player - Make Player 1 (Red) treat Player 2 (Blue) as an Ally with shared vision


That trigger?

I'm not sure, i never made something like this >.<
 

jedi8955

New Member
Reaction score
4
That actually looks like it could work.

I'd just have them run through the Treat As Ally/Shared Vision/Shared Units, etc etc each time a switch happened, then add them to the group.

I'll stick that in and see what's what. Thanks a bunch!
 
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