- Joined
- Jul 24, 2007
- Messages
- 308
hello. i have this trigger, when i run the map it shows NOTHING.
JASS:
function PutToArrays takes nothing returns nothing
local integer i=0
loop
exitwhen i>11
if (GetPlayerController(Player(i))==MAP_CONTROL_COMPUTER ) then
if GetAIDifficulty(Player(i))==AI_DIFFICULTY_NEWBIE then
set udg_PlayerIsEasy[i] = true
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(i)) + " Easy!" ) )
elseif GetAIDifficulty(Player(i))==AI_DIFFICULTY_NORMAL then
set udg_PlayerIsNormal[i] = true
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(i)) + " Normal!" ) )
elseif GetAIDifficulty(Player(i))==AI_DIFFICULTY_INSANE then
set udg_PlayerIsInsane[i] = true
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(Player(i)) + " Insane!" ) )
endif
endif
set i=i+1
endloop
endfunction
//===========================================================================
function InitTrig_TEMP takes nothing returns nothing
set gg_trg_TEMP = CreateTrigger( )
call TriggerAddAction( gg_trg_TEMP, function PutToArrays )
call TriggerRegisterTimerEventSingle( gg_trg_TEMP, 2.01 )
endfunction