Jass Code

genki-dama

Member!
Joined
May 23, 2003
Messages
183
Reaction score
0
Website
Visit site
Thought maybe i would post alittle jass stuff every now and then in case anyone wanna learn.. this is to display a message to all players after a certain amount game time has elapsed..
Note: In jass a space is equal to a " _ " <-- underscore!


function Trig_name of trigger_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "YOUR TEXT" )
endfunction
function InitTrig_name of trigger takes nothing returns nothing
set gg_trg_name of trigger = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_name of trigger, seconds )
call TriggerAddAction( gg_trg_name of trigger , function Trig_name of trigger_Actions )
endfunction
 

[e]MOTION

Member!
Joined
Jan 26, 2004
Messages
74
Reaction score
0
Website
Visit site
do you know of anyway of turning a jass trigger into a normal GUI trigger/WE trigger??? i am pretty sure there has to be a way..

like opening a map in winMPQ and extracting all the trigs and importing them into another..??? which is a hard task when the map is protected...

i just cant figure it out.. and have been trying for about 4 months off and on.
 

[e]MOTION

Member!
Joined
Jan 26, 2004
Messages
74
Reaction score
0
Website
Visit site
well, when you think about it. the game is reading the triggers as jass, or converting while in gameplay or while the map is closed. there should be another way to reverse that or get a reverse action.
 
Top