Auto-translated
No, of course not.
Now, this function will react to any contact with this region. The only thing is, the computer might also enter this region, and then the function will trigger for it. If you do it like this:
Then the function will work for any hero of the first player - by default, a human.
Trigger(REGION_ENTER_AND_STOP_TRIGGER , 'trigger name' , 'function name')
function function name ()
--This is where the check is triggered when any hero enters the region. Write whatever you want here. If you need to complete a quest:
SetObjectiveState ('objname' , OBJECTIVE_COMPLETED)
Trigger(REGION_ENTER_AND_STOP_TRIGGER , 'trigger name' , nil)
endNow, this function will react to any contact with this region. The only thing is, the computer might also enter this region, and then the function will trigger for it. If you do it like this:
Trigger(REGION_ENTER_AND_STOP_TRIGGER , 'trigger name' , 'function name')
function function name ()
if GetCurrentPlayer() == 1 then
--This is where the check is triggered when any hero of the first player enters the region. Write whatever you want here. If you need to complete a quest:
SetObjectiveState ('objname' , OBJECTIVE_COMPLETED)
Trigger(REGION_ENTER_AND_STOP_TRIGGER , 'trigger name' , nil)
end
endThen the function will work for any hero of the first player - by default, a human.
Whatever