- Joined
- Jun 7, 2008
- Messages
- 440
I've been having some difficulty with my dialog color(s) via GUI. I've decided to go about it a different way. I have this code:
Now what i was wondering is, is it possible to get dialog colors incorporated with this code? And if so , could you tell me how to call the function via
EDIT : This code is for setting hero pretext for selected player hero's.
Code:
function SetPlayerPrefix takes unit hero returns nothing
local string txt
local player player_owner = GetOwningPlayer(hero)
local integer player_owner_id = GetPlayerId(player_owner)
set txt = udg_PlayerName[player_owner_id] + " (" + GetUnitName(hero) + ")"
call SetPlayerName(player_owner, txt)
set txt = null
set player_owner = null
endfunction
function StorePlayerNames takes nothing returns nothing
local integer index = 0
local player player_check
loop
exitwhen (index > 11)
set player_check = Player(index)
set udg_PlayerName[index] = GetPlayerName(player_check)
set player_check = null
set index = index + 1
endloop
endfunction
Now what i was wondering is, is it possible to get dialog colors incorporated with this code? And if so , could you tell me how to call the function via
- call custom script: ???
EDIT : This code is for setting hero pretext for selected player hero's.