pokeemerald/data/maps/Route113_GlassWorkshop/scripts.inc

398 lines
13 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
Route113_GlassWorkshop_MapScripts:: @ 826ED03
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-04-05 01:28:37 +02:00
Route113_GlassWorkshop_OnTransition: @ 826ED09
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
2018-12-22 03:32:45 +01:00
call_if_eq Route113_GlassWorkshop_EventScript_26ED18
2017-11-10 02:21:31 +01:00
end
Route113_GlassWorkshop_EventScript_26ED18:: @ 826ED18
2019-02-22 10:18:43 +01:00
setvar VAR_GLASS_WORKSHOP_STATE, 2
2017-11-10 02:21:31 +01:00
return
Route113_GlassWorkshop_EventScript_26ED1E:: @ 826ED1E
lock
faceplayer
2019-02-22 10:18:43 +01:00
compare VAR_GLASS_WORKSHOP_STATE, 10
2018-12-22 02:28:24 +01:00
goto_if_ge Route113_GlassWorkshop_EventScript_26F090
2019-02-22 10:18:43 +01:00
compare VAR_GLASS_WORKSHOP_STATE, 2
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_GlassWorkshop_EventScript_26ED6E
2019-02-22 10:18:43 +01:00
compare VAR_GLASS_WORKSHOP_STATE, 1
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_GlassWorkshop_EventScript_26ED64
msgbox Route113_GlassWorkshop_Text_26F19D, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_SOOT_SACK
2019-02-22 10:18:43 +01:00
setvar VAR_GLASS_WORKSHOP_STATE, 1
msgbox Route113_GlassWorkshop_Text_26F252, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route113_GlassWorkshop_EventScript_26ED64:: @ 826ED64
msgbox Route113_GlassWorkshop_Text_26F252, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route113_GlassWorkshop_EventScript_26ED6E:: @ 826ED6E
checkitem ITEM_SOOT_SACK, 1
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_GlassWorkshop_EventScript_26ED9D
msgbox Route113_GlassWorkshop_Text_26F312, MSGBOX_DEFAULT
compare VAR_ASH_GATHER_COUNT, 250
2018-12-22 02:28:24 +01:00
goto_if_lt Route113_GlassWorkshop_EventScript_26EFD6
2017-11-10 02:21:31 +01:00
message Route113_GlassWorkshop_Text_26F40A
waitmessage
goto Route113_GlassWorkshop_EventScript_26EDA7
end
Route113_GlassWorkshop_EventScript_26ED9D:: @ 826ED9D
msgbox Route113_GlassWorkshop_Text_26F772, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route113_GlassWorkshop_EventScript_26EDA7:: @ 826EDA7
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
case 0, Route113_GlassWorkshop_EventScript_26EE1E
case 1, Route113_GlassWorkshop_EventScript_26EE5A
case 2, Route113_GlassWorkshop_EventScript_26EE96
case 3, Route113_GlassWorkshop_EventScript_26EED2
case 4, Route113_GlassWorkshop_EventScript_26EF0E
case 5, Route113_GlassWorkshop_EventScript_26EF4A
case 6, Route113_GlassWorkshop_EventScript_26EF8B
case 7, Route113_GlassWorkshop_EventScript_26EFCC
2019-09-19 06:56:51 +02:00
case MULTI_B_PRESSED, Route113_GlassWorkshop_EventScript_26EFCC
2017-11-10 02:21:31 +01:00
end
Route113_GlassWorkshop_EventScript_26EE1E:: @ 826EE1E
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
setvar VAR_0x800A, 250
compare VAR_ASH_GATHER_COUNT, 250
2018-12-22 02:28:24 +01:00
goto_if_lt Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_GlassWorkshop_EventScript_26F003
2019-02-22 10:18:43 +01:00
setvar VAR_GLASS_WORKSHOP_STATE, 10
2017-11-10 02:21:31 +01:00
subvar VAR_ASH_GATHER_COUNT, 250
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EE5A:: @ 826EE5A
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
setvar VAR_0x800A, 500
compare VAR_ASH_GATHER_COUNT, 500
2018-12-22 02:28:24 +01:00
goto_if_lt Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_GlassWorkshop_EventScript_26F003
2019-02-22 10:18:43 +01:00
setvar VAR_GLASS_WORKSHOP_STATE, 11
2017-11-10 02:21:31 +01:00
subvar VAR_ASH_GATHER_COUNT, 500
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EE96:: @ 826EE96
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
setvar VAR_0x800A, 500
compare VAR_ASH_GATHER_COUNT, 500
2018-12-22 02:28:24 +01:00
goto_if_lt Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_GlassWorkshop_EventScript_26F003
2019-02-22 10:18:43 +01:00
setvar VAR_GLASS_WORKSHOP_STATE, 12
2017-11-10 02:21:31 +01:00
subvar VAR_ASH_GATHER_COUNT, 500
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EED2:: @ 826EED2
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
setvar VAR_0x800A, 1000
compare VAR_ASH_GATHER_COUNT, 1000
2018-12-22 02:28:24 +01:00
goto_if_lt Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_GlassWorkshop_EventScript_26F003
2019-02-22 10:18:43 +01:00
setvar VAR_GLASS_WORKSHOP_STATE, 13
2017-11-10 02:21:31 +01:00
subvar VAR_ASH_GATHER_COUNT, 1000
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EF0E:: @ 826EF0E
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
setvar VAR_0x800A, 1000
compare VAR_ASH_GATHER_COUNT, 1000
2018-12-22 02:28:24 +01:00
goto_if_lt Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_GlassWorkshop_EventScript_26F003
2019-02-22 10:18:43 +01:00
setvar VAR_GLASS_WORKSHOP_STATE, 14
2017-11-10 02:21:31 +01:00
subvar VAR_ASH_GATHER_COUNT, 1000
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EF4A:: @ 826EF4A
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
setvar VAR_0x800A, 6000
compare VAR_ASH_GATHER_COUNT, 6000
2018-12-22 02:28:24 +01:00
goto_if_lt Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_GlassWorkshop_EventScript_26F003
2019-02-22 10:18:43 +01:00
setvar VAR_GLASS_WORKSHOP_STATE, 15
2017-11-10 02:21:31 +01:00
subvar VAR_ASH_GATHER_COUNT, 6000
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EF8B:: @ 826EF8B
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
setvar VAR_0x800A, 8000
compare VAR_ASH_GATHER_COUNT, 8000
2018-12-22 02:28:24 +01:00
goto_if_lt Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_GlassWorkshop_EventScript_26F003
2019-02-22 10:18:43 +01:00
setvar VAR_GLASS_WORKSHOP_STATE, 16
2017-11-10 02:21:31 +01:00
subvar VAR_ASH_GATHER_COUNT, 8000
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EFCC:: @ 826EFCC
msgbox Route113_GlassWorkshop_Text_26F641, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route113_GlassWorkshop_EventScript_26EFD6:: @ 826EFD6
setvar VAR_0x800A, 250
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
msgbox Route113_GlassWorkshop_Text_26F34E, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route113_GlassWorkshop_EventScript_26EFEE:: @ 826EFEE
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
message Route113_GlassWorkshop_Text_26F543
waitmessage
goto Route113_GlassWorkshop_EventScript_26EDA7
end
Route113_GlassWorkshop_EventScript_26F003:: @ 826F003
message Route113_GlassWorkshop_Text_26F4B5
waitmessage
goto Route113_GlassWorkshop_EventScript_26EDA7
end
Route113_GlassWorkshop_EventScript_26F00F:: @ 826F00F
msgbox Route113_GlassWorkshop_Text_26F4DA, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
fadescreen 1
playse SE_SELECT
delay 30
fadescreen 0
msgbox Route113_GlassWorkshop_Text_26F688, MSGBOX_DEFAULT
compare VAR_0x8009, 0
2018-12-22 03:32:45 +01:00
call_if_eq Route113_GlassWorkshop_EventScript_26F047
compare VAR_0x8009, 1
2018-12-22 03:32:45 +01:00
call_if_eq Route113_GlassWorkshop_EventScript_26F05F
2019-02-22 10:18:43 +01:00
setvar VAR_GLASS_WORKSHOP_STATE, 2
2017-11-10 02:21:31 +01:00
release
end
Route113_GlassWorkshop_EventScript_26F047:: @ 826F047
giveitem_std VAR_0x8008
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_GlassWorkshop_EventScript_26F072
2017-11-10 02:21:31 +01:00
return
Route113_GlassWorkshop_EventScript_26F05F:: @ 826F05F
givedecoration_std VAR_0x8008
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq Route113_GlassWorkshop_EventScript_26F081
2017-11-10 02:21:31 +01:00
return
Route113_GlassWorkshop_EventScript_26F072:: @ 826F072
call Common_EventScript_BagIsFull
msgbox Route113_GlassWorkshop_Text_26F6B7, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route113_GlassWorkshop_EventScript_26F081:: @ 826F081
call Common_EventScript_NoRoomLeftForAnother
msgbox Route113_GlassWorkshop_Text_26F715, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route113_GlassWorkshop_EventScript_26F090:: @ 826F090
2019-02-22 10:18:43 +01:00
switch VAR_GLASS_WORKSHOP_STATE
2017-11-10 02:21:31 +01:00
case 10, Route113_GlassWorkshop_EventScript_26F0E3
case 11, Route113_GlassWorkshop_EventScript_26F0F7
case 12, Route113_GlassWorkshop_EventScript_26F10B
case 13, Route113_GlassWorkshop_EventScript_26F11F
case 14, Route113_GlassWorkshop_EventScript_26F133
case 15, Route113_GlassWorkshop_EventScript_26F147
case 16, Route113_GlassWorkshop_EventScript_26F15B
end
Route113_GlassWorkshop_EventScript_26F0E3:: @ 826F0E3
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
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F0F7:: @ 826F0F7
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
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F10B:: @ 826F10B
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
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F11F:: @ 826F11F
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
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F133:: @ 826F133
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
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F147:: @ 826F147
setvar VAR_0x8009, 1
2019-09-16 05:47:07 +02:00
setvar VAR_0x8008, DECOR_PRETTY_CHAIR
bufferdecorationname 0, DECOR_PRETTY_CHAIR
2017-11-10 02:21:31 +01:00
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F15B:: @ 826F15B
setvar VAR_0x8009, 1
2019-09-16 05:47:07 +02:00
setvar VAR_0x8008, DECOR_PRETTY_DESK
bufferdecorationname 0, DECOR_PRETTY_DESK
2017-11-10 02:21:31 +01:00
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F16F:: @ 826F16F
msgbox Route113_GlassWorkshop_Text_26F688, MSGBOX_DEFAULT
compare VAR_0x8009, 0
2018-12-22 03:32:45 +01:00
call_if_eq Route113_GlassWorkshop_EventScript_26F047
compare VAR_0x8009, 1
2018-12-22 03:32:45 +01:00
call_if_eq Route113_GlassWorkshop_EventScript_26F05F
2019-02-22 10:18:43 +01:00
setvar VAR_GLASS_WORKSHOP_STATE, 2
2017-11-10 02:21:31 +01:00
release
end
Route113_GlassWorkshop_EventScript_26F194:: @ 826F194
msgbox Route113_GlassWorkshop_Text_26F7EC, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
Route113_GlassWorkshop_Text_26F19D: @ 826F19D
.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.$"
Route113_GlassWorkshop_Text_26F252: @ 826F252
.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.$"
Route113_GlassWorkshop_Text_26F312: @ 826F312
.string "Have you collected ashes, huff-puff?\n"
.string "Let me see, huff-puff.$"
Route113_GlassWorkshop_Text_26F34E: @ 826F34E
.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.$"
Route113_GlassWorkshop_Text_26F40A: @ 826F40A
.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?$"
Route113_GlassWorkshop_Text_26F480: @ 826F480
.string "A {STR_VAR_1}, huff-puff?\n"
.string "Is that the one for you, huff-puff?$"
Route113_GlassWorkshop_Text_26F4B5: @ 826F4B5
.string "Which one would you like, huff-puff?$"
Route113_GlassWorkshop_Text_26F4DA: @ 826F4DA
.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.$"
Route113_GlassWorkshop_Text_26F543: @ 826F543
.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?$"
Route113_GlassWorkshop_Text_26F641: @ 826F641
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
Route113_GlassWorkshop_Text_26F688: @ 826F688
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.$"
Route113_GlassWorkshop_Text_26F6B7: @ 826F6B7
.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.$"
Route113_GlassWorkshop_Text_26F715: @ 826F715
.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.$"
Route113_GlassWorkshop_Text_26F772: @ 826F772
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.$"
Route113_GlassWorkshop_Text_26F7EC: @ 826F7EC
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!$"