pokecrystal-board/maps/CeladonCafe.asm

227 lines
4.3 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 CELADONCAFE_SUPER_NERD
const CELADONCAFE_FISHER1
const CELADONCAFE_FISHER2
const CELADONCAFE_FISHER3
const CELADONCAFE_TEACHER
CeladonCafe_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
2017-10-25 22:59:28 -07:00
CeladonCafeChef:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 22:59:28 -07:00
writetext ChefText_Eatathon
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2017-10-25 22:59:28 -07:00
CeladonCafeFisher1:
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 22:59:28 -07:00
writetext Fisher1Text_Snarfle
2015-11-25 07:16:29 -08:00
waitbutton
closetext
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 22:59:28 -07:00
writetext Fisher1Text_Concentration
2015-11-25 07:16:29 -08:00
waitbutton
closetext
turnobject CELADONCAFE_FISHER1, LEFT
end
2017-10-25 22:59:28 -07:00
CeladonCafeFisher2:
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 22:59:28 -07:00
writetext Fisher2Text_GulpChew
2015-11-25 07:16:29 -08:00
waitbutton
closetext
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 22:59:28 -07:00
writetext Fisher2Text_Quantity
2015-11-25 07:16:29 -08:00
waitbutton
closetext
turnobject CELADONCAFE_FISHER2, RIGHT
end
2017-10-25 22:59:28 -07:00
CeladonCafeFisher3:
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 22:59:28 -07:00
writetext Fisher3Text_MunchMunch
2015-11-25 07:16:29 -08:00
waitbutton
closetext
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 22:59:28 -07:00
writetext Fisher3Text_GoldenrodIsBest
2015-11-25 07:16:29 -08:00
waitbutton
closetext
turnobject CELADONCAFE_FISHER3, RIGHT
end
2017-10-25 22:59:28 -07:00
CeladonCafeTeacher:
checkitem COIN_CASE
2017-10-25 22:59:28 -07:00
iftrue .HasCoinCase
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 22:59:28 -07:00
writetext TeacherText_CrunchCrunch
2015-11-25 07:16:29 -08:00
waitbutton
closetext
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 22:59:28 -07:00
writetext TeacherText_NoCoinCase
2015-11-25 07:16:29 -08:00
waitbutton
closetext
turnobject CELADONCAFE_TEACHER, LEFT
end
2017-10-25 22:59:28 -07:00
.HasCoinCase:
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 22:59:28 -07:00
writetext TeacherText_KeepEating
2015-11-25 07:16:29 -08:00
waitbutton
closetext
turnobject CELADONCAFE_TEACHER, RIGHT
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 22:59:28 -07:00
writetext TeacherText_MoreChef
2015-11-25 07:16:29 -08:00
waitbutton
closetext
turnobject CELADONCAFE_TEACHER, LEFT
end
2015-06-25 21:01:08 -07:00
EatathonContestPoster:
jumptext EatathonContestPosterText
2015-06-25 21:01:08 -07:00
CeladonCafeTrashcan:
2013-09-24 00:48:58 -07:00
checkevent EVENT_FOUND_LEFTOVERS_IN_CELADON_CAFE
2015-06-25 21:01:08 -07:00
iftrue .TrashEmpty
2015-11-04 17:20:14 -08:00
giveitem LEFTOVERS
2015-06-25 21:01:08 -07:00
iffalse .PackFull
2015-12-09 15:25:44 -08:00
opentext
2018-01-11 22:40:20 -08:00
itemtotext LEFTOVERS, MEM_BUFFER_0
2015-06-25 21:01:08 -07:00
writetext FoundLeftoversText
playsound SFX_ITEM
2015-11-25 07:16:29 -08:00
waitsfx
itemnotify
2015-11-25 07:16:29 -08:00
closetext
2013-09-24 00:48:58 -07:00
setevent EVENT_FOUND_LEFTOVERS_IN_CELADON_CAFE
end
.PackFull:
2015-12-09 15:25:44 -08:00
opentext
2018-01-11 22:40:20 -08:00
itemtotext LEFTOVERS, MEM_BUFFER_0
2015-06-25 21:01:08 -07:00
writetext FoundLeftoversText
2015-11-29 19:29:45 -08:00
buttonsound
2015-06-25 21:01:08 -07:00
writetext NoRoomForLeftoversText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
.TrashEmpty:
2015-06-23 14:02:58 -07:00
jumpstd trashcan
2017-10-25 22:59:28 -07:00
ChefText_Eatathon:
text "Hi!"
para "We're holding an"
line "eatathon contest."
para "We can't serve you"
line "right now. Sorry."
done
2017-10-25 22:59:28 -07:00
Fisher1Text_Snarfle:
text "…Snarfle, chew…"
done
2017-10-25 22:59:28 -07:00
Fisher1Text_Concentration:
text "Don't talk to me!"
para "You'll break my"
line "concentration!"
done
2017-10-25 22:59:28 -07:00
Fisher2Text_GulpChew:
text "…Gulp… Chew…"
done
2017-10-25 22:59:28 -07:00
Fisher2Text_Quantity:
text "I take quantity"
line "over quality!"
para "I'm happy when I'm"
line "full!"
done
2017-10-25 22:59:28 -07:00
Fisher3Text_MunchMunch:
text "Munch, munch…"
done
2017-10-25 22:59:28 -07:00
Fisher3Text_GoldenrodIsBest:
text "The food is good"
line "here, but GOLDEN-"
cont "ROD has the best"
cont "food anywhere."
done
2017-10-25 22:59:28 -07:00
TeacherText_CrunchCrunch:
text "Crunch… Crunch…"
done
2017-10-25 22:59:28 -07:00
TeacherText_NoCoinCase:
text "Nobody here will"
line "give you a COIN"
para "CASE. You should"
line "look in JOHTO."
done
2017-10-25 22:59:28 -07:00
TeacherText_KeepEating:
text "Crunch… Crunch…"
para "I can keep eating!"
done
2017-10-25 22:59:28 -07:00
TeacherText_MoreChef:
text "More, CHEF!"
done
2015-06-25 21:01:08 -07:00
EatathonContestPosterText:
text "Eatathon Contest!"
line "No time limit!"
para "A battle without"
line "end! The biggest"
para "muncher gets it"
line "all for free!"
done
2015-06-25 21:01:08 -07:00
FoundLeftoversText:
text "<PLAYER> found"
line "@"
text_ram wStringBuffer3
text "!"
done
2015-06-25 21:01:08 -07:00
NoRoomForLeftoversText:
text "But <PLAYER> can't"
line "hold another item…"
done
CeladonCafe_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
2018-02-01 19:22:07 -08:00
warp_event 6, 7, CELADON_CITY, 9
warp_event 7, 7, CELADON_CITY, 9
db 0 ; coord events
db 2 ; bg events
2018-02-01 19:22:07 -08:00
bg_event 5, 0, BGEVENT_READ, EatathonContestPoster
bg_event 7, 1, BGEVENT_READ, CeladonCafeTrashcan
db 5 ; object events
2018-02-01 19:22:07 -08:00
object_event 9, 3, SPRITE_SUPER_NERD, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, CeladonCafeChef, -1
object_event 4, 6, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CeladonCafeFisher1, -1
object_event 1, 7, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, CeladonCafeFisher2, -1
object_event 1, 2, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CeladonCafeFisher3, -1
object_event 4, 3, SPRITE_TEACHER, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CeladonCafeTeacher, -1