JASS adalah bahasa skrip event-driven yang digunakan dalam permainan video Warcraft III. Pembuat map dapat menggunakannya dalam World Editor untuk membuat trigger dan AI.

Berikut merupakan contoh fungsi yang membuat pesan "Hello, world!" dan menampilkannya ke semua pemain:

function Trig_JASS_test_Actions takes nothing returns nothing
 call DisplayTextToForce( GetPlayersAll(), "Hello, world!" )
endfunction

atau jika hanya untuk satu pemain:

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

Pranala luar

sunting

📚 Artikel Terkait di Wikipedia

Baterai litium besi fosfat

Chalamala, Babu (2020). "Degradation of Commercial Lithium-Ion Cells as a Function of Chemistry and Cycling Conditions". Journal of the Electrochemical Society

Sunat

García Heil JL (March 2021). "Circumcision in childhood and male sexual function: a blessing or a curse?". International Journal of Impotence Research.

The Beatles

became progressively more ambitious in their songwriting, Martin began to function as an informal music teacher to them" ("Saat Lennon dan McCartney semakin

Pantenol

the tattooed skin smooth and hydrated. Assessment of the skin barrier function showed a decrease in TEWL, or outward diffusion of water through the skin

Mutasi

Martin; Roberts, Keith; Walter, Peter (2002). Studying Gene Expression and Function (dalam bahasa Inggris). Garland Science. Harris, Richard (2017-03-23).

Gigi manusia

mamalia lainnya, bersifat difiodon, yang berarti mereka mengembangkan dua set gigi. Set pertama, gigi sulung, yang juga disebut "gigi susu" atau "gigi desidui"

Singkong

Afolabi, O. A.; Torimiro, S. E.; Oke, O. L. (1998). "Parameters of thyroid function in the endemic goitre of Akungba and Oke-Agbe villages of Akoko area of

0 (angka)

nullable, the receiving function creates a new, uninitialized value for the missing data then passes it to the requested service function. Paul DuBois. "MySQL