Narks
Vastly intelligent whale-like being from the stars
- Reaction score
- 90
I'm so happy; I've written my first JASS function.
Here it is:
I'm not quite sure about one thing, though, and note: I just finished reading the JASS tutorials and played around with JassCraft a bit.
I got my function, here. It's purpose, is to see if a player's name is Atrum-Persavor, then defeat him. (lol @ poor Atrum).
However, how do I make something to call the function, like, for example, like when the game's elapsed time is 3.00 seconds, or if a Footman enters a certain region?
Thanks in advance.
Here it is:
JASS:
function purgeIdiots takes player idiot returns nothing
local string idiotName
set idiotName = GetPlayerName(idiot)
if idiotName == "Atrum-Persavor" then
call CustomDefeatBJ(idiot, "ahaha")
endif
endfunction
I'm not quite sure about one thing, though, and note: I just finished reading the JASS tutorials and played around with JassCraft a bit.
I got my function, here. It's purpose, is to see if a player's name is Atrum-Persavor, then defeat him. (lol @ poor Atrum).
However, how do I make something to call the function, like, for example, like when the game's elapsed time is 3.00 seconds, or if a Footman enters a certain region?
Thanks in advance.