• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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