library Trigger initializer Init uses TimerUtils
// You could also replace DisplayTextToForce(GetPlayersAll() with DisplayTextToPlayer(GetLocalPlayer(), 0,0
private function Wait2 takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"B")
call ReleaseTimer(GetExpiredTimer())
endfunction
private function Wait1 takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"A")
call TimerStart(NewTimer(), 5, false, function Wait2)
endfunction
private function Init takes nothing returns nothing
local trigger t=CreateTrigger() //that rigger shouldn't sleep
call TriggerRegisterPlayerChatEvent(t,Player(0),"-go",true)
call TriggerAddAction(t,function Wait1)
endfunction
endlibrary