JASS
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
- Pengenalan JASS di Indogamers
- An Introduction To JASS Diarsipkan 2008-06-07 di Wayback Machine.--A beginner's guide to the language, covering its basic features and capabilities.
- 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.
- Wc3jass Tutorials Diarsipkan 2008-02-23 di Wayback Machine.--A collection of tutorials about the language.
- wc3c JASS Tutorials Diarsipkan 2008-05-06 di Wayback Machine.--Other tutorials about the language.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.