pokecrystal-board/maps/CherrygroveMart.asm

87 lines
2.0 KiB
NASM
Raw Normal View History

2018-01-31 08:38:45 -08:00
const_def 2 ; object constants
2015-11-26 21:22:14 -08:00
const CHERRYGROVEMART_CLERK
const CHERRYGROVEMART_COOLTRAINER_M
const CHERRYGROVEMART_YOUNGSTER
CherrygroveMart_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
2018-02-28 13:50:43 -08:00
CherrygroveMartClerkScript:
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
2018-02-28 13:50:43 -08:00
iftrue .PokeBallsInStock
2015-11-02 14:38:08 -08:00
pokemart MARTTYPE_STANDARD, MART_CHERRYGROVE
2015-11-25 07:16:29 -08:00
closetext
end
2018-02-28 13:50:43 -08:00
.PokeBallsInStock:
2015-11-02 14:38:08 -08:00
pokemart MARTTYPE_STANDARD, MART_CHERRYGROVE_DEX
2015-11-25 07:16:29 -08:00
closetext
end
2018-02-28 13:50:43 -08:00
CherrygroveMartCooltrainerMScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
2018-02-28 13:50:43 -08:00
iftrue .PokeBallsInStock
writetext CherrygroveMartCooltrainerMText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-02-28 13:50:43 -08:00
.PokeBallsInStock:
writetext CherrygroveMartCooltrainerMText_PokeBallsInStock
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2017-12-17 16:48:04 -08:00
CherrygroveMartYoungsterScript:
jumptextfaceplayer CherrygroveMartYoungsterText
2018-02-28 13:50:43 -08:00
CherrygroveMartCooltrainerMText:
text "They're fresh out"
line "of # BALLS!"
para "When will they get"
line "more of them?"
done
2018-02-28 13:50:43 -08:00
CherrygroveMartCooltrainerMText_PokeBallsInStock:
text "# BALLS are in"
line "stock! Now I can"
cont "catch #MON!"
done
2017-12-17 16:48:04 -08:00
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
db 2 ; warp events
2018-02-01 19:22:07 -08:00
warp_event 2, 7, CHERRYGROVE_CITY, 1
warp_event 3, 7, CHERRYGROVE_CITY, 1
db 0 ; coord events
db 0 ; bg events
db 3 ; object events
2018-02-28 13:50:43 -08:00
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
2018-02-01 19:22:07 -08:00
object_event 2, 5, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, CherrygroveMartYoungsterScript, -1