pokecrystal-board/maps/CeladonCafe.asm
Remy Oukaour c05b7f41dd Renaming: (fix #412)
- MapTriggers / maptrigger → SceneScripts / scene_script
- XYTriggers / xy_trigger → CoordEvents / coord_event
- Signposts / signpost → BGEvents / bg_event
- PersonEvents / person_event → ObjectEvents / object_event
2017-12-24 14:33:17 -05:00

234 lines
4.2 KiB
NASM

const_value set 2
const CELADONCAFE_SUPER_NERD
const CELADONCAFE_FISHER1
const CELADONCAFE_FISHER2
const CELADONCAFE_FISHER3
const CELADONCAFE_TEACHER
CeladonCafe_MapScriptHeader:
.SceneScripts:
db 0
.MapCallbacks:
db 0
CeladonCafeChef:
faceplayer
opentext
writetext ChefText_Eatathon
waitbutton
closetext
end
CeladonCafeFisher1:
opentext
writetext Fisher1Text_Snarfle
waitbutton
closetext
faceplayer
opentext
writetext Fisher1Text_Concentration
waitbutton
closetext
spriteface CELADONCAFE_FISHER1, LEFT
end
CeladonCafeFisher2:
opentext
writetext Fisher2Text_GulpChew
waitbutton
closetext
faceplayer
opentext
writetext Fisher2Text_Quantity
waitbutton
closetext
spriteface CELADONCAFE_FISHER2, RIGHT
end
CeladonCafeFisher3:
opentext
writetext Fisher3Text_MunchMunch
waitbutton
closetext
faceplayer
opentext
writetext Fisher3Text_GoldenrodIsBest
waitbutton
closetext
spriteface CELADONCAFE_FISHER3, RIGHT
end
CeladonCafeTeacher:
checkitem COIN_CASE
iftrue .HasCoinCase
opentext
writetext TeacherText_CrunchCrunch
waitbutton
closetext
faceplayer
opentext
writetext TeacherText_NoCoinCase
waitbutton
closetext
spriteface CELADONCAFE_TEACHER, LEFT
end
.HasCoinCase:
opentext
writetext TeacherText_KeepEating
waitbutton
closetext
spriteface CELADONCAFE_TEACHER, RIGHT
opentext
writetext TeacherText_MoreChef
waitbutton
closetext
spriteface CELADONCAFE_TEACHER, LEFT
end
EatathonContestPoster:
jumptext EatathonContestPosterText
CeladonCafeTrashcan:
checkevent EVENT_FOUND_LEFTOVERS_IN_CELADON_CAFE
iftrue .TrashEmpty
giveitem LEFTOVERS
iffalse .PackFull
opentext
itemtotext LEFTOVERS, $0
writetext FoundLeftoversText
playsound SFX_ITEM
waitsfx
itemnotify
closetext
setevent EVENT_FOUND_LEFTOVERS_IN_CELADON_CAFE
end
.PackFull:
opentext
itemtotext LEFTOVERS, $0
writetext FoundLeftoversText
buttonsound
writetext NoRoomForLeftoversText
waitbutton
closetext
end
.TrashEmpty:
jumpstd trashcan
ChefText_Eatathon:
text "Hi!"
para "We're holding an"
line "eatathon contest."
para "We can't serve you"
line "right now. Sorry."
done
Fisher1Text_Snarfle:
text "…Snarfle, chew…"
done
Fisher1Text_Concentration:
text "Don't talk to me!"
para "You'll break my"
line "concentration!"
done
Fisher2Text_GulpChew:
text "…Gulp… Chew…"
done
Fisher2Text_Quantity:
text "I take quantity"
line "over quality!"
para "I'm happy when I'm"
line "full!"
done
Fisher3Text_MunchMunch:
text "Munch, munch…"
done
Fisher3Text_GoldenrodIsBest:
text "The food is good"
line "here, but GOLDEN-"
cont "ROD has the best"
cont "food anywhere."
done
TeacherText_CrunchCrunch:
text "Crunch… Crunch…"
done
TeacherText_NoCoinCase:
text "Nobody here will"
line "give you a COIN"
para "CASE. You should"
line "look in JOHTO."
done
TeacherText_KeepEating:
text "Crunch… Crunch…"
para "I can keep eating!"
done
TeacherText_MoreChef:
text "More, CHEF!"
done
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
FoundLeftoversText:
text "<PLAYER> found"
line "@"
text_from_ram StringBuffer3
text "!"
done
NoRoomForLeftoversText:
text "But <PLAYER> can't"
line "hold another item…"
done
CeladonCafe_MapEventHeader:
; filler
db 0, 0
.Warps:
db 2
warp_def $7, $6, 9, CELADON_CITY
warp_def $7, $7, 9, CELADON_CITY
.CoordEvents:
db 0
.BGEvents:
db 2
bg_event 0, 5, BGEVENT_READ, EatathonContestPoster
bg_event 1, 7, BGEVENT_READ, CeladonCafeTrashcan
.ObjectEvents:
db 5
object_event SPRITE_SUPER_NERD, 3, 9, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, CeladonCafeChef, -1
object_event SPRITE_FISHER, 6, 4, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CeladonCafeFisher1, -1
object_event SPRITE_FISHER, 7, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, CeladonCafeFisher2, -1
object_event SPRITE_FISHER, 2, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CeladonCafeFisher3, -1
object_event SPRITE_TEACHER, 3, 4, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CeladonCafeTeacher, -1