Allyship Help!!!

Status
Not open for further replies.
Level 7
Joined
May 21, 2009
Messages
289
I need help with some allyship triggers
(example= make player 1 red treat player 2 blue as an ally with shared vision)

I know how to ally everyone in triggers like this but i dont want to waste hours on players 1-12 ally-ing, unally-ing, all ally-ing, and all unally-ing, that is at least 4 triggers for the way I do allyship triggers
I need a trigger like this---

EVENT
-<Player> types (-ally all) as an exact match
CONDITION
(I dont need one but if it makes the the trigger work)
ACTION
-player group
-------pick all players in player group and do actions
----------------make <player> treat <picked player> as an ally
----------------make <picked player> treat <player> as an ally

this works but i have to enter <player> as a <player 1, 2, ect.)

if anyone can help me with a trigger like this that doesnt require me to create a billion triggers I will +rep and it would help :thumbs_up:
 
  • Ally all
    • Events
      • Player - Player 1 (Red) types a chat message containing -ally all as An exact match
      • Player - Player 2 (Blue) types a chat message containing -ally all as An exact match
      • Player - Player 3 (Teal) types a chat message containing -ally all as An exact match
      • Player - Player 4 (Purple) types a chat message containing -ally all as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -ally all as An exact match
      • Player - Player 6 (Orange) types a chat message containing -ally all as An exact match
      • Player - Player 7 (Green) types a chat message containing -ally all as An exact match
      • Player - Player 8 (Pink) types a chat message containing -ally all as An exact match
      • Player - Player 9 (Gray) types a chat message containing -ally all as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -ally all as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -ally all as An exact match
      • Player - Player 12 (Brown) types a chat message containing -ally all as An exact match
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Make (Triggering player) treat (Picked player) as an Ally with shared vision
          • Player - Make (Picked player) treat (Triggering player) as an Ally with shared vision
 
Level 2
Joined
Apr 18, 2009
Messages
20
Instead of just saying "that wasnt what i was looking for"[sic] tell him what's wrong with it, he/she could probably fix it.
 
If I get you right, you want it shorter? But if, then you need 2 triggers.

  • Ally Player Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Trigger - Add to Ally all <gen> the event (Player - (Picked player) types a chat message containing -ally all as An exact match)
  • Ally all
    • Events
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Make (Picked player) treat (Triggering player) as an Ally with shared vision
          • Player - Make (Triggering player) treat (Picked player) as an Ally with shared vision
should work, but I'm not 100% sure
 
Level 7
Joined
May 21, 2009
Messages
289
Thanks Amigurumi that works better!

But one thing I see going wrong is a player typing -ally all and the other player not wanting to be allied, and getting vision as well as allyship to the other player... think you could help me with this; its a huge problem in my game.
 
Status
Not open for further replies.
Top