• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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:
Level 8
Joined
Jan 8, 2010
Messages
493
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?
 
Level 25
Joined
May 11, 2007
Messages
4,651
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.
 
Level 4
Joined
Jan 3, 2009
Messages
64
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
 
Level 8
Joined
Jan 8, 2010
Messages
493
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.
 
Level 4
Joined
Jan 3, 2009
Messages
64
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?
 
Level 4
Joined
Jan 3, 2009
Messages
64
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.
Top