From b099d0a7f4906737dd710c2b92beee7321052929 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 25 Jun 2025 21:50:57 -0400 Subject: [PATCH] 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. --- resources/scripts/events/tosort/CrystalBell.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/scripts/events/tosort/CrystalBell.lua b/resources/scripts/events/tosort/CrystalBell.lua index 38da618..b808f3c 100644 --- a/resources/scripts/events/tosort/CrystalBell.lua +++ b/resources/scripts/events/tosort/CrystalBell.lua @@ -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)