a=a+1;
if a==4 then
MessageBox(message path);
end;
end;
Trigger(HERO_LEVELUP_TRIGGER, hero name, func);
New here? I'm Roha — want a quick tour?

There is a command called RegionToPoint, but it creates a point region. And I'm not sure if this is what you're looking for.
Loose(GetPlayerFilter(PLAYER_3)); - this is just a nonsensical jumble of letters...

function killBrem()
Trigger(5,'town1',nil)
RemoveObject('Brem')
end
Trigger(5,'town1','killBrem')
function killBrem()
Trigger(5,'town1',nil)
RemoveObject('Brem')
end
Trigger(5,'town1','killBrem')

function killBrem()
Trigger(5,'town1',nil)
if GetHeroTown('Brem') then
SetObjectPosition('Brem',1,1,0)
end
RemoveObject('Brem')
end
Trigger(5,'town1','killBrem')
It will work 100%.
If they are in the town, then yes, but in general, it should work.It will work 100%.function killBrem()
Trigger(5,'town1',nil)
if GetHeroTown('Brem') then
SetObjectPosition('Brem',1,1,0)
end
RemoveObject('Brem')
end
Trigger(5,'town1','kilBrem')

you don't need to worry about whether it's in the city or not
Does it matter whether you use " or ' for the hero's name in quotes?