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
|
|
|
|
|
2018-01-16 19:57:19 -08:00
|
|
|
CeladonCafe_MapScripts:
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0 ; scene scripts
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0 ; callbacks
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
CeladonCafeChef:
|
2013-02-16 22:54:07 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
2015-11-26 21:22:14 -08:00
|
|
|
spriteface CELADONCAFE_FISHER1, LEFT
|
2013-02-16 22:54:07 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
2015-11-26 21:22:14 -08:00
|
|
|
spriteface CELADONCAFE_FISHER2, RIGHT
|
2013-02-16 22:54:07 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
2015-11-26 21:22:14 -08:00
|
|
|
spriteface CELADONCAFE_FISHER3, RIGHT
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
CeladonCafeTeacher:
|
2013-02-16 22:54:07 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
2015-11-26 21:22:14 -08:00
|
|
|
spriteface CELADONCAFE_TEACHER, LEFT
|
2013-02-16 22:54:07 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
2015-11-26 21:22:14 -08:00
|
|
|
spriteface 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
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
2015-11-26 21:22:14 -08:00
|
|
|
spriteface CELADONCAFE_TEACHER, LEFT
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2015-06-25 21:01:08 -07:00
|
|
|
EatathonContestPoster:
|
|
|
|
jumptext EatathonContestPosterText
|
2013-02-16 22:54:07 -08:00
|
|
|
|
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
|
2014-04-30 03:04:35 -07:00
|
|
|
playsound SFX_ITEM
|
2015-11-25 07:16:29 -08:00
|
|
|
waitsfx
|
2013-02-16 22:54:07 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.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
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.TrashEmpty:
|
2015-06-23 14:02:58 -07:00
|
|
|
jumpstd trashcan
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
ChefText_Eatathon:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Hi!"
|
|
|
|
|
|
|
|
para "We're holding an"
|
|
|
|
line "eatathon contest."
|
|
|
|
|
|
|
|
para "We can't serve you"
|
|
|
|
line "right now. Sorry."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
Fisher1Text_Snarfle:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "…Snarfle, chew…"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
Fisher1Text_Concentration:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Don't talk to me!"
|
|
|
|
|
|
|
|
para "You'll break my"
|
|
|
|
line "concentration!"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
Fisher2Text_GulpChew:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "…Gulp… Chew…"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
Fisher2Text_Quantity:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "I take quantity"
|
|
|
|
line "over quality!"
|
|
|
|
|
|
|
|
para "I'm happy when I'm"
|
|
|
|
line "full!"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
Fisher3Text_MunchMunch:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Munch, munch…"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
Fisher3Text_GoldenrodIsBest:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "The food is good"
|
|
|
|
line "here, but GOLDEN-"
|
|
|
|
cont "ROD has the best"
|
|
|
|
cont "food anywhere."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
TeacherText_CrunchCrunch:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Crunch… Crunch…"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
TeacherText_NoCoinCase:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Nobody here will"
|
|
|
|
line "give you a COIN"
|
|
|
|
|
|
|
|
para "CASE. You should"
|
|
|
|
line "look in JOHTO."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
TeacherText_KeepEating:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Crunch… Crunch…"
|
|
|
|
|
|
|
|
para "I can keep eating!"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-10-25 22:59:28 -07:00
|
|
|
TeacherText_MoreChef:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "More, CHEF!"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-06-25 21:01:08 -07:00
|
|
|
EatathonContestPosterText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Eatathon Contest!"
|
|
|
|
line "No time limit!"
|
|
|
|
|
|
|
|
para "A battle without"
|
|
|
|
line "end! The biggest"
|
|
|
|
|
|
|
|
para "muncher gets it"
|
|
|
|
line "all for free!"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-06-25 21:01:08 -07:00
|
|
|
FoundLeftoversText:
|
2015-06-27 21:59:17 -07:00
|
|
|
text "<PLAYER> found"
|
2014-03-05 21:29:44 -08:00
|
|
|
line "@"
|
2015-02-10 15:37:24 -08:00
|
|
|
text_from_ram StringBuffer3
|
2014-03-05 21:29:44 -08:00
|
|
|
text "!"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-06-25 21:01:08 -07:00
|
|
|
NoRoomForLeftoversText:
|
2015-06-27 21:59:17 -07:00
|
|
|
text "But <PLAYER> can't"
|
2014-03-05 21:29:44 -08:00
|
|
|
line "hold another item…"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-16 19:57:19 -08:00
|
|
|
CeladonCafe_MapEvents:
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0, 0 ; filler
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0 ; coord events
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
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
|