pokeemerald/data/scripts/maps/Route113_GlassWorkshop.inc
2017-12-21 13:47:52 -06:00

398 lines
12 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Route113_GlassWorkshop_MapScripts:: @ 826ED03
map_script 3, Route113_GlassWorkshop_MapScript1_26ED09
.byte 0
Route113_GlassWorkshop_MapScript1_26ED09: @ 826ED09
setflag FLAG_0x8A4
compare VAR_0x40BE, 1
call_if 1, Route113_GlassWorkshop_EventScript_26ED18
end
Route113_GlassWorkshop_EventScript_26ED18:: @ 826ED18
setvar VAR_0x40BE, 2
return
Route113_GlassWorkshop_EventScript_26ED1E:: @ 826ED1E
lock
faceplayer
compare VAR_0x40BE, 10
goto_if 4, Route113_GlassWorkshop_EventScript_26F090
compare VAR_0x40BE, 2
goto_eq Route113_GlassWorkshop_EventScript_26ED6E
compare VAR_0x40BE, 1
goto_eq Route113_GlassWorkshop_EventScript_26ED64
msgbox Route113_GlassWorkshop_Text_26F19D, 4
giveitem_std ITEM_SOOT_SACK
setvar VAR_0x40BE, 1
msgbox Route113_GlassWorkshop_Text_26F252, 4
release
end
Route113_GlassWorkshop_EventScript_26ED64:: @ 826ED64
msgbox Route113_GlassWorkshop_Text_26F252, 4
release
end
Route113_GlassWorkshop_EventScript_26ED6E:: @ 826ED6E
checkitem ITEM_SOOT_SACK, 1
compare VAR_RESULT, 0
goto_eq Route113_GlassWorkshop_EventScript_26ED9D
msgbox Route113_GlassWorkshop_Text_26F312, 4
compare VAR_ASH_GATHER_COUNT, 250
goto_if 0, Route113_GlassWorkshop_EventScript_26EFD6
message Route113_GlassWorkshop_Text_26F40A
waitmessage
goto Route113_GlassWorkshop_EventScript_26EDA7
end
Route113_GlassWorkshop_EventScript_26ED9D:: @ 826ED9D
msgbox Route113_GlassWorkshop_Text_26F772, 4
release
end
Route113_GlassWorkshop_EventScript_26EDA7:: @ 826EDA7
setvar VAR_0x8009, 0
setvar VAR_0x8004, 1
special sub_813A128
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
case 127, Route113_GlassWorkshop_EventScript_26EFCC
end
Route113_GlassWorkshop_EventScript_26EE1E:: @ 826EE1E
setvar VAR_0x8008, 39
bufferitemname 0, VAR_0x8008
setvar VAR_0x800A, 250
compare VAR_ASH_GATHER_COUNT, 250
goto_if 0, Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, 5
compare VAR_RESULT, 0
goto_eq Route113_GlassWorkshop_EventScript_26F003
setvar VAR_0x40BE, 10
subvar VAR_ASH_GATHER_COUNT, 250
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EE5A:: @ 826EE5A
setvar VAR_0x8008, 40
bufferitemname 0, VAR_0x8008
setvar VAR_0x800A, 500
compare VAR_ASH_GATHER_COUNT, 500
goto_if 0, Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, 5
compare VAR_RESULT, 0
goto_eq Route113_GlassWorkshop_EventScript_26F003
setvar VAR_0x40BE, 11
subvar VAR_ASH_GATHER_COUNT, 500
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EE96:: @ 826EE96
setvar VAR_0x8008, 41
bufferitemname 0, VAR_0x8008
setvar VAR_0x800A, 500
compare VAR_ASH_GATHER_COUNT, 500
goto_if 0, Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, 5
compare VAR_RESULT, 0
goto_eq Route113_GlassWorkshop_EventScript_26F003
setvar VAR_0x40BE, 12
subvar VAR_ASH_GATHER_COUNT, 500
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EED2:: @ 826EED2
setvar VAR_0x8008, 43
bufferitemname 0, VAR_0x8008
setvar VAR_0x800A, 1000
compare VAR_ASH_GATHER_COUNT, 1000
goto_if 0, Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, 5
compare VAR_RESULT, 0
goto_eq Route113_GlassWorkshop_EventScript_26F003
setvar VAR_0x40BE, 13
subvar VAR_ASH_GATHER_COUNT, 1000
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EF0E:: @ 826EF0E
setvar VAR_0x8008, 42
bufferitemname 0, VAR_0x8008
setvar VAR_0x800A, 1000
compare VAR_ASH_GATHER_COUNT, 1000
goto_if 0, Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, 5
compare VAR_RESULT, 0
goto_eq Route113_GlassWorkshop_EventScript_26F003
setvar VAR_0x40BE, 14
subvar VAR_ASH_GATHER_COUNT, 1000
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EF4A:: @ 826EF4A
setvar VAR_0x8009, 1
setvar VAR_0x8008, 13
bufferdecorationname 0, VAR_0x8008
setvar VAR_0x800A, 6000
compare VAR_ASH_GATHER_COUNT, 6000
goto_if 0, Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, 5
compare VAR_RESULT, 0
goto_eq Route113_GlassWorkshop_EventScript_26F003
setvar VAR_0x40BE, 15
subvar VAR_ASH_GATHER_COUNT, 6000
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EF8B:: @ 826EF8B
setvar VAR_0x8009, 1
setvar VAR_0x8008, 6
bufferdecorationname 0, VAR_0x8008
setvar VAR_0x800A, 8000
compare VAR_ASH_GATHER_COUNT, 8000
goto_if 0, Route113_GlassWorkshop_EventScript_26EFEE
msgbox Route113_GlassWorkshop_Text_26F480, 5
compare VAR_RESULT, 0
goto_eq Route113_GlassWorkshop_EventScript_26F003
setvar VAR_0x40BE, 16
subvar VAR_ASH_GATHER_COUNT, 8000
goto Route113_GlassWorkshop_EventScript_26F00F
end
Route113_GlassWorkshop_EventScript_26EFCC:: @ 826EFCC
msgbox Route113_GlassWorkshop_Text_26F641, 4
release
end
Route113_GlassWorkshop_EventScript_26EFD6:: @ 826EFD6
setvar VAR_0x800A, 250
subvar VAR_0x800A, 16456
buffernumberstring 0, VAR_0x800A
msgbox Route113_GlassWorkshop_Text_26F34E, 4
release
end
Route113_GlassWorkshop_EventScript_26EFEE:: @ 826EFEE
subvar VAR_0x800A, 16456
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, 4
closemessage
fadescreen 1
playse SE_SELECT
delay 30
fadescreen 0
msgbox Route113_GlassWorkshop_Text_26F688, 4
compare VAR_0x8009, 0
call_if 1, Route113_GlassWorkshop_EventScript_26F047
compare VAR_0x8009, 1
call_if 1, Route113_GlassWorkshop_EventScript_26F05F
setvar VAR_0x40BE, 2
release
end
Route113_GlassWorkshop_EventScript_26F047:: @ 826F047
giveitem_std VAR_0x8008
compare VAR_RESULT, 0
goto_eq Route113_GlassWorkshop_EventScript_26F072
return
Route113_GlassWorkshop_EventScript_26F05F:: @ 826F05F
givedecoration_std VAR_0x8008
compare VAR_RESULT, 0
goto_eq Route113_GlassWorkshop_EventScript_26F081
return
Route113_GlassWorkshop_EventScript_26F072:: @ 826F072
call Route113_GlassWorkshop_EventScript_27205E
msgbox Route113_GlassWorkshop_Text_26F6B7, 4
release
end
Route113_GlassWorkshop_EventScript_26F081:: @ 826F081
call Route113_GlassWorkshop_EventScript_272071
msgbox Route113_GlassWorkshop_Text_26F715, 4
release
end
Route113_GlassWorkshop_EventScript_26F090:: @ 826F090
switch VAR_0x40BE
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
setvar VAR_0x8008, 39
bufferitemname 0, VAR_0x8008
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F0F7:: @ 826F0F7
setvar VAR_0x8009, 0
setvar VAR_0x8008, 40
bufferitemname 0, VAR_0x8008
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F10B:: @ 826F10B
setvar VAR_0x8009, 0
setvar VAR_0x8008, 41
bufferitemname 0, VAR_0x8008
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F11F:: @ 826F11F
setvar VAR_0x8009, 0
setvar VAR_0x8008, 43
bufferitemname 0, VAR_0x8008
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F133:: @ 826F133
setvar VAR_0x8009, 0
setvar VAR_0x8008, 42
bufferitemname 0, VAR_0x8008
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F147:: @ 826F147
setvar VAR_0x8009, 1
setvar VAR_0x8008, 13
bufferdecorationname 0, 13
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F15B:: @ 826F15B
setvar VAR_0x8009, 1
setvar VAR_0x8008, 6
bufferdecorationname 0, 6
goto Route113_GlassWorkshop_EventScript_26F16F
end
Route113_GlassWorkshop_EventScript_26F16F:: @ 826F16F
msgbox Route113_GlassWorkshop_Text_26F688, 4
compare VAR_0x8009, 0
call_if 1, Route113_GlassWorkshop_EventScript_26F047
compare VAR_0x8009, 1
call_if 1, Route113_GlassWorkshop_EventScript_26F05F
setvar VAR_0x40BE, 2
release
end
Route113_GlassWorkshop_EventScript_26F194:: @ 826F194
msgbox Route113_GlassWorkshop_Text_26F7EC, 2
end
Route113_GlassWorkshop_Text_26F19D: @ 826F19D
.string "This area is covered in volcanic ash,\n"
.string "huff-puff!\p"
.string "Im specially gifted, huff-puff.\p"
.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"
.string "Once you think youve collected a good\n"
.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"
.string "Theres not enough ash here, huff-puff.\l"
.string "I cant make glass with this, huff-puff.\p"
.string "Lets see… {STR_VAR_1} is the number of steps\n"
.string "youll need to walk for me to make you\l"
.string "a BLUE FLUTE, huff-puff.$"
Route113_GlassWorkshop_Text_26F40A: @ 826F40A
.string "Oh!\n"
.string "Youve got a lot of ashes, huff-puff!\p"
.string "Ill make you a glass item, huff-puff!\n"
.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"
.string "Okay! Ill make it for you, huff-puff.\n"
.string "Just wait a little while, huff-puff.$"
Route113_GlassWorkshop_Text_26F543: @ 826F543
.string "A {STR_VAR_1}, huff-puff?\p"
.string "Theres not enough ash here to make\n"
.string "that, though, huff-puff.\p"
.string "Lets see… {STR_VAR_2} is the number of steps\n"
.string "youll need to walk through volcanic ash\l"
.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
.string "Youve collected all that ash, but you\n"
.string "dont want anything, huff-puff?$"
Route113_GlassWorkshop_Text_26F688: @ 826F688
.string "Ah, Ive finished your {STR_VAR_1}.\n"
.string "Take it, huff-puff.$"
Route113_GlassWorkshop_Text_26F6B7: @ 826F6B7
.string "Oh?\n"
.string "Youve no room in your BAG, huff-puff.\p"
.string "Ill hold on to it, so come back later,\n"
.string "huff-puff.$"
Route113_GlassWorkshop_Text_26F715: @ 826F715
.string "Oh?\n"
.string "Youve no room in your PC, huff-puff?\p"
.string "Ill hold on to it, so come back later,\n"
.string "huff-puff.$"
Route113_GlassWorkshop_Text_26F772: @ 826F772
.string "Hah? You havent got your SOOT SACK\n"
.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
.string "Its fun to blow a glass flute while\n"
.string "my boss is talking.\p"
.string "Huff-huff! Puff-puff!$"