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

[Trigger] Trigger Question

Status
Not open for further replies.
Level 2
Joined
Aug 8, 2007
Messages
15
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 !!
 
Level 2
Joined
Aug 8, 2007
Messages
15
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


Edit:Sorry for the double post
 
Last edited:
Level 9
Joined
Jun 26, 2007
Messages
659
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
 
Status
Not open for further replies.
Top