I've dedicated myself to learning JASS, so here I am.
My first question is the error with JassCraft. This my first JASS code.
In JassCraft, "set gg_trg_Message = CreateTrigger ( )" is an invalid syntax. Is there another way to set the trigger?
My first question is the error with JassCraft. This my first JASS code.
JASS:
function Trig_Message_Actions takes nothing returns nothing
local string a="ROFL"
call DisplayTextToForce( GetPlayersAll(), a )
endfunction
//===========================================================================
function InitTrig_Message takes nothing returns nothing
set gg_trg_Message = CreateTrigger( )
call TriggerAddAction( gg_trg_Message, function Trig_Message_Actions )
endfunction
In JassCraft, "set gg_trg_Message = CreateTrigger ( )" is an invalid syntax. Is there another way to set the trigger?