diff --git a/scripts/chai/CmnDef/CmnDefCutSceneReplay.chai b/scripts/chai/CmnDef/CmnDefCutSceneReplay.chai new file mode 100644 index 00000000..e49fdefe --- /dev/null +++ b/scripts/chai/CmnDef/CmnDefCutSceneReplay.chai @@ -0,0 +1,35 @@ + +class CmnDefCutSceneReplayDef +{ + + def CmnDefCutSceneReplayDef() + { + this.id = 721028; + } + + def Scene00000( player ) + { + player.eventPlay( this.id, 0, 0x2000/*flags*/, 0/*unk*/, 1/*unk*/, + fun( player, eventId, param1, param2, param3 ) + { + CmnDefCutSceneReplay.Scene00001( player, param2 ); + }); + } + + def Scene00001( player, returnScene ) + { + player.eventPlay( this.id, 1, 0xFB2EC8F8/*flags*/, 0/*unk*/, 1, returnScene, + fun( player, eventId, param1, param2, param3 ) + { + + }); + } + + def onTalk( eventId, player, actorId ) + { + this.Scene00000( player ); + } + +}; + +GLOBAL CmnDefCutSceneReplay = CmnDefCutSceneReplayDef(); \ No newline at end of file diff --git a/scripts/chai/CmnDef/CmnDefInnBed.chai b/scripts/chai/CmnDef/CmnDefInnBed.chai new file mode 100644 index 00000000..4fd21d13 --- /dev/null +++ b/scripts/chai/CmnDef/CmnDefInnBed.chai @@ -0,0 +1,26 @@ + +class CmnDefInnBedDef +{ + + def CmnDefInnBedDef() + { + this.id = 720916; + } + + def Scene00100( player ) + { + player.eventPlay( this.id, 100, 0xF32E48F8/*flags*/, 0/*unk*/, 0/*unk*/, + fun( player, eventId, param1, param2, param3 ) + { + + }); + } + + def onEnterTerritory( eventId, player, param1, param2 ) + { + this.Scene00100( player ); + } + +}; + +GLOBAL CmnDefInnBed = CmnDefInnBedDef(); \ No newline at end of file