pokecrystal-board/maps/CherrygroveMart.asm
2020-07-24 09:57:16 -04:00

87 lines
1.9 KiB
NASM

object_const_def
const CHERRYGROVEMART_CLERK
const CHERRYGROVEMART_COOLTRAINER_M
const CHERRYGROVEMART_YOUNGSTER
CherrygroveMart_MapScripts:
def_scene_scripts
def_callbacks
CherrygroveMartClerkScript:
opentext
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
iftrue .PokeBallsInStock
pokemart MARTTYPE_STANDARD, MART_CHERRYGROVE
closetext
end
.PokeBallsInStock:
pokemart MARTTYPE_STANDARD, MART_CHERRYGROVE_DEX
closetext
end
CherrygroveMartCooltrainerMScript:
faceplayer
opentext
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
iftrue .PokeBallsInStock
writetext CherrygroveMartCooltrainerMText
waitbutton
closetext
end
.PokeBallsInStock:
writetext CherrygroveMartCooltrainerMText_PokeBallsInStock
waitbutton
closetext
end
CherrygroveMartYoungsterScript:
jumptextfaceplayer CherrygroveMartYoungsterText
CherrygroveMartCooltrainerMText:
text "They're fresh out"
line "of # BALLS!"
para "When will they get"
line "more of them?"
done
CherrygroveMartCooltrainerMText_PokeBallsInStock:
text "# BALLS are in"
line "stock! Now I can"
cont "catch #MON!"
done
CherrygroveMartYoungsterText:
text "When I was walking"
line "in the grass, a"
para "bug #MON poi-"
line "soned my #MON!"
para "I just kept going,"
line "but then my"
cont "#MON fainted."
para "You should keep an"
line "ANTIDOTE with you."
done
CherrygroveMart_MapEvents:
db 0, 0 ; filler
def_warp_events
warp_event 2, 7, CHERRYGROVE_CITY, 1
warp_event 3, 7, CHERRYGROVE_CITY, 1
def_coord_events
def_bg_events
def_object_events
object_event 1, 3, SPRITE_CLERK, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CherrygroveMartClerkScript, -1
object_event 7, 6, SPRITE_COOLTRAINER_M, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 2, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CherrygroveMartCooltrainerMScript, -1
object_event 2, 5, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, CherrygroveMartYoungsterScript, -1