need help on trigger commands like ending the game etc..

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

NezZ
Newcomer
Posts: 7
Joined: April 9th, 2008, 4:50 am

need help on trigger commands like ending the game etc..

Post by NezZ »

hello there.. can anyone help me.. because am just a newbie on using jass scripts..
anyone here can provide me a script code on:
-how can i end the game
-how can i kick a specified player
-how can i type an "administrator like" message that can be read by all players inside the game
-how can make all invisible units visible

please specified also where i will put the trigger commands..(ex: after globals,after endglobals)

thanks in advance!! :D
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: need help on trigger commands like ending the game etc..

Post by Aero »

-how can i end the game
call EndGame(false)

-how can i kick a specified player
call CustomDefeatBJ(<player>,<"defeat message">)

-how can i type an "administrator like" message that can be read by all players inside the game
call DisplayTextToPlayer(GetLocalPlayer(),0,0,"Your message")

-how can make all invisible units visible
You want to be able to see them or you want them to lose invisibility?
NezZ
Newcomer
Posts: 7
Joined: April 9th, 2008, 4:50 am

Re: need help on trigger commands like ending the game etc..

Post by NezZ »

Aero wrote:-how can i end the game
call EndGame(false)

-how can i kick a specified player
call CustomDefeatBJ(<player>,<"defeat message">)

-how can i type an "administrator like" message that can be read by all players inside the game
call DisplayTextToPlayer(GetLocalPlayer(),0,0,"Your message")

-how can make all invisible units visible
You want to be able to see them or you want them to lose invisibility?
thanks for the help..by the way where i will put this stuff? and what i will put in the other parts so that i can make a command text like "-end"? about the last part,i just want them to lose there invisibility.. sorry if am having trouble in coding jass.. am just newbie in using this kind of script :(