pokecrystal-board/maps/GoldenrodBikeShop.asm

124 lines
2.6 KiB
NASM
Raw Normal View History

object_const_def ; object_event constants
2015-11-26 21:22:14 -08:00
const GOLDENRODBIKESHOP_CLERK
GoldenrodBikeShop_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
2018-02-27 16:47:30 -08:00
.UnreferencedDummyScene:
end
2018-02-28 14:47:31 -08:00
GoldenrodBikeShopClerkScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_BICYCLE
2018-02-28 14:47:31 -08:00
iftrue .GotBicycle
2018-08-19 10:56:41 -07:00
writetext GoldenrodBikeShopClerkIntroText
yesorno
2018-02-28 14:47:31 -08:00
iffalse .Refused
2018-08-19 10:56:41 -07:00
writetext GoldenrodBikeShopClerkAgreedText
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-25 07:16:29 -08:00
waitsfx
2015-11-04 17:20:14 -08:00
giveitem BICYCLE
2018-08-19 10:56:41 -07:00
writetext BorrowedABicycleText
playsound SFX_KEY_ITEM
2015-11-25 07:16:29 -08:00
waitsfx
itemnotify
2015-07-10 05:12:28 -07:00
setflag ENGINE_BIKE_SHOP_CALL_ENABLED
2013-09-24 00:48:58 -07:00
setevent EVENT_GOT_BICYCLE
2018-02-28 14:47:31 -08:00
.GotBicycle:
2018-08-19 10:56:41 -07:00
writetext GoldenrodBikeShopClerkFirstRateBikesText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-02-28 14:47:31 -08:00
.Refused:
2018-08-19 10:56:41 -07:00
writetext GoldenrodBikeShopClerkRefusedText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
GoldenrodBikeShopJustReleasedCompactBike:
; unused
jumptext GoldenrodBikeShopJustReleasedCompactBikeText
GoldenrodBikeShopBicycle:
jumptext GoldenrodBikeShopBicycleText
2018-08-19 10:56:41 -07:00
GoldenrodBikeShopClerkIntroText:
text "…sigh… I moved"
line "here, but I can't"
para "sell my BICYCLES."
line "Why is that?"
para "Could you ride a"
line "BICYCLE and adver-"
cont "tise for me?"
done
2018-08-19 10:56:41 -07:00
GoldenrodBikeShopClerkAgreedText:
text "Really? Great!"
para "Give me your name"
line "and phone number,"
para "and I'll loan you"
line "a BICYCLE."
done
2018-08-19 10:56:41 -07:00
BorrowedABicycleText:
text "<PLAYER> borrowed a"
line "BICYCLE."
done
2018-08-19 10:56:41 -07:00
GoldenrodBikeShopClerkFirstRateBikesText:
text "My BICYCLES are"
line "first-rate! You"
para "can ride them"
line "anywhere."
done
2018-08-19 10:56:41 -07:00
GoldenrodBikeShopClerkRefusedText:
text "…sigh… Oh, for"
line "the kindness of"
cont "people…"
done
GoldenrodBikeShopJustReleasedCompactBikeText:
text "Just released!"
para "First-rate compact"
line "BICYCLES!"
done
GoldenrodBikeShopBicycleText:
text "It's a shiny new"
line "BICYCLE!"
done
GoldenrodBikeShop_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
2018-02-01 19:22:07 -08:00
warp_event 2, 7, GOLDENROD_CITY, 2
warp_event 3, 7, GOLDENROD_CITY, 2
db 0 ; coord events
db 9 ; bg events
bg_event 1, 2, BGEVENT_READ, GoldenrodBikeShopBicycle
bg_event 0, 3, BGEVENT_READ, GoldenrodBikeShopBicycle
bg_event 1, 3, BGEVENT_READ, GoldenrodBikeShopBicycle
bg_event 0, 5, BGEVENT_READ, GoldenrodBikeShopBicycle
bg_event 1, 5, BGEVENT_READ, GoldenrodBikeShopBicycle
bg_event 0, 6, BGEVENT_READ, GoldenrodBikeShopBicycle
bg_event 1, 6, BGEVENT_READ, GoldenrodBikeShopBicycle
bg_event 6, 6, BGEVENT_READ, GoldenrodBikeShopBicycle
bg_event 7, 6, BGEVENT_READ, GoldenrodBikeShopBicycle
db 1 ; object events
2018-02-28 14:47:31 -08:00
object_event 7, 2, SPRITE_CLERK, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, GoldenrodBikeShopClerkScript, -1