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!
Using GUI how would I write a trigger to make random team? Like, a player types -sp and it suffles the teams around? I am having trouble and would GREATLY appricate some assisstance !!
you can't change the team of a player, you must use an integer 12-sized array.
at map init, you fill this array with the team number of each player
then, each time a player type -sp, you change his value
and you make a loop on the array and set alliances
Yeah i'm still confused what to do, i'd be very nice if you posted like more in detail what I need to do, and is there a way you coul;d do it w/ just red typing -sp, and it suffles all players, not just any1 who types -sp
Event: player 1 type -sp
Actions:
For each integer A from 1 to 12
--Set PlayerTeam[Interger A] = random integer between 1 and team_number
For each integer A from 1 to 12
--For each integer B from 1 to 12
----If (integer A not equal Integer B)
----Then
------If (PlayerTeam[Interger A] Equal PlayerTeam[Interger B])
------Then
--------Player(Integer A) set Alliance to Player(Integer B) Ally
------Else
--------Player(Integer A) set Alliance to Player(Integer B) Enemy
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.