pokecrystal/maps/CeladonCafe.asm

227 lines
4.3 KiB
NASM
Raw Normal View History

2018-01-31 16:38:45 +00:00
const_def 2 ; object 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
CeladonCafe_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
2017-10-26 05:59:28 +00:00
CeladonCafeChef:
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
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
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
closetext
objectface CELADONCAFE_FISHER1, LEFT
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
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
closetext
objectface CELADONCAFE_FISHER2, RIGHT
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
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
closetext
objectface CELADONCAFE_FISHER3, RIGHT
end
2017-10-26 05:59:28 +00:00
CeladonCafeTeacher:
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
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
closetext
objectface CELADONCAFE_TEACHER, LEFT
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
closetext
objectface 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
closetext
objectface CELADONCAFE_TEACHER, LEFT
end
2015-06-26 04:01:08 +00:00
EatathonContestPoster:
jumptext EatathonContestPosterText
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
2018-01-12 06:40:20 +00:00
itemtotext LEFTOVERS, MEM_BUFFER_0
2015-06-26 04:01:08 +00:00
writetext FoundLeftoversText
playsound SFX_ITEM
2015-11-25 15:16:29 +00:00
waitsfx
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
end
.PackFull:
2015-12-09 23:25:44 +00:00
opentext
2018-01-12 06:40:20 +00:00
itemtotext LEFTOVERS, MEM_BUFFER_0
2015-06-26 04:01:08 +00:00
writetext FoundLeftoversText
2015-11-30 03:29:45 +00:00
buttonsound
2015-06-26 04:01:08 +00:00
writetext NoRoomForLeftoversText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
.TrashEmpty:
2015-06-23 21:02:58 +00:00
jumpstd trashcan
2017-10-26 05:59:28 +00: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-26 05:59:28 +00:00
Fisher1Text_Snarfle:
text "…Snarfle, chew…"
done
2017-10-26 05:59:28 +00:00
Fisher1Text_Concentration:
text "Don't talk to me!"
para "You'll break my"
line "concentration!"
done
2017-10-26 05:59:28 +00:00
Fisher2Text_GulpChew:
text "…Gulp… Chew…"
done
2017-10-26 05:59:28 +00:00
Fisher2Text_Quantity:
text "I take quantity"
line "over quality!"
para "I'm happy when I'm"
line "full!"
done
2017-10-26 05:59:28 +00:00
Fisher3Text_MunchMunch:
text "Munch, munch…"
done
2017-10-26 05:59:28 +00:00
Fisher3Text_GoldenrodIsBest:
text "The food is good"
line "here, but GOLDEN-"
cont "ROD has the best"
cont "food anywhere."
done
2017-10-26 05:59:28 +00:00
TeacherText_CrunchCrunch:
text "Crunch… Crunch…"
done
2017-10-26 05:59:28 +00:00
TeacherText_NoCoinCase:
text "Nobody here will"
line "give you a COIN"
para "CASE. You should"
line "look in JOHTO."
done
2017-10-26 05:59:28 +00:00
TeacherText_KeepEating:
text "Crunch… Crunch…"
para "I can keep eating!"
done
2017-10-26 05:59:28 +00:00
TeacherText_MoreChef:
text "More, CHEF!"
done
2015-06-26 04:01:08 +00: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-26 04:01:08 +00:00
FoundLeftoversText:
text "<PLAYER> found"
line "@"
2018-01-23 22:39:09 +00:00
text_from_ram wStringBuffer3
text "!"
done
2015-06-26 04:01:08 +00:00
NoRoomForLeftoversText:
text "But <PLAYER> can't"
line "hold another item…"
done
CeladonCafe_MapEvents:
db 0, 0 ; filler
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
db 0 ; coord events
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
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