[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 !!
 
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:
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.

Similar threads

Back
Top