function WhatYouWantToDo takes nothing returns nothing
// Do your actions here
endfunction
//===========================================================================
function InitTrig_Fel takes nothing returns nothing
local trigger t = CreateTrigger()
local integer index = 0
loop
call TriggerRegisterPlayerChatEvent( t, Player(index), udg_YourStringVariable, true )
set index = index + 1
exitwhen index == bj_MAX_PLAYER_SLOTS
endloop
call TriggerAddAction( t, function WhatYouWantToDo )
endfunction