mirror of https://github.com/pret/pokecrystal.git
88 lines
1.7 KiB
NASM
88 lines
1.7 KiB
NASM
const_value set 2
|
|
const CIANWOODPHARMACY_PHARMACIST
|
|
|
|
CianwoodPharmacy_MapScripts:
|
|
db 1 ; scene scripts
|
|
scene_script .DummyScene
|
|
|
|
db 0 ; callbacks
|
|
|
|
.DummyScene:
|
|
end
|
|
|
|
CianwoodPharmacist:
|
|
faceplayer
|
|
opentext
|
|
checkevent EVENT_GOT_SECRETPOTION_FROM_PHARMACY
|
|
iftrue .Mart
|
|
checkevent EVENT_JASMINE_EXPLAINED_AMPHYS_SICKNESS
|
|
iffalse .Mart
|
|
writetext PharmacistGiveSecretpotionText
|
|
buttonsound
|
|
giveitem SECRETPOTION
|
|
writetext ReceivedSecretpotionText
|
|
playsound SFX_KEY_ITEM
|
|
waitsfx
|
|
itemnotify
|
|
setevent EVENT_GOT_SECRETPOTION_FROM_PHARMACY
|
|
writetext PharmacistDescribeSecretpotionText
|
|
waitbutton
|
|
closetext
|
|
end
|
|
|
|
.Mart:
|
|
pokemart MARTTYPE_PHARMACY, MART_CIANWOOD
|
|
closetext
|
|
end
|
|
|
|
CianwoodPharmacyBookshelf:
|
|
jumpstd difficultbookshelf
|
|
|
|
PharmacistGiveSecretpotionText:
|
|
text "Your #MON ap-"
|
|
line "pear to be fine."
|
|
|
|
para "Is something wor- "
|
|
line "rying you?"
|
|
|
|
para "…"
|
|
|
|
para "The LIGHTHOUSE"
|
|
line "#MON is in"
|
|
cont "trouble?"
|
|
|
|
para "I got it!"
|
|
|
|
para "This ought to do"
|
|
line "the trick."
|
|
done
|
|
|
|
ReceivedSecretpotionText:
|
|
text "<PLAYER> received"
|
|
line "SECRETPOTION."
|
|
done
|
|
|
|
PharmacistDescribeSecretpotionText:
|
|
text "My SECRETPOTION is"
|
|
line "a tad too strong."
|
|
|
|
para "I only offer it in"
|
|
line "an emergency."
|
|
done
|
|
|
|
CianwoodPharmacy_MapEvents:
|
|
db 0, 0 ; filler
|
|
|
|
db 2 ; warp events
|
|
warp_event 2, 7, 4, CIANWOOD_CITY
|
|
warp_event 3, 7, 4, CIANWOOD_CITY
|
|
|
|
db 0 ; coord events
|
|
|
|
db 2 ; bg events
|
|
bg_event 0, 1, BGEVENT_READ, CianwoodPharmacyBookshelf
|
|
bg_event 1, 1, BGEVENT_READ, CianwoodPharmacyBookshelf
|
|
|
|
db 1 ; object events
|
|
object_event 2, 3, SPRITE_PHARMACIST, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, CianwoodPharmacist, -1
|