uberfoop said:fine-maybe ill take your word for it and read the entire article and then decide if it makes sense...
You are confusing a JASS tutorial with an explanation of each native function blizzard has added. blerg wc3jass.com jass.sourceforge.net/doc/ for that stuff .uberfoop said:thanks for not explaining jass
GENERIC USELESS TUTORIAL STAMP
APPROVED BY UBERFOOP
sry man, but when people make jass tutorials, what ive always looked for first thing is HOW the initial function lines work, WHAT the arguements do-just saying that they are called arguements is barely more then gibberish.
function Msg takes string s returns nothing
call DisplayTextToForce( GetPlayersAll(), s )
endfunction
function AddSubstract takes integer a, integer b returns nothing
set udg_r1=a+b
set udg_r2=a-b
endfunction
function Trig_JASS_test_Actions takes nothing returns nothing
local integer a=14
local integer b=56
call AddSubstract takes(a,b)
call Msg("a= "+I2S(a))
call Msg("b= "+I2S(b))
call Msg("The Addition is "+I2S(udg_r1))
call Msg("The Substraction is "+I2S(udg_r2))
endfunction
call AddSubtract(a,b)
function Trig_JASS_test_Actions takes nothing returns nothing
local integer a=GetRandomInt(1,5)
loop
call Msg("a= "+I2S(a))
exitwhen a==0
call Msg("Hello")
set a=a-1
endloop
endfunction
Code:
function Msg takes string s returns nothing
call DisplayTextToForce( GetPlayersAll(), s )
endfunction
function ShowMessage takes nothing returns nothing
call Msg("This is a message!")
endfunction
function ShowSum takes integer a, integer b returns nothing
local integer r=a+b
call Msg("r= "+I2S(r))
endfunction
function Trig_JASS_test_Actions takes nothing returns nothing
call ShowMessage()
call ShowSum(33,45)
endfunction
The result will be:
This is a message!
r = 78
function Msg takes string s returns nothing
call DisplayTextToForce( GetPlayersAll(), [COLOR="Red"]s[/COLOR] )
endfunction