Skip to content
User Avatar
#2744
Auto-translated
Gerter
Yes, you can't do that for abandoned creatures in the editor, but you can for the others... then you can set it using SetObjectOwner(). As for the error after the battle, I don't know, I just checked it myself, and it worked fine...
Thank you, I figured out the mines. Here's the error, just in case. Maybe I translated something incorrectly. Although, does it even matter if you don't have it at all? I don't understand. Maybe there's a way to rewrite the script? Some kind of workaround?

Also, I have a rather strange question... why doesn't this work?
function HelpSin ()
MessageBox("/Maps/SingleMissions/rework (4)/sin.txt");
RemoveObject("sin");
Trigger(REGION_ENTER_AND_STOP_TRIGGER , "sinRegion", nil);
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER , "sinRegion", "HelpSin");

I have a lot of similar functions, but this one specifically doesn't work...

Added 8 minutes later
Oh, the second problem was solved simply by the fact that the region was surrounded around the unit on the map, and since this area is already considered as... an aggro zone for this unit, and the hero doesn't actually step into it... in general, I just stretched the region, and everything is okay.
Автор карт:
Долина расхитителей
Выбор мира