2019-04-21 21:42:25 +00:00
|
|
|
object_const_def ; object_event constants
|
2015-11-27 05:22:14 +00:00
|
|
|
const CELADONCAFE_SUPER_NERD
|
|
|
|
const CELADONCAFE_FISHER1
|
|
|
|
const CELADONCAFE_FISHER2
|
|
|
|
const CELADONCAFE_FISHER3
|
|
|
|
const CELADONCAFE_TEACHER
|
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
CeladonCafe_MapScripts:
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0 ; scene scripts
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0 ; callbacks
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
CeladonCafeChef:
|
2013-02-17 06:54:07 +00:00
|
|
|
faceplayer
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-10-26 05:59:28 +00:00
|
|
|
writetext ChefText_Eatathon
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
CeladonCafeFisher1:
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-10-26 05:59:28 +00:00
|
|
|
writetext Fisher1Text_Snarfle
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
faceplayer
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-10-26 05:59:28 +00:00
|
|
|
writetext Fisher1Text_Concentration
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2018-02-26 01:05:37 +00:00
|
|
|
turnobject CELADONCAFE_FISHER1, LEFT
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
CeladonCafeFisher2:
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-10-26 05:59:28 +00:00
|
|
|
writetext Fisher2Text_GulpChew
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
faceplayer
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-10-26 05:59:28 +00:00
|
|
|
writetext Fisher2Text_Quantity
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2018-02-26 01:05:37 +00:00
|
|
|
turnobject CELADONCAFE_FISHER2, RIGHT
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
CeladonCafeFisher3:
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-10-26 05:59:28 +00:00
|
|
|
writetext Fisher3Text_MunchMunch
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
faceplayer
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-10-26 05:59:28 +00:00
|
|
|
writetext Fisher3Text_GoldenrodIsBest
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2018-02-26 01:05:37 +00:00
|
|
|
turnobject CELADONCAFE_FISHER3, RIGHT
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
CeladonCafeTeacher:
|
2013-02-17 06:54:07 +00:00
|
|
|
checkitem COIN_CASE
|
2017-10-26 05:59:28 +00:00
|
|
|
iftrue .HasCoinCase
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-10-26 05:59:28 +00:00
|
|
|
writetext TeacherText_CrunchCrunch
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
faceplayer
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-10-26 05:59:28 +00:00
|
|
|
writetext TeacherText_NoCoinCase
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2018-02-26 01:05:37 +00:00
|
|
|
turnobject CELADONCAFE_TEACHER, LEFT
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
.HasCoinCase:
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-10-26 05:59:28 +00:00
|
|
|
writetext TeacherText_KeepEating
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2018-02-26 01:05:37 +00:00
|
|
|
turnobject CELADONCAFE_TEACHER, RIGHT
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-10-26 05:59:28 +00:00
|
|
|
writetext TeacherText_MoreChef
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2018-02-26 01:05:37 +00:00
|
|
|
turnobject CELADONCAFE_TEACHER, LEFT
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-06-26 04:01:08 +00:00
|
|
|
EatathonContestPoster:
|
|
|
|
jumptext EatathonContestPosterText
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-06-26 04:01:08 +00:00
|
|
|
CeladonCafeTrashcan:
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_FOUND_LEFTOVERS_IN_CELADON_CAFE
|
2015-06-26 04:01:08 +00:00
|
|
|
iftrue .TrashEmpty
|
2015-11-05 01:20:14 +00:00
|
|
|
giveitem LEFTOVERS
|
2015-06-26 04:01:08 +00:00
|
|
|
iffalse .PackFull
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2019-03-10 19:31:59 +00:00
|
|
|
getitemname STRING_BUFFER_3, LEFTOVERS
|
2015-06-26 04:01:08 +00:00
|
|
|
writetext FoundLeftoversText
|
2014-04-30 10:04:35 +00:00
|
|
|
playsound SFX_ITEM
|
2015-11-25 15:16:29 +00:00
|
|
|
waitsfx
|
2013-02-17 06:54:07 +00:00
|
|
|
itemnotify
|
2015-11-25 15:16:29 +00:00
|
|
|
closetext
|
2013-09-24 07:48:58 +00:00
|
|
|
setevent EVENT_FOUND_LEFTOVERS_IN_CELADON_CAFE
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2016-04-10 18:42:14 +00:00
|
|
|
.PackFull:
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2019-03-10 19:31:59 +00:00
|
|
|
getitemname STRING_BUFFER_3, LEFTOVERS
|
2015-06-26 04:01:08 +00:00
|
|
|
writetext FoundLeftoversText
|
2019-11-03 17:48:54 +00:00
|
|
|
promptbutton
|
2015-06-26 04:01:08 +00:00
|
|
|
writetext NoRoomForLeftoversText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2016-04-10 18:42:14 +00:00
|
|
|
.TrashEmpty:
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd TrashCanScript
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
ChefText_Eatathon:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Hi!"
|
|
|
|
|
|
|
|
para "We're holding an"
|
|
|
|
line "eatathon contest."
|
|
|
|
|
|
|
|
para "We can't serve you"
|
|
|
|
line "right now. Sorry."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
Fisher1Text_Snarfle:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "…Snarfle, chew…"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
Fisher1Text_Concentration:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Don't talk to me!"
|
|
|
|
|
|
|
|
para "You'll break my"
|
|
|
|
line "concentration!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
Fisher2Text_GulpChew:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "…Gulp… Chew…"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
Fisher2Text_Quantity:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "I take quantity"
|
|
|
|
line "over quality!"
|
|
|
|
|
|
|
|
para "I'm happy when I'm"
|
|
|
|
line "full!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
Fisher3Text_MunchMunch:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Munch, munch…"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
Fisher3Text_GoldenrodIsBest:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "The food is good"
|
|
|
|
line "here, but GOLDEN-"
|
|
|
|
cont "ROD has the best"
|
|
|
|
cont "food anywhere."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
TeacherText_CrunchCrunch:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Crunch… Crunch…"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
TeacherText_NoCoinCase:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Nobody here will"
|
|
|
|
line "give you a COIN"
|
|
|
|
|
|
|
|
para "CASE. You should"
|
|
|
|
line "look in JOHTO."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
TeacherText_KeepEating:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Crunch… Crunch…"
|
|
|
|
|
|
|
|
para "I can keep eating!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-10-26 05:59:28 +00:00
|
|
|
TeacherText_MoreChef:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "More, CHEF!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-06-26 04:01:08 +00:00
|
|
|
EatathonContestPosterText:
|
2014-03-06 05:29:44 +00: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-17 06:54:07 +00:00
|
|
|
|
2015-06-26 04:01:08 +00:00
|
|
|
FoundLeftoversText:
|
2015-06-28 04:59:17 +00:00
|
|
|
text "<PLAYER> found"
|
2014-03-06 05:29:44 +00:00
|
|
|
line "@"
|
2018-11-17 18:33:03 +00:00
|
|
|
text_ram wStringBuffer3
|
2014-03-06 05:29:44 +00:00
|
|
|
text "!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-06-26 04:01:08 +00:00
|
|
|
NoRoomForLeftoversText:
|
2015-06-28 04:59:17 +00:00
|
|
|
text "But <PLAYER> can't"
|
2014-03-06 05:29:44 +00:00
|
|
|
line "hold another item…"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
CeladonCafe_MapEvents:
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0, 0 ; filler
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 2 ; warp events
|
2018-02-02 03:22:07 +00:00
|
|
|
warp_event 6, 7, CELADON_CITY, 9
|
|
|
|
warp_event 7, 7, CELADON_CITY, 9
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0 ; coord events
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 2 ; bg events
|
2018-02-02 03:22:07 +00:00
|
|
|
bg_event 5, 0, BGEVENT_READ, EatathonContestPoster
|
|
|
|
bg_event 7, 1, BGEVENT_READ, CeladonCafeTrashcan
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 5 ; object events
|
2018-02-02 03:22:07 +00: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
|