1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-30 11:47:45 +00:00

Implement the Crystal Bell menu

It will start the second scene if you request a summon now, but
we still need to implement the opcodes for bringing up the menu.
This commit is contained in:
Joshua Goins 2025-06-25 21:50:57 -04:00
parent 58e4e89765
commit b099d0a7f4

View file

@ -20,7 +20,13 @@ function onTalk(target, player)
end
function onReturn(scene, results, player)
if scene == 1 then
if scene == 0 then
-- results[1] is 1 if you want to summon, otherwise 0
if results[1] == 1 then
player:play_scene(player.id, EVENT_ID, 00001, FADE_OUT + HIDE_UI + CONDITION_CUTSCENE, 0)
return
end
elseif scene == 1 then
player:play_scene(player.id, EVENT_ID, 00002, FADE_OUT + HIDE_UI + CONDITION_CUTSCENE, 0)
elseif scene == 2 then
player:play_scene(player.id, EVENT_ID, 00003, FADE_OUT + HIDE_UI + CONDITION_CUTSCENE, 0)