// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals integer test_x_b=0 code ref_function_code__foo_test=null endglobals native testSuccess takes nothing returns nothing function code__foo_test takes nothing returns nothing local integer y = test_x_b if y == 2 then call testSuccess() endif endfunction function initGlobals takes nothing returns nothing set ref_function_code__foo_test = function code__foo_test endfunction function foo takes code c returns nothing local trigger t = CreateTrigger() call TriggerAddAction(t, c) call TriggerEvaluate(t) endfunction function init_test takes nothing returns nothing local integer tuple_temp = 2 set test_x_b = tuple_temp call foo(ref_function_code__foo_test) endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction