function Trig_JASS_test_Actions takes player p returns nothing
call DisplayTextToPlayer( p, 0,0, "Hello, world!" )
endfunction
Atau jika ingin mengulang pesan sebanyak 100 kali:
function Trig_JASS_test_Actions takes player p returns nothing
local integer i
set i=0
loop
exitwhen i>100
call DisplayTextToPlayer( p, 0,0, "Hello, world! "+I2S(i) )
set i=i+1
endloop
endfunction
JASS Manual--An advanced guide to the language, intended to serve as a reference for users who are already proficient with it. Includes a comprehensive API browser.