Skip to content
User Avatar
#370
Auto-translated
after launching the scene, there is a command:
void StartDialogScene(spDialogSceneXDB, sCallback = nil, sSaveName = nil);
1. The first value is the scene itself (created in the editor; I haven't had time to try it yet).
2. The second value is the function to be executed after the scene.
3. It seems to force an autosave.

The following example might satisfy your requirements:

StartDialogScene(Scene01.(format).xdb, HeroTransferFunction, nil);

function HeroTransferFunction()
    SetObjectOwner(HeroName, PLAYER_1);
end;

If something is wrong, let more experienced users in this matter add to it.
Карты для Heroes V: Повелители орды:
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация