pokecrystal-board/maps/CeladonGameCorner.asm

348 lines
9.0 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const CELADONGAMECORNER_CLERK
const CELADONGAMECORNER_RECEPTIONIST
const CELADONGAMECORNER_POKEFAN_M
const CELADONGAMECORNER_TEACHER
const CELADONGAMECORNER_FISHING_GURU
const CELADONGAMECORNER_FISHER1
const CELADONGAMECORNER_FISHER2
const CELADONGAMECORNER_GYM_GUY
const CELADONGAMECORNER_GRAMPS
2015-07-10 01:45:35 -07:00
CeladonGameCorner_MapScriptHeader:
.MapTriggers:
db 0
.MapCallbacks:
db 0
2017-12-17 17:45:04 -08:00
CeladonGameCornerClerkScript:
jumpstd gamecornercoinvendor
2017-12-17 16:48:04 -08:00
CeladonGameCornerReceptionistScript:
jumptextfaceplayer CeladonGameCornerReceptionistText
2017-12-17 17:45:04 -08:00
CeladonGameCornerPokefanMScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2017-12-17 17:45:04 -08:00
writetext CeladonGameCornerPokefanMText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
spriteface CELADONGAMECORNER_POKEFAN_M, LEFT
end
2017-12-17 17:45:04 -08:00
CeladonGameCornerTeacherScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2017-12-17 17:45:04 -08:00
writetext CeladonGameCornerTeacherText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
spriteface CELADONGAMECORNER_TEACHER, RIGHT
end
2017-12-17 17:45:04 -08:00
CeladonGameCornerFishingGuruScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2017-12-17 17:45:04 -08:00
writetext CeladonGameCornerFishingGuruText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
spriteface CELADONGAMECORNER_FISHING_GURU, RIGHT
end
2017-12-17 17:45:04 -08:00
CeladonGameCornerFisherScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_COINS_FROM_GAMBLER_AT_CELADON
2017-12-17 17:45:04 -08:00
iftrue .GotCoins
writetext CeladonGameCornerFisherText1
2015-11-29 19:29:45 -08:00
buttonsound
checkitem COIN_CASE
2017-12-17 17:45:04 -08:00
iffalse .NoCoinCase
checkcoins 9998
2017-12-17 17:45:04 -08:00
if_equal $0, .FullCoinCase
stringtotext .coinname, $1
2017-12-17 17:45:04 -08:00
scall .GiveCoins
givecoins 18
2013-09-24 00:48:58 -07:00
setevent EVENT_GOT_COINS_FROM_GAMBLER_AT_CELADON
2017-12-17 17:45:04 -08:00
.GotCoins:
writetext CeladonGameCornerFisherText2
2015-11-25 07:16:29 -08:00
waitbutton
closetext
spriteface LAST_TALKED, LEFT
end
2017-12-17 17:45:04 -08:00
.GiveCoins:
jumpstd receiveitem
end
2015-07-10 01:45:35 -07:00
.coinname
db "COIN@"
2017-12-17 17:45:04 -08:00
.NoCoinCase:
writetext CeladonGameCornerFisherNoCoinCaseText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
spriteface LAST_TALKED, LEFT
end
2017-12-17 17:45:04 -08:00
.FullCoinCase:
writetext CeladonGameCornerFisherFullCoinCaseText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
spriteface LAST_TALKED, LEFT
end
2015-07-10 01:45:35 -07:00
CeladonGymGuyScript:
jumptextfaceplayer CeladonGymGuyText
2017-12-17 17:45:04 -08:00
CeladonGameCornerGrampsScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2017-12-17 17:45:04 -08:00
writetext CeladonGameCornerGrampsText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
spriteface CELADONGAMECORNER_GRAMPS, LEFT
end
2017-12-17 17:45:04 -08:00
CeladonGameCornerPoster1Script:
jumptext CeladonGameCornerPoster1Text
2017-12-17 17:45:04 -08:00
CeladonGameCornerPoster2Script:
jumptext CeladonGameCornerPoster2Text
2017-12-17 17:45:04 -08:00
CeladonGameCornerLuckySlotMachineScript:
random $6
2017-12-17 17:45:04 -08:00
if_equal $0, CeladonGameCornerSlotMachineScript
refreshscreen $0
writebyte $0
special Special_SlotMachine
2015-11-25 07:16:29 -08:00
closetext
end
2017-12-17 17:45:04 -08:00
CeladonGameCornerSlotMachineScript:
refreshscreen $0
writebyte $1
special Special_SlotMachine
2015-11-25 07:16:29 -08:00
closetext
end
2017-12-17 17:45:04 -08:00
CeladonGameCornerCardFlipScript:
refreshscreen $0
special Special_CardFlip
2015-11-25 07:16:29 -08:00
closetext
end
2017-12-17 17:45:04 -08:00
CeladonGameCornerLighterScript:
jumptext CeladonGameCornerLighterText
2015-07-10 01:45:35 -07:00
MapCeladonGameCornerSignpost9Script:
2015-12-09 15:25:44 -08:00
opentext
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x72567
2015-11-25 07:16:29 -08:00
waitbutton
special Special_CardFlip
2015-11-25 07:16:29 -08:00
closetext
end
2015-07-10 01:45:35 -07:00
MovementData_0x721cd:
; Unreferenced.
2016-05-14 10:46:14 -07:00
step RIGHT
turn_head LEFT
step_end
2017-12-17 16:48:04 -08:00
CeladonGameCornerReceptionistText:
text "Welcome!"
para "You may exchange"
line "your coins for"
para "fabulous prizes"
line "next door."
done
2017-12-17 17:45:04 -08:00
CeladonGameCornerPokefanMText:
text "The slot machines"
line "are all state of"
cont "the art."
done
2017-12-17 17:45:04 -08:00
CeladonGameCornerTeacherText:
text "It's this machine"
line "I want."
para "It cleaned me out"
line "yesterday, so it"
para "should pay out"
line "today."
done
2017-12-17 17:45:04 -08:00
CeladonGameCornerFishingGuruText:
text "I think this slot"
line "machine will pay"
cont "out…"
para "The odds vary"
line "among machines."
done
2017-12-17 17:45:04 -08:00
CeladonGameCornerFisherText1:
text "Gahahaha!"
para "The coins just"
line "keep popping out!"
para "Hm? What, kid? You"
line "want to play?"
para "I'll share my luck"
line "with you!"
done
2017-12-17 17:45:04 -08:00
CeladonGameCornerFisherText2:
text "Gahahaha!"
para "It makes me feel"
line "good to do nice"
para "things for other"
line "people!"
done
2017-12-17 17:45:04 -08:00
CeladonGameCornerFisherNoCoinCaseText:
text "Hey, you don't"
line "have a COIN CASE."
para "How am I supposed"
line "to give you any"
cont "coins, kid?"
done
2017-12-17 17:45:04 -08:00
CeladonGameCornerFisherFullCoinCaseText:
text "Hey, your COIN"
line "CASE is full, kid."
para "You must be riding"
line "a winning streak"
cont "too."
done
2015-07-10 01:45:35 -07:00
CeladonGymGuyText:
text "Hey! CHAMP in"
line "making!"
para "Are you playing"
line "the slots too?"
para "I'm trying to get"
line "enough coins for a"
cont "prize #MON."
para "But I don't have"
line "enough coins yet…"
done
2017-12-17 17:45:04 -08:00
CeladonGameCornerGrampsText:
text "Hmmm… The odds are"
line "surely better for"
para "PIKACHU's line,"
line "but… What to do?"
done
2017-12-17 17:45:04 -08:00
CeladonGameCornerPoster1Text:
text "Hey!"
para "Underneath this"
line "poster…"
para "There's nothing!"
done
2017-12-17 17:45:04 -08:00
CeladonGameCornerPoster2Text:
text "Hey!"
para "Underneath this"
line "poster…"
para "There's nothing!"
done
2017-12-17 17:45:04 -08:00
CeladonGameCornerLighterText:
text "There's a lighter"
line "here."
done
2015-07-10 01:45:35 -07:00
UnknownText_0x72567:
text "A can of soda…"
para "Someone must be"
line "coming back…"
para "Huh? It's empty!"
done
2015-07-10 01:45:35 -07:00
CeladonGameCorner_MapEventHeader:
; filler
db 0, 0
.Warps:
db 2
warp_def $d, $e, 6, CELADON_CITY
warp_def $d, $f, 6, CELADON_CITY
.XYTriggers:
db 0
.Signposts:
db 38
2017-12-17 17:45:04 -08:00
signpost 6, 1, SIGNPOST_READ, CeladonGameCornerCardFlipScript
signpost 7, 1, SIGNPOST_READ, CeladonGameCornerCardFlipScript
signpost 8, 1, SIGNPOST_READ, CeladonGameCornerCardFlipScript
signpost 9, 1, SIGNPOST_READ, CeladonGameCornerCardFlipScript
signpost 10, 1, SIGNPOST_READ, CeladonGameCornerCardFlipScript
signpost 11, 1, SIGNPOST_LEFT, CeladonGameCornerCardFlipScript
signpost 6, 6, SIGNPOST_READ, CeladonGameCornerCardFlipScript
signpost 7, 6, SIGNPOST_READ, CeladonGameCornerCardFlipScript
signpost 8, 6, SIGNPOST_READ, CeladonGameCornerCardFlipScript
signpost 9, 6, SIGNPOST_READ, MapCeladonGameCornerSignpost9Script
2017-12-17 17:45:04 -08:00
signpost 10, 6, SIGNPOST_READ, CeladonGameCornerCardFlipScript
signpost 11, 6, SIGNPOST_RIGHT, CeladonGameCornerCardFlipScript
signpost 6, 7, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 7, 7, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 8, 7, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 9, 7, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 10, 7, SIGNPOST_READ, CeladonGameCornerSlotMachineScript
signpost 11, 7, SIGNPOST_LEFT, CeladonGameCornerLuckySlotMachineScript
signpost 6, 12, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 7, 12, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 8, 12, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 9, 12, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 10, 12, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 11, 12, SIGNPOST_RIGHT, CeladonGameCornerLuckySlotMachineScript
signpost 6, 13, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 7, 13, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 8, 13, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 9, 13, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 10, 13, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 11, 13, SIGNPOST_LEFT, CeladonGameCornerLuckySlotMachineScript
signpost 6, 18, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 7, 18, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 8, 18, SIGNPOST_READ, CeladonGameCornerLighterScript
signpost 9, 18, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 10, 18, SIGNPOST_READ, CeladonGameCornerLuckySlotMachineScript
signpost 11, 18, SIGNPOST_RIGHT, CeladonGameCornerLuckySlotMachineScript
signpost 0, 15, SIGNPOST_READ, CeladonGameCornerPoster1Script
signpost 0, 9, SIGNPOST_READ, CeladonGameCornerPoster2Script
.PersonEvents:
db 9
2017-12-17 17:45:04 -08:00
person_event SPRITE_CLERK, 2, 5, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, PERSONTYPE_SCRIPT, 0, CeladonGameCornerClerkScript, -1
2017-12-17 16:48:04 -08:00
person_event SPRITE_RECEPTIONIST, 2, 3, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, PERSONTYPE_SCRIPT, 0, CeladonGameCornerReceptionistScript, -1
2017-12-17 17:45:04 -08:00
person_event SPRITE_POKEFAN_M, 10, 14, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_RED, PERSONTYPE_SCRIPT, 0, CeladonGameCornerPokefanMScript, -1
person_event SPRITE_TEACHER, 7, 17, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, PERSONTYPE_SCRIPT, 0, CeladonGameCornerTeacherScript, -1
person_event SPRITE_FISHING_GURU, 7, 11, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_GREEN, PERSONTYPE_SCRIPT, 0, CeladonGameCornerFishingGuruScript, -1
person_event SPRITE_FISHER, 10, 8, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, DAY, PAL_NPC_RED, PERSONTYPE_SCRIPT, 0, CeladonGameCornerFisherScript, -1
person_event SPRITE_FISHER, 10, 8, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, NITE, PAL_NPC_RED, PERSONTYPE_SCRIPT, 0, CeladonGameCornerFisherScript, -1
2017-12-10 17:50:08 -08:00
person_event SPRITE_GYM_GUY, 3, 11, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, PERSONTYPE_SCRIPT, 0, CeladonGymGuyScript, -1
2017-12-17 17:45:04 -08:00
person_event SPRITE_GRAMPS, 8, 2, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_GREEN, PERSONTYPE_SCRIPT, 0, CeladonGameCornerGrampsScript, -1