Oh, and one more question, perhaps slightly off-topic. When entering a region, a video should play. But for some reason, it only plays one part out of seven. However, in other cases, all scenes work normally; the problem is only with this one. (In the editor, it plays completely and correctly.)
Script for the problematic one:
function Region4F()
sleep(3)
StartDialogScene("/MySceneCustom/DialogScene2/DialogScene.xdb#xpointer(/DialogScene)");
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"Region4",nil);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"Region4","Region4F");Scripts for the working ones:
StartDialogScene("/MySceneCustom/StartScene/DialogScene.xdb#xpointer(/DialogScene)");
and
function Region1F ()
sleep(5);
MessageBox ("/Maps/SingleMissions/MapochkaTEST3/battletext.txt");
StartCombat ( "RedHeavenHero04", nil, 5, 166, 100, 166, 100, 167, 75, 169, 50, 170, 15, nil);
StartDialogScene("/MySceneCustom/BattleDialog1Custom/DialogScene.xdb#xpointer(/DialogScene)");
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"Region1",nil);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"Region1","Region1F");And yes, thank you for the animation scripts. They work great!
Never mind, I've solved the problem. I just opened the dialog in the editor, and for some reason, there was only one scene there! Although I definitely saved it, and this thing even played completely on the map once. I have no idea where the other six scenes went.