• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[JASS] I don't get it

Status
Not open for further replies.
Level 7
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
 
Status
Not open for further replies.
Top