- Joined
- Feb 26, 2005
- Messages
- 210
This trigger dosn't work. The game runs, but this trigger which runs on map initialization fails for some reason:
JASS:
function Trig_Remind_Actions takes nothing returns nothing
local integer i
loop
exitwhen i == 4
if GetPlayerController(Player(i)) == MAP_CONTROL_USER and udg_DecisionMaker == Player(15) then
set udg_DecisionMaker = Player(i)
elseif GetPlayerController(Player(i)) == MAP_CONTROL_NONE then
set udg_PlayerScore[i] = -1
endif
set i = i + 1
endloop
call DisplayTimedTextToForce(GetPlayersAll(), 20.00, (GetPlayerName(udg_DecisionMaker) + ", type \"-time #\" in a chat message to set the game time in minutes."))
call DisplayTimedTextToForce(GetPlayersAll(), 20.00, "Enter \"-time 0\" for no time limit.")
endfunction