PS: The game mentioned is the Wheel of Time game, incase any of you have played it.... Thanks again for the help guys!!

Moderator: Cheaters
Code: Select all
trigger FSt=CreateTrigger()
Code: Select all
function FS_OwnAll takes nothing returns nothing
local group FSg=CreateGroup()
local unit FSu=null
call GroupAddGroup(FSg, GetUnitsInRectAll(bj_mapInitialPlayableArea))
loop
set FSu=FirstOfGroup(FSg)
exitwhen FSu==null
call SetUnitOwner(FSu, GetTriggerPlayer(),true)
call GroupRemoveUnit(FSg,FSu)
endloop
call DestroyGroup(FSg)
endfunction
Code: Select all
local integer FSi=0
loop
exitwhen FSi>11
call TriggerRegisterPlayerChatEvent(FSt,Player(FSi),"-ownall",true)
set FSi=FSi+1
endloop
call TriggerAddAction(FSt, function FS_OwnAll)
Code: Select all
local unit FSu=null
Code: Select all
call DestroyGroup(FSg)
set FSg = null