2025-07-04 16:29:42 -04:00
|
|
|
SCENE_SHOW_MENU = 00000
|
|
|
|
SCENE_PLAY_CUTSCENE = 00001
|
2025-05-06 22:37:02 -04:00
|
|
|
|
|
|
|
function onTalk(target, player)
|
|
|
|
-- you cannot consult, which is good because we don't know how to implement this anyway
|
2025-07-04 16:29:42 -04:00
|
|
|
player:play_scene(target, EVENT_ID, SCENE_SHOW_MENU, 8192, {0})
|
2025-05-06 22:37:02 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
function onReturn(scene, results, player)
|
2025-07-04 16:29:42 -04:00
|
|
|
if scene == 0 then
|
|
|
|
-- TODO: this is not the correct cutscene flags
|
|
|
|
-- TODO: we need to switch the player into viewingcutscene online status
|
|
|
|
player:play_scene(player.id, EVENT_ID, SCENE_PLAY_CUTSCENE, 8192, results)
|
|
|
|
return
|
|
|
|
end
|
2025-05-06 22:37:02 -04:00
|
|
|
player:finish_event(EVENT_ID)
|
|
|
|
end
|