Hi guys!
i think i'm stuck in an easy problem :/
what i want to do is to create a global string array for each player (that has the player name in the correct player color saved in it)
the first thing i dont know, how to initialize those globals?
here is my trigger
i think i'm stuck in an easy problem :/
what i want to do is to create a global string array for each player (that has the player name in the correct player color saved in it)
the first thing i dont know, how to initialize those globals?
here is my trigger
JASS:
library YourScope initializer Init
private function Init takes nothing returns nothing
local integer counter = 0
globals
set string udg_PlayerColor[0] = "|cffff0303"
set string udg_PlayerColor[1] = "|cff0042ff"
set string udg_PlayerName[]
endglobals
call FogMaskEnable(false)
call FogEnable(false)
call FogEnable(true)
loop
exitwhen counter >= 12
call SetPlayerAbilityAvailable(Player(counter), 'A01X', false)
set udg_PlayerName[counter] = udg_PlayerColor[counter] + GetPlayerName(Player(counter))
set counter = counter + 1
endloop
endfunction
endlibrary