When I try to assign a condition manually
it gives me a syntax error
the only way I know how to do it is
my question is simple, are there any other way of doing this other than the latter?
JASS:
call TriggerAddCondition(gg_trg_SpellTest, if (SomeVar)==somevalue)
the only way I know how to do it is
JASS:
function ConditionFunc takes nothing returns boolean
if (SomeVar)!=somevalue then
return false
endif
return true
endfunction
function InitOrwhatever takes nothing returns nothing
call TriggerAddCondition(gg_trg_Whatver, Condition(function ConditionFunc ))
endfunction
my question is simple, are there any other way of doing this other than the latter?