• 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.

A better teaming function

Status
Not open for further replies.
Level 9
Joined
Oct 15, 2006
Messages
339
The only simple way for me to explain this is to give an example.

Let's say there are only 3 people playing the game and they are all allied by default. Now, one of the players wants to be on his own team so he types
-982
Now he is on his own team, 982, and unallied from all other players.

Now let's say someone wants to join his team, well without his permission they would have to search through 997 (minus his own team number and out of a possible 999 numbers) to find the team the one guy is on. If this person finds the other guy's team number then he becomes allied with the other guy. However, the only thing the first guy needs to do is type a new number to get on a new team, and no one is going to waste their time doing this TWICE!

This stops the problem of people "-ally"ing you when you want to kill them and they don't fight back because they have allied you and you have not allied them.

So how can i do this? I could find a base to start with, like the "-ally red" function of a map or tut or wherever but for this specific version how would one setup the game to save the number typed so that if someone else types it they join the specified team?

Please type-out specifically or use trigger tags, whicever you prefer. Thank you.




NOTE:
Also, this doesn't have to be included in this but for those who read this and/or know how to do this and implement it without posting advice here, here is a suggestion. Though each player is on a different player-slot, give them all the same color flags. When they change teams make their color default. And if someone joins the team of he or she who is currently using their default, so should the person who joined use the default color of the person they are joining.
 
Level 6
Joined
Aug 24, 2006
Messages
253
Why do you want 999 teams?
You would need to make a bunch of triggers and groups and all of that I think, because you would need to have a different player group for each team (at least I think so). Why don't you just make a dialog button when someone tries to make an alliance saying yes or no?
 
Level 34
Joined
Jul 4, 2007
Messages
5,552
You can also try the Heroes And Empires ally triggering, it's very simple yet very effective:

Red: -ally blue
<Blue gets a YES/No-request from Red to ally.>
<Blue presses YES.>
<Red has allied with Blue.>
Blue: -unally red
<Blue unallies Red and that switches a trigger that Red auto-unallies him.>
 
Status
Not open for further replies.
Top