• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Alliance Problem

Status
Not open for further replies.
Level 4
Joined
Jan 3, 2009
Messages
64
SOLVED

Hi guys!

I was looking for a way to use the Ally Panel(F11) from WC3 to my map,but the player 10,11,12, must be always allied and enemy of any other player, and the player 1,2,3,4,5,6,7,8,9 must be able to use that panel to ally with any other player(except player 10,11,12)

There is a way to do that?
 
Last edited:
you can use triggers.

  • Events
    • Map initialization
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 9, do (Actions)
      • Loop - Actions
        • Player - Make (Player((Integer A))) treat Player 1 (Red) as an Ally
        • Player - Make (Player((Integer A))) treat Player 2 (Blue) as an Ally
        • Player - Make (Player((Integer A))) treat Player 3 (Teal) as an Ally
        • Player - Make (Player((Integer A))) treat Player 4 (Purple) as an Ally
        • Player - Make (Player((Integer A))) treat Player 5 (Yellow) as an Ally
        • Player - Make (Player((Integer A))) treat Player 6 (Orange) as an Ally
        • Player - Make (Player((Integer A))) treat Player 7 (Green) as an Ally
        • Player - Make (Player((Integer A))) treat Player 8 (Pink) as an Ally
        • Player - Make (Player((Integer A))) treat Player 9 (Gray) as an Ally
the loop repeats for the players 1-9. just do the same for players 10-12.

btw, my F11 opens up the Object Manager. where did you find the Ally Panel?
 
you can use triggers.

  • Events
    • Map initialization
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 9, do (Actions)
      • Loop - Actions
        • Player - Make (Player((Integer A))) treat Player 1 (Red) as an Ally
        • Player - Make (Player((Integer A))) treat Player 2 (Blue) as an Ally
        • Player - Make (Player((Integer A))) treat Player 3 (Teal) as an Ally
        • Player - Make (Player((Integer A))) treat Player 4 (Purple) as an Ally
        • Player - Make (Player((Integer A))) treat Player 5 (Yellow) as an Ally
        • Player - Make (Player((Integer A))) treat Player 6 (Orange) as an Ally
        • Player - Make (Player((Integer A))) treat Player 7 (Green) as an Ally
        • Player - Make (Player((Integer A))) treat Player 8 (Pink) as an Ally
        • Player - Make (Player((Integer A))) treat Player 9 (Gray) as an Ally
the loop repeats for the players 1-9. just do the same for players 10-12.

btw, my F11 opens up the Object Manager. where did you find the Ally Panel?

He means the Ally panel inside the game.
 
Ye,the Ally Panel inside the game.

I want to do something that,the players 1,2,3....9 can ally/unally when they want and the players 10,11,12 be always allied and enemy of all players
 
oh okey. i thought it's in the WCE (my bad :/)

anyway, are players 10-12 computer-controlled? i think it's better if they are, and you can just use triggers to make them be allied and/or enemy (i don't think it's possible to make a player be an ally and at the same time enemy) of a certain player. then if players 1-9 are user-controlled that's alright. i'm not sure how to do it in the Ally Panel though. my idea is using chat commands to make them allied/unallied anytime.
 
1-9 will be the Europe Force(Who can unally-ally whenever they want)

10-12 will be Zombie Force(Who can't unally-ally whenever they want)

"Europe Force Agaisnt Zombie Force"

10-12 is a allied team(enemy of the europe force)

1-9 is a unstable team(who can ally-unally whenever they want)

Get it?
 
AaUHHauaUAhu,MAAAAN i'm felling idiot right now,cuz the game do by itself and i was asking here!?!? i tested and it really work,Thanks for all of you!
 
Status
Not open for further replies.
Back
Top