sovereignx/data/maps/LavaridgeTown_HerbShop/scripts.inc
Melody c557ac61ae adds constants, cleans up callstd and msgbox code
* adds some constants for standard script names and messagebox types
* replaces some callstd calls with msgbox calls where equivalent
* replaces msgbox and callstd calls using raw digits with versions that use the constants
2018-12-02 03:37:46 -05:00

68 lines
1.9 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.

LavaridgeTown_HerbShop_MapScripts:: @ 81FE4D6
.byte 0
LavaridgeTown_HerbShop_EventScript_1FE4D7:: @ 81FE4D7
lock
faceplayer
message LavaridgeTown_HerbShop_Text_1FE53E
waitmessage
pokemart LavaridgeTown_HerbShop_Pokemart_1FE4F0
msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
release
end
.align 2
LavaridgeTown_HerbShop_Pokemart_1FE4F0: @ 81FE4F0
.2byte ITEM_ENERGY_POWDER
.2byte ITEM_ENERGY_ROOT
.2byte ITEM_HEAL_POWDER
.2byte ITEM_REVIVAL_HERB
.2byte ITEM_NONE
release
end
LavaridgeTown_HerbShop_EventScript_1FE4FC:: @ 81FE4FC
msgbox LavaridgeTown_HerbShop_Text_1FE685, MSGBOX_NPC
end
LavaridgeTown_HerbShop_EventScript_1FE505:: @ 81FE505
lock
faceplayer
checkflag FLAG_0x0FE
goto_eq LavaridgeTown_HerbShop_EventScript_1FE534
msgbox LavaridgeTown_HerbShop_Text_1FE584, MSGBOX_DEFAULT
giveitem_std ITEM_CHARCOAL
compare VAR_RESULT, 0
goto_eq LavaridgeTown_HerbShop_EventScript_272054
setflag FLAG_0x0FE
release
end
LavaridgeTown_HerbShop_EventScript_1FE534:: @ 81FE534
msgbox LavaridgeTown_HerbShop_Text_1FE5EB, MSGBOX_DEFAULT
release
end
LavaridgeTown_HerbShop_Text_1FE53E: @ 81FE53E
.string "Welcome to the HERB SHOP, home of\n"
.string "effective and inexpensive medicine!$"
LavaridgeTown_HerbShop_Text_1FE584: @ 81FE584
.string "Youve come to look at herbal medicine\n"
.string "in LAVARIDGE?\p"
.string "Thats rather commendable.\p"
.string "I like you! Take this!$"
LavaridgeTown_HerbShop_Text_1FE5EB: @ 81FE5EB
.string "That CHARCOAL I gave you, its used\n"
.string "for making herbal medicine.\p"
.string "It also does wonders when held by\n"
.string "a POKéMON.\p"
.string "It intensifies the power of FIRE-type\n"
.string "moves.$"
LavaridgeTown_HerbShop_Text_1FE685: @ 81FE685
.string "Herbal medicine works impressively well.\n"
.string "But your POKéMON will dislike you for it.\l"
.string "It must be horribly bitter!$"