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:
parent
58e4e89765
commit
b099d0a7f4
1 changed files with 7 additions and 1 deletions
|
@ -20,7 +20,13 @@ function onTalk(target, player)
|
||||||
end
|
end
|
||||||
|
|
||||||
function onReturn(scene, results, player)
|
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)
|
player:play_scene(player.id, EVENT_ID, 00002, FADE_OUT + HIDE_UI + CONDITION_CUTSCENE, 0)
|
||||||
elseif scene == 2 then
|
elseif scene == 2 then
|
||||||
player:play_scene(player.id, EVENT_ID, 00003, FADE_OUT + HIDE_UI + CONDITION_CUTSCENE, 0)
|
player:play_scene(player.id, EVENT_ID, 00003, FADE_OUT + HIDE_UI + CONDITION_CUTSCENE, 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue