sentrywiz
S
sentrywiz
I just started learning jass. Taking on this tutorial:
http://www.hiveworkshop.com/forums/jass-ai-scripts-tutorials-280/beginning-jass-tutorial-series-30765/
But I can't even pass the first lessons without a boatload of errors.
I want to try this code:
And call the function from another trigger
Can anyone tell me why?
I don't understand. I am copying the code from the tutorial.
http://www.hiveworkshop.com/forums/jass-ai-scripts-tutorials-280/beginning-jass-tutorial-series-30765/
But I can't even pass the first lessons without a boatload of errors.
I want to try this code:
JASS:
function Trig_bla_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_bla takes nothing returns nothing
set gg_trg_bla = CreateTrigger( )
call TriggerAddAction( gg_trg_bla, function Trig_bla_Actions )
endfunction
function DisplayAMessage takes string message returns nothing
call BJDebugMsg(message)
endfunction
And call the function from another trigger
-
Trigger
-
Events
- Player - Player 1 (Red) Presses the Left Arrow key
- Conditions
-
Actions
- Custom script: call DisplayAMessage("Hello")
-
Events
Can anyone tell me why?
I don't understand. I am copying the code from the tutorial.