2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_MapScripts::
|
2019-04-05 01:28:37 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, Route113_GlassWorkshop_OnTransition
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2019-11-06 17:09:02 +01:00
|
|
|
.set BLUE_FLUTE_PRICE, 250
|
|
|
|
.set YELLOW_FLUTE_PRICE, 500
|
|
|
|
.set RED_FLUTE_PRICE, 500
|
|
|
|
.set WHITE_FLUTE_PRICE, 1000
|
|
|
|
.set BLACK_FLUTE_PRICE, 1000
|
|
|
|
.set PRETTY_CHAIR_PRICE, 6000
|
|
|
|
.set PRETTY_DESK_PRICE, 8000
|
|
|
|
.set LOWEST_ASH_PRICE, BLUE_FLUTE_PRICE
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_OnTransition:
|
2017-12-27 04:20:29 +01:00
|
|
|
setflag FLAG_LANDMARK_GLASS_WORKSHOP
|
2019-02-22 10:18:43 +01:00
|
|
|
compare VAR_GLASS_WORKSHOP_STATE, 1
|
2019-11-06 17:09:02 +01:00
|
|
|
call_if_eq Route113_GlassWorkshop_EventScript_ReenterWorkshopAfterSootSack
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_ReenterWorkshopAfterSootSack::
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_GLASS_WORKSHOP_STATE, 2
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_GlassWorker::
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2019-02-22 10:18:43 +01:00
|
|
|
compare VAR_GLASS_WORKSHOP_STATE, 10
|
2019-11-06 17:09:02 +01:00
|
|
|
goto_if_ge Route113_GlassWorkshop_EventScript_GiveItemAfterNoRoom
|
2019-02-22 10:18:43 +01:00
|
|
|
compare VAR_GLASS_WORKSHOP_STATE, 2
|
2019-11-06 17:09:02 +01:00
|
|
|
goto_if_eq Route113_GlassWorkshop_EventScript_CheckCollectedAsh
|
2019-02-22 10:18:43 +01:00
|
|
|
compare VAR_GLASS_WORKSHOP_STATE, 1
|
2019-11-06 17:09:02 +01:00
|
|
|
goto_if_eq Route113_GlassWorkshop_EventScript_ExplainSootSack
|
|
|
|
msgbox Route113_GlassWorkshop_Text_GoCollectAshWithThis, MSGBOX_DEFAULT
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem ITEM_SOOT_SACK
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_GLASS_WORKSHOP_STATE, 1
|
2019-11-06 17:09:02 +01:00
|
|
|
msgbox Route113_GlassWorkshop_Text_ExplainSootSack, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_ExplainSootSack::
|
2019-11-06 17:09:02 +01:00
|
|
|
msgbox Route113_GlassWorkshop_Text_ExplainSootSack, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_CheckCollectedAsh::
|
2021-08-05 18:46:11 +02:00
|
|
|
checkitem ITEM_SOOT_SACK
|
2019-11-06 17:09:02 +01:00
|
|
|
compare VAR_RESULT, FALSE
|
|
|
|
goto_if_eq Route113_GlassWorkshop_EventScript_SootSackNotInBag
|
|
|
|
msgbox Route113_GlassWorkshop_Text_LetsSeeCollectedAshes, MSGBOX_DEFAULT
|
|
|
|
compare VAR_ASH_GATHER_COUNT, LOWEST_ASH_PRICE
|
|
|
|
goto_if_lt Route113_GlassWorkshop_EventScript_NotEnoughAsh
|
|
|
|
message Route113_GlassWorkshop_Text_WhichGlassItemWoudYouLike
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
2019-11-06 17:09:02 +01:00
|
|
|
goto Route113_GlassWorkshop_EventScript_ChooseGlassItem
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_SootSackNotInBag::
|
2019-11-06 17:09:02 +01:00
|
|
|
msgbox Route113_GlassWorkshop_Text_HaventGotYourSootSack, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_ChooseGlassItem::
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8009, 0
|
2019-09-13 20:24:07 +02:00
|
|
|
setvar VAR_0x8004, SCROLL_MULTI_GLASS_WORKSHOP_VENDOR
|
|
|
|
special ShowScrollableMultichoice
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
switch VAR_RESULT
|
2019-11-06 17:09:02 +01:00
|
|
|
case 0, Route113_GlassWorkshop_EventScript_BlueFlute
|
|
|
|
case 1, Route113_GlassWorkshop_EventScript_YellowFlute
|
|
|
|
case 2, Route113_GlassWorkshop_EventScript_RedFlute
|
|
|
|
case 3, Route113_GlassWorkshop_EventScript_WhiteFlute
|
|
|
|
case 4, Route113_GlassWorkshop_EventScript_BlackFlute
|
|
|
|
case 5, Route113_GlassWorkshop_EventScript_PrettyChair
|
|
|
|
case 6, Route113_GlassWorkshop_EventScript_PrettyDesk
|
|
|
|
case 7, Route113_GlassWorkshop_EventScript_CancelGlassItemSelect
|
|
|
|
case MULTI_B_PRESSED, Route113_GlassWorkshop_EventScript_CancelGlassItemSelect
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_BlueFlute::
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_BLUE_FLUTE
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferitemname 0, VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
setvar VAR_0x800A, BLUE_FLUTE_PRICE
|
|
|
|
compare VAR_ASH_GATHER_COUNT, BLUE_FLUTE_PRICE
|
|
|
|
goto_if_lt Route113_GlassWorkshop_EventScript_NotEnoughAshForItem
|
|
|
|
msgbox Route113_GlassWorkshop_Text_IsThatTheItemForYou, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-06 17:09:02 +01:00
|
|
|
goto_if_eq Route113_GlassWorkshop_EventScript_ChooseDifferentItem
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_GLASS_WORKSHOP_STATE, 10
|
2019-11-06 17:09:02 +01:00
|
|
|
subvar VAR_ASH_GATHER_COUNT, BLUE_FLUTE_PRICE
|
|
|
|
goto Route113_GlassWorkshop_EventScript_MakeGlassItem
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_YellowFlute::
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_YELLOW_FLUTE
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferitemname 0, VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
setvar VAR_0x800A, YELLOW_FLUTE_PRICE
|
|
|
|
compare VAR_ASH_GATHER_COUNT, YELLOW_FLUTE_PRICE
|
|
|
|
goto_if_lt Route113_GlassWorkshop_EventScript_NotEnoughAshForItem
|
|
|
|
msgbox Route113_GlassWorkshop_Text_IsThatTheItemForYou, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-06 17:09:02 +01:00
|
|
|
goto_if_eq Route113_GlassWorkshop_EventScript_ChooseDifferentItem
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_GLASS_WORKSHOP_STATE, 11
|
2019-11-06 17:09:02 +01:00
|
|
|
subvar VAR_ASH_GATHER_COUNT, YELLOW_FLUTE_PRICE
|
|
|
|
goto Route113_GlassWorkshop_EventScript_MakeGlassItem
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_RedFlute::
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_RED_FLUTE
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferitemname 0, VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
setvar VAR_0x800A, RED_FLUTE_PRICE
|
|
|
|
compare VAR_ASH_GATHER_COUNT, RED_FLUTE_PRICE
|
|
|
|
goto_if_lt Route113_GlassWorkshop_EventScript_NotEnoughAshForItem
|
|
|
|
msgbox Route113_GlassWorkshop_Text_IsThatTheItemForYou, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-06 17:09:02 +01:00
|
|
|
goto_if_eq Route113_GlassWorkshop_EventScript_ChooseDifferentItem
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_GLASS_WORKSHOP_STATE, 12
|
2019-11-06 17:09:02 +01:00
|
|
|
subvar VAR_ASH_GATHER_COUNT, RED_FLUTE_PRICE
|
|
|
|
goto Route113_GlassWorkshop_EventScript_MakeGlassItem
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_WhiteFlute::
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_WHITE_FLUTE
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferitemname 0, VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
setvar VAR_0x800A, WHITE_FLUTE_PRICE
|
|
|
|
compare VAR_ASH_GATHER_COUNT, WHITE_FLUTE_PRICE
|
|
|
|
goto_if_lt Route113_GlassWorkshop_EventScript_NotEnoughAshForItem
|
|
|
|
msgbox Route113_GlassWorkshop_Text_IsThatTheItemForYou, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-06 17:09:02 +01:00
|
|
|
goto_if_eq Route113_GlassWorkshop_EventScript_ChooseDifferentItem
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_GLASS_WORKSHOP_STATE, 13
|
2019-11-06 17:09:02 +01:00
|
|
|
subvar VAR_ASH_GATHER_COUNT, WHITE_FLUTE_PRICE
|
|
|
|
goto Route113_GlassWorkshop_EventScript_MakeGlassItem
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_BlackFlute::
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_BLACK_FLUTE
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferitemname 0, VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
setvar VAR_0x800A, BLACK_FLUTE_PRICE
|
|
|
|
compare VAR_ASH_GATHER_COUNT, BLACK_FLUTE_PRICE
|
|
|
|
goto_if_lt Route113_GlassWorkshop_EventScript_NotEnoughAshForItem
|
|
|
|
msgbox Route113_GlassWorkshop_Text_IsThatTheItemForYou, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-06 17:09:02 +01:00
|
|
|
goto_if_eq Route113_GlassWorkshop_EventScript_ChooseDifferentItem
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_GLASS_WORKSHOP_STATE, 14
|
2019-11-06 17:09:02 +01:00
|
|
|
subvar VAR_ASH_GATHER_COUNT, BLACK_FLUTE_PRICE
|
|
|
|
goto Route113_GlassWorkshop_EventScript_MakeGlassItem
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_PrettyChair::
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8009, 1
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, DECOR_PRETTY_CHAIR
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferdecorationname 0, VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
setvar VAR_0x800A, PRETTY_CHAIR_PRICE
|
|
|
|
compare VAR_ASH_GATHER_COUNT, PRETTY_CHAIR_PRICE
|
|
|
|
goto_if_lt Route113_GlassWorkshop_EventScript_NotEnoughAshForItem
|
|
|
|
msgbox Route113_GlassWorkshop_Text_IsThatTheItemForYou, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-06 17:09:02 +01:00
|
|
|
goto_if_eq Route113_GlassWorkshop_EventScript_ChooseDifferentItem
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_GLASS_WORKSHOP_STATE, 15
|
2019-11-06 17:09:02 +01:00
|
|
|
subvar VAR_ASH_GATHER_COUNT, PRETTY_CHAIR_PRICE
|
|
|
|
goto Route113_GlassWorkshop_EventScript_MakeGlassItem
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_PrettyDesk::
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8009, 1
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, DECOR_PRETTY_DESK
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferdecorationname 0, VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
setvar VAR_0x800A, PRETTY_DESK_PRICE
|
|
|
|
compare VAR_ASH_GATHER_COUNT, PRETTY_DESK_PRICE
|
|
|
|
goto_if_lt Route113_GlassWorkshop_EventScript_NotEnoughAshForItem
|
|
|
|
msgbox Route113_GlassWorkshop_Text_IsThatTheItemForYou, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-06 17:09:02 +01:00
|
|
|
goto_if_eq Route113_GlassWorkshop_EventScript_ChooseDifferentItem
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_GLASS_WORKSHOP_STATE, 16
|
2019-11-06 17:09:02 +01:00
|
|
|
subvar VAR_ASH_GATHER_COUNT, PRETTY_DESK_PRICE
|
|
|
|
goto Route113_GlassWorkshop_EventScript_MakeGlassItem
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_CancelGlassItemSelect::
|
2019-11-06 17:09:02 +01:00
|
|
|
msgbox Route113_GlassWorkshop_Text_AllThatAshButDontWantAnything, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_NotEnoughAsh::
|
2019-11-06 17:09:02 +01:00
|
|
|
setvar VAR_0x800A, LOWEST_ASH_PRICE
|
2019-09-16 05:47:07 +02:00
|
|
|
subvar VAR_0x800A, VAR_ASH_GATHER_COUNT
|
2017-11-10 02:21:31 +01:00
|
|
|
buffernumberstring 0, VAR_0x800A
|
2019-11-06 17:09:02 +01:00
|
|
|
msgbox Route113_GlassWorkshop_Text_NotEnoughAshNeedX, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_NotEnoughAshForItem::
|
2019-09-16 05:47:07 +02:00
|
|
|
subvar VAR_0x800A, VAR_ASH_GATHER_COUNT
|
2017-11-10 02:21:31 +01:00
|
|
|
buffernumberstring 1, VAR_0x800A
|
2019-11-06 17:09:02 +01:00
|
|
|
message Route113_GlassWorkshop_Text_NotEnoughAshToMakeItem
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
2019-11-06 17:09:02 +01:00
|
|
|
goto Route113_GlassWorkshop_EventScript_ChooseGlassItem
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_ChooseDifferentItem::
|
2019-11-06 17:09:02 +01:00
|
|
|
message Route113_GlassWorkshop_Text_WhichWouldYouLike
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
2019-11-06 17:09:02 +01:00
|
|
|
goto Route113_GlassWorkshop_EventScript_ChooseGlassItem
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_MakeGlassItem::
|
2019-11-06 17:09:02 +01:00
|
|
|
msgbox Route113_GlassWorkshop_Text_IllMakeItemForYou, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2019-12-15 17:42:50 +01:00
|
|
|
fadescreen FADE_TO_BLACK
|
2017-11-10 02:21:31 +01:00
|
|
|
playse SE_SELECT
|
|
|
|
delay 30
|
2019-12-15 17:42:50 +01:00
|
|
|
fadescreen FADE_FROM_BLACK
|
2019-11-06 17:09:02 +01:00
|
|
|
msgbox Route113_GlassWorkshop_Text_IveFinishedGlassItem, MSGBOX_DEFAULT
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8009, 0
|
2019-11-06 17:09:02 +01:00
|
|
|
call_if_eq Route113_GlassWorkshop_EventScript_GiveGlassFlute
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8009, 1
|
2019-11-06 17:09:02 +01:00
|
|
|
call_if_eq Route113_GlassWorkshop_EventScript_GiveGlassDecor
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_GLASS_WORKSHOP_STATE, 2
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_GiveGlassFlute::
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
compare VAR_RESULT, FALSE
|
|
|
|
goto_if_eq Route113_GlassWorkshop_EventScript_NoRoomForFlute
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_GiveGlassDecor::
|
2020-01-11 18:02:58 +01:00
|
|
|
givedecoration VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
compare VAR_RESULT, FALSE
|
|
|
|
goto_if_eq Route113_GlassWorkshop_EventScript_NoRoomForDecor
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_NoRoomForFlute::
|
2019-02-23 01:52:11 +01:00
|
|
|
call Common_EventScript_BagIsFull
|
2019-11-06 17:09:02 +01:00
|
|
|
msgbox Route113_GlassWorkshop_Text_NoRoomInBag, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_NoRoomForDecor::
|
2019-11-06 17:30:50 +01:00
|
|
|
call Common_EventScript_NoRoomForDecor
|
2019-11-06 17:09:02 +01:00
|
|
|
msgbox Route113_GlassWorkshop_Text_NoRoomInPC, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_GiveItemAfterNoRoom::
|
2019-02-22 10:18:43 +01:00
|
|
|
switch VAR_GLASS_WORKSHOP_STATE
|
2019-11-06 17:09:02 +01:00
|
|
|
case 10, Route113_GlassWorkshop_EventScript_GiveBlueFlute
|
|
|
|
case 11, Route113_GlassWorkshop_EventScript_GiveYellowFlute
|
|
|
|
case 12, Route113_GlassWorkshop_EventScript_GiveRedFlute
|
|
|
|
case 13, Route113_GlassWorkshop_EventScript_GiveWhiteFlute
|
|
|
|
case 14, Route113_GlassWorkshop_EventScript_GiveBlackFlute
|
|
|
|
case 15, Route113_GlassWorkshop_EventScript_GivePrettyChair
|
|
|
|
case 16, Route113_GlassWorkshop_EventScript_GivePrettyDesk
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_GiveBlueFlute::
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8009, 0
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_BLUE_FLUTE
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferitemname 0, VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
goto Route113_GlassWorkshop_EventScript_TryGiveItemAgain
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_GiveYellowFlute::
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8009, 0
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_YELLOW_FLUTE
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferitemname 0, VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
goto Route113_GlassWorkshop_EventScript_TryGiveItemAgain
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_GiveRedFlute::
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8009, 0
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_RED_FLUTE
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferitemname 0, VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
goto Route113_GlassWorkshop_EventScript_TryGiveItemAgain
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_GiveWhiteFlute::
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8009, 0
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_WHITE_FLUTE
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferitemname 0, VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
goto Route113_GlassWorkshop_EventScript_TryGiveItemAgain
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_GiveBlackFlute::
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8009, 0
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_BLACK_FLUTE
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferitemname 0, VAR_0x8008
|
2019-11-06 17:09:02 +01:00
|
|
|
goto Route113_GlassWorkshop_EventScript_TryGiveItemAgain
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_GivePrettyChair::
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8009, 1
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, DECOR_PRETTY_CHAIR
|
|
|
|
bufferdecorationname 0, DECOR_PRETTY_CHAIR
|
2019-11-06 17:09:02 +01:00
|
|
|
goto Route113_GlassWorkshop_EventScript_TryGiveItemAgain
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_GivePrettyDesk::
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8009, 1
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, DECOR_PRETTY_DESK
|
|
|
|
bufferdecorationname 0, DECOR_PRETTY_DESK
|
2019-11-06 17:09:02 +01:00
|
|
|
goto Route113_GlassWorkshop_EventScript_TryGiveItemAgain
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_TryGiveItemAgain::
|
2019-11-06 17:09:02 +01:00
|
|
|
msgbox Route113_GlassWorkshop_Text_IveFinishedGlassItem, MSGBOX_DEFAULT
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8009, 0
|
2019-11-06 17:09:02 +01:00
|
|
|
call_if_eq Route113_GlassWorkshop_EventScript_GiveGlassFlute
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8009, 1
|
2019-11-06 17:09:02 +01:00
|
|
|
call_if_eq Route113_GlassWorkshop_EventScript_GiveGlassDecor
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_GLASS_WORKSHOP_STATE, 2
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_EventScript_NinjaBoy::
|
2019-11-06 17:09:02 +01:00
|
|
|
msgbox Route113_GlassWorkshop_Text_FunToBlowGlassFlute, MSGBOX_NPC
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_GoCollectAshWithThis:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "This area is covered in volcanic ash,\n"
|
|
|
|
.string "huff-puff!\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "I'm specially gifted, huff-puff.\p"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "I make glass out of volcanic ash\n"
|
|
|
|
.string "and make items, huff-puff.\p"
|
|
|
|
.string "Go collect ashes with this, huff-puff.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_ExplainSootSack:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Just take that SOOT SACK and walk\n"
|
|
|
|
.string "through piles of ash, huff-puff.\p"
|
|
|
|
.string "And it will fill up with the volcanic ash,\n"
|
|
|
|
.string "huff-puff.\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Once you think you've collected a good\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "amount, come see me, huff-puff.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_LetsSeeCollectedAshes:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Have you collected ashes, huff-puff?\n"
|
|
|
|
.string "Let me see, huff-puff.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_NotEnoughAshNeedX:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Hmmm…\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "There's not enough ash here, huff-puff.\l"
|
|
|
|
.string "I can't make glass with this, huff-puff.\p"
|
|
|
|
.string "Let's see… {STR_VAR_1} is the number of steps\n"
|
|
|
|
.string "you'll need to walk for me to make you\l"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "a BLUE FLUTE, huff-puff.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_WhichGlassItemWoudYouLike:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Oh!\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "You've got a lot of ashes, huff-puff!\p"
|
|
|
|
.string "I'll make you a glass item, huff-puff!\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Which one would you like, huff-puff?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_IsThatTheItemForYou:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "A {STR_VAR_1}, huff-puff?\n"
|
|
|
|
.string "Is that the one for you, huff-puff?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_WhichWouldYouLike:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Which one would you like, huff-puff?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_IllMakeItemForYou:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "A {STR_VAR_1} it is, then, huff-puff!\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Okay! I'll make it for you, huff-puff.\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Just wait a little while, huff-puff.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_NotEnoughAshToMakeItem:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "A {STR_VAR_1}, huff-puff?\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "There's not enough ash here to make\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "that, though, huff-puff.\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Let's see… {STR_VAR_2} is the number of steps\n"
|
|
|
|
.string "you'll need to walk through volcanic ash\l"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "for me to make that item, huff-puff.\p"
|
|
|
|
.string "Which item would you rather have me\n"
|
|
|
|
.string "make instead, huff-puff?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_AllThatAshButDontWantAnything:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "You've collected all that ash, but you\n"
|
|
|
|
.string "don't want anything, huff-puff?$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_IveFinishedGlassItem:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Ah, I've finished your {STR_VAR_1}.\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Take it, huff-puff.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_NoRoomInBag:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Oh?\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "You've no room in your BAG, huff-puff.\p"
|
|
|
|
.string "I'll hold on to it, so come back later,\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "huff-puff.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_NoRoomInPC:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Oh?\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "You've no room in your PC, huff-puff?\p"
|
|
|
|
.string "I'll hold on to it, so come back later,\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "huff-puff.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_HaventGotYourSootSack:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Hah? You haven't got your SOOT SACK\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "with you, huff-puff.\p"
|
|
|
|
.string "You have to keep it with you to collect\n"
|
|
|
|
.string "volcanic ash, huff-puff.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route113_GlassWorkshop_Text_FunToBlowGlassFlute:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "It's fun to blow a glass flute while\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "my boss is talking.\p"
|
|
|
|
.string "Huff-huff! Puff-puff!$"
|
|
|
|
|