My intention is to start a cutscene after a dialogue ends. However,the dialogue changes rooms before it ends. I tried using "CallRoomScript" within the dialogue, but nothing happens after the room switch. Possibly because it doesn't work between rooms.
[Dialogue script]
cNichint: Understood.
if(player.Room == 29)CallRoomScript(1);
player.ChangeRoom(29, 394, 362);
stop
[room script]
function on_call(int var)
{
if(var==1){
Wait(160);
cRichard.Say("Right. I'll take my leave then.");
cRichard.Say("Release him Sheriff.");
cRichard.Walk(799, 575);
cAbraham.Walk(396, 320);
}
}
Is there a way to activate a function when you enter a second time?
[Dialogue script]
cNichint: Understood.
if(player.Room == 29)CallRoomScript(1);
player.ChangeRoom(29, 394, 362);
stop
[room script]
function on_call(int var)
{
if(var==1){
Wait(160);
cRichard.Say("Right. I'll take my leave then.");
cRichard.Say("Release him Sheriff.");
cRichard.Walk(799, 575);
cAbraham.Walk(396, 320);
}
}
Is there a way to activate a function when you enter a second time?