So, I tried it out and it works perfectly now! Funny, how such a simple thing can cost me so much time :-)
@Calin Leafshade: Hm, the following function doesn't seem to work correctly without CallRoomScript (or calling another function), because the dialog is started AFTER the function finished.
This function would show "Dialog Start", followed by "Dialog End" BEFORE the dialog script even starts.
Code: ags
@Calin Leafshade: Hm, the following function doesn't seem to work correctly without CallRoomScript (or calling another function), because the dialog is started AFTER the function finished.
This function would show "Dialog Start", followed by "Dialog End" BEFORE the dialog script even starts.
function startScene(){
if(g2_Progression == 0){
Wait(20);
cPlayer.Say("Dialog Start");
dAct2_Dialog.Start(); // <- Dialog doesn't start here but...
// CallRoomScript(1);
Wait(5);
cPlayer.Say("Dialog End");
FadeOut(1);
cPlayer.ChangeRoom(5, 327, 121);
Wait(50);
}
//<-- ...dAct2_Dialog.Start(); starts here.