HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A small JASS question...

12-09-2006, 04:12 AM#1
Ignitedstar
When something is put within the very top of the trigger list(the JASS only area), is there a way to access specific functions within there within another trigger?
12-09-2006, 04:27 AM#2
divine_peon
yes, you can use a function call.
12-09-2006, 07:35 AM#3
xombie
Actions > Custom Script > call function_name()

"()" are used to show that the "function_name" is a function, and also all of your function -takes- values are put into the "()" with commas in between.
Collapse JASS:
function add takes integer a, integer b returns integer
     local integer sum = a + b
     return sum
endfunction
A proper function call would be the following:
Collapse JASS:
call add( 4, 3 )
or
Collapse JASS:
local integer i = add( a, b )
Where 4 and 3 are simply integers, and 'a' and 'b' are random variables.
12-10-2006, 05:04 AM#4
Ignitedstar
Neat, thanks.