pokecrystal/maps/CeladonCafe.asm

234 lines
4.2 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const CELADONCAFE_SUPER_NERD
const CELADONCAFE_FISHER1
const CELADONCAFE_FISHER2
const CELADONCAFE_FISHER3
const CELADONCAFE_TEACHER
2015-07-10 08:45:35 +00:00
CeladonCafe_MapScriptHeader:
.MapTriggers:
db 0
.MapCallbacks:
db 0
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
2015-11-27 05:22:14 +00:00
spriteface 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
2015-11-27 05:22:14 +00:00
spriteface 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
2015-11-27 05:22:14 +00:00
spriteface 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
2015-11-27 05:22:14 +00:00
spriteface 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
2015-11-27 05:22:14 +00:00
spriteface 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
2015-11-27 05:22:14 +00:00
spriteface 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
itemtotext LEFTOVERS, $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
itemtotext LEFTOVERS, $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 "@"
2015-02-10 23:37:24 +00:00
text_from_ram StringBuffer3
text "!"
done
2015-06-26 04:01:08 +00:00
NoRoomForLeftoversText:
text "But <PLAYER> can't"
line "hold another item…"
done
2015-07-10 08:45:35 +00:00
CeladonCafe_MapEventHeader:
; filler
db 0, 0
.Warps:
db 2
warp_def $7, $6, 9, CELADON_CITY
warp_def $7, $7, 9, CELADON_CITY
.XYTriggers:
db 0
.Signposts:
db 2
signpost 0, 5, SIGNPOST_READ, EatathonContestPoster
signpost 1, 7, SIGNPOST_READ, CeladonCafeTrashcan
.PersonEvents:
db 5
2017-10-26 05:59:28 +00:00
person_event SPRITE_SUPER_NERD, 3, 9, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, (1 << 3) | PAL_OW_BROWN, PERSONTYPE_SCRIPT, 0, CeladonCafeChef, -1
person_event SPRITE_FISHER, 6, 4, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, CeladonCafeFisher1, -1
person_event SPRITE_FISHER, 7, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, CeladonCafeFisher2, -1
person_event SPRITE_FISHER, 2, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, CeladonCafeFisher3, -1
person_event SPRITE_TEACHER, 3, 4, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, CeladonCafeTeacher, -1