yo! i got this problem when im starting my jass...
my point is when a unit enters a region and if that unit is owned by player 1, an action will occur but...just look
when i test map, scirpt error pops up and says "expected a function name"...and i havent misspelled any of them..
please help...
EDIT: oh LOL! my mistake:
should be...
so dumb ^^
my point is when a unit enters a region and if that unit is owned by player 1, an action will occur but...just look
JASS:
function Trig_Test2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_Test2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "A footman!" )
endfunction
function InitTrig_Test2 takes nothing returns nothing
set gg_trg_Test2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Test2, gg_rct_Region_000 )
call TriggerAddCondition( gg_trg_Test2, Condition( function Trig_Test2_Conditions ) )
call TriggerAddActions ( gg_trg_Test2, function Trig_Test2_Actions )
endfunction
when i test map, scirpt error pops up and says "expected a function name"...and i havent misspelled any of them..
please help...
EDIT: oh LOL! my mistake:
JASS:
call TriggerAddActions ( gg_trg_Test2, function Trig_Test2_Actions )
JASS:
call TriggerAddAction ( gg_trg_Test2, function Trig_Test2_Actions )