pokecrystal/maps/NationalPark.asm

546 lines
12 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 NATIONALPARK_LASS1
const NATIONALPARK_POKEFAN_F1
const NATIONALPARK_TEACHER1
const NATIONALPARK_YOUNGSTER1
const NATIONALPARK_YOUNGSTER2
const NATIONALPARK_TEACHER2
2016-04-07 10:13:59 +00:00
const NATIONALPARK_PERSIAN
2015-11-27 05:22:14 +00:00
const NATIONALPARK_YOUNGSTER3
const NATIONALPARK_POKEFAN_F2
const NATIONALPARK_POKEFAN_M
const NATIONALPARK_LASS2
const NATIONALPARK_POKE_BALL1
const NATIONALPARK_GAMEBOY_KID
const NATIONALPARK_POKE_BALL2
NationalPark_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
2017-12-18 00:48:04 +00:00
NationalParkLassScript:
jumptextfaceplayer NationalParkLassText
2017-12-18 00:48:04 +00:00
NationalParkPokefanFScript:
jumptextfaceplayer NationalParkPokefanFText
2018-03-01 19:20:27 +00:00
NationalParkTeacher1Script:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_QUICK_CLAW
2018-03-01 19:20:27 +00:00
iftrue .GotQuickClaw
writetext NationalParkTeacher1Text
2015-11-30 03:29:45 +00:00
buttonsound
2015-11-05 01:20:14 +00:00
verbosegiveitem QUICK_CLAW
2018-03-01 19:20:27 +00:00
iffalse .NoRoom
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_QUICK_CLAW
2018-03-01 19:20:27 +00:00
.GotQuickClaw:
writetext NationalParkTeacher1Text_GotQuickClaw
2015-11-25 15:16:29 +00:00
waitbutton
2018-03-01 19:20:27 +00:00
.NoRoom:
2015-11-25 15:16:29 +00:00
closetext
end
2017-12-18 00:48:04 +00:00
NationalParkYoungster1Script:
jumptextfaceplayer NationalParkYoungster1Text
2017-12-18 00:48:04 +00:00
NationalParkYoungster2Script:
jumptextfaceplayer NationalParkYoungster2Text
2018-03-01 19:20:27 +00:00
NationalParkTeacher2Script:
jumptextfaceplayer NationalParkTeacher2Text
2016-04-07 10:13:59 +00:00
NationalParkPersian:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2016-04-07 10:13:59 +00:00
writetext NationalParkPersianText
cry PERSIAN
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-03-01 19:20:27 +00:00
NationalParkGameboyKidScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2018-03-01 19:20:27 +00:00
writetext NationalParkGameboyKidText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
turnobject NATIONALPARK_GAMEBOY_KID, DOWN
end
2015-07-10 08:20:21 +00:00
TrainerSchoolboyJack1:
trainer SCHOOLBOY, JACK1, EVENT_BEAT_SCHOOLBOY_JACK, SchoolboyJack1SeenText, SchoolboyJack1BeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
writecode VAR_CALLERID, PHONE_SCHOOLBOY_JACK
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_JACK
2018-03-01 19:20:27 +00:00
iftrue .Rematch
checkcellnum PHONE_SCHOOLBOY_JACK
2018-03-01 19:20:27 +00:00
iftrue .NumberAccepted
checkevent EVENT_JACK_ASKED_FOR_PHONE_NUMBER
2018-03-01 19:20:27 +00:00
iftrue .AskAgain
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x5c4f3
2015-11-30 03:29:45 +00:00
buttonsound
setevent EVENT_JACK_ASKED_FOR_PHONE_NUMBER
2018-03-01 19:20:27 +00:00
scall .AskNumber1
jump .RequestNumber
2018-03-01 19:20:27 +00:00
.AskAgain:
scall .AskNumber2
.RequestNumber:
askforphonenumber PHONE_SCHOOLBOY_JACK
2018-03-01 19:20:27 +00:00
ifequal PHONE_CONTACTS_FULL, .PhoneFull
ifequal PHONE_CONTACT_REFUSED, .NumberDeclined
2018-01-12 06:40:20 +00:00
trainertotext SCHOOLBOY, JACK1, MEM_BUFFER_0
2018-03-01 19:20:27 +00:00
scall .RegisteredNumber
jump .NumberAccepted
2018-03-01 19:20:27 +00:00
.Rematch:
scall .RematchStd
2015-11-02 19:37:02 +00:00
winlosstext SchoolboyJack1BeatenText, 0
2015-07-10 20:04:00 +00:00
copybytetovar wJackFightCount
2018-02-03 02:09:17 +00:00
ifequal 4, .Fight4
ifequal 3, .Fight3
ifequal 2, .Fight2
ifequal 1, .Fight1
ifequal 0, .LoadFight0
.Fight4:
2013-09-24 07:48:58 +00:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight4
.Fight3:
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight3
.Fight2:
2013-09-24 07:48:58 +00:00
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .LoadFight2
.Fight1:
checkflag ENGINE_FLYPOINT_OLIVINE
iftrue .LoadFight1
.LoadFight0:
loadtrainer SCHOOLBOY, JACK1
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wJackFightCount, 1
clearflag ENGINE_JACK
end
.LoadFight1:
loadtrainer SCHOOLBOY, JACK2
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wJackFightCount, 2
clearflag ENGINE_JACK
end
.LoadFight2:
loadtrainer SCHOOLBOY, JACK3
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wJackFightCount, 3
clearflag ENGINE_JACK
end
.LoadFight3:
loadtrainer SCHOOLBOY, JACK4
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wJackFightCount, 4
clearflag ENGINE_JACK
end
.LoadFight4:
loadtrainer SCHOOLBOY, JACK5
startbattle
reloadmapafterbattle
clearflag ENGINE_JACK
end
2018-03-01 19:20:27 +00:00
.AskNumber1:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1m
end
2018-03-01 19:20:27 +00:00
.AskNumber2:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2m
end
2018-03-01 19:20:27 +00:00
.RegisteredNumber:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberm
end
2018-03-01 19:20:27 +00:00
.NumberAccepted:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedm
end
2018-03-01 19:20:27 +00:00
.NumberDeclined:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedm
end
2018-03-01 19:20:27 +00:00
.PhoneFull:
2015-06-25 01:26:24 +00:00
jumpstd phonefullm
end
2018-03-01 19:20:27 +00:00
.RematchStd:
2015-06-25 01:26:24 +00:00
jumpstd rematchm
end
2015-07-10 08:20:21 +00:00
TrainerPokefanmWilliam:
trainer POKEFANM, WILLIAM, EVENT_BEAT_POKEFANM_WILLIAM, PokefanmWilliamSeenText, PokefanmWilliamBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext PokefanmWilliamAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerPokefanfBeverly1:
trainer POKEFANF, BEVERLY1, EVENT_BEAT_POKEFANF_BEVERLY, PokefanfBeverly1SeenText, PokefanfBeverly1BeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
writecode VAR_CALLERID, PHONE_POKEFAN_BEVERLY
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_BEVERLY_HAS_NUGGET
2018-03-01 19:20:27 +00:00
iftrue .GiveNugget
checkcellnum PHONE_POKEFAN_BEVERLY
2018-03-01 19:20:27 +00:00
iftrue .NumberAccepted
checkpoke MARILL
2018-03-01 19:20:27 +00:00
iffalse .NoMarill
2015-07-10 12:08:03 +00:00
checkevent EVENT_BEVERLY_ASKED_FOR_PHONE_NUMBER
2018-03-01 19:20:27 +00:00
iftrue .AskAgain
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x5c5bd
2015-11-30 03:29:45 +00:00
buttonsound
2015-07-10 12:08:03 +00:00
setevent EVENT_BEVERLY_ASKED_FOR_PHONE_NUMBER
2018-03-01 19:20:27 +00:00
scall .AskNumber1
jump .RequestNumber
2018-03-01 19:20:27 +00:00
.AskAgain:
scall .AskNumber2
.RequestNumber:
askforphonenumber PHONE_POKEFAN_BEVERLY
2018-03-01 19:20:27 +00:00
ifequal PHONE_CONTACTS_FULL, .PhoneFull
ifequal PHONE_CONTACT_REFUSED, .NumberDeclined
2018-01-12 06:40:20 +00:00
trainertotext POKEFANF, BEVERLY1, MEM_BUFFER_0
2018-03-01 19:20:27 +00:00
scall .RegisteredNumber
jump .NumberAccepted
2018-03-01 19:20:27 +00:00
.GiveNugget:
scall .Gift
2015-11-05 01:20:14 +00:00
verbosegiveitem NUGGET
2018-03-01 19:20:27 +00:00
iffalse .NoRoom
clearflag ENGINE_BEVERLY_HAS_NUGGET
2018-03-01 19:20:27 +00:00
jump .NumberAccepted
2018-03-01 19:20:27 +00:00
.NoRoom:
jump .PackFull
2018-03-01 19:20:27 +00:00
.NoMarill:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x5c68a
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-03-01 19:20:27 +00:00
.AskNumber1:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1f
end
2018-03-01 19:20:27 +00:00
.AskNumber2:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2f
end
2018-03-01 19:20:27 +00:00
.RegisteredNumber:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberf
end
2018-03-01 19:20:27 +00:00
.NumberAccepted:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedf
end
2018-03-01 19:20:27 +00:00
.NumberDeclined:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedf
end
2018-03-01 19:20:27 +00:00
.PhoneFull:
2015-06-25 01:26:24 +00:00
jumpstd phonefullf
end
2018-03-01 19:20:27 +00:00
.Gift:
2015-06-25 01:26:24 +00:00
jumpstd giftf
end
2018-03-01 19:20:27 +00:00
.PackFull:
2015-06-25 01:26:24 +00:00
jumpstd packfullf
end
2015-07-10 08:20:21 +00:00
TrainerLassKrise:
trainer LASS, KRISE, EVENT_BEAT_LASS_KRISE, LassKriseSeenText, LassKriseBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext LassKriseAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
NationalParkRelaxationSquareSign:
jumptext NationalParkRelaxationSquareText
NationalParkBattleNoticeSign:
jumptext NationalParkBattleNoticeText
NationalParkTrainerTipsSign:
jumptext NationalParkTrainerTipsText
2015-12-15 15:55:56 +00:00
NationalParkParlyzHeal:
itemball PARLYZ_HEAL
2015-12-15 15:55:56 +00:00
NationalParkTMDig:
itemball TM_DIG
NationalParkHiddenFullHeal:
hiddenitem FULL_HEAL, EVENT_NATIONAL_PARK_HIDDEN_FULL_HEAL
2017-12-18 00:48:04 +00:00
NationalParkLassText:
text "Look! Check out my"
line "bag!"
para "I printed out my"
line "favorites from my"
para "#DEX and stuck"
line "them on my bag."
done
2017-12-18 00:48:04 +00:00
NationalParkPokefanFText:
text "This is MAIL I got"
line "from my daughter."
cont "It cheers me up."
done
2018-03-01 19:20:27 +00:00
NationalParkTeacher1Text:
text "Pay attention,"
line "please!"
para "…Oops, I have to"
line "quit thinking like"
para "a teacher all the"
line "time."
para "You must be a"
line "#MON trainer."
para "Since you're work-"
line "ing so hard, I"
para "want you to have"
line "this."
done
2018-03-01 19:20:27 +00:00
NationalParkTeacher1Text_GotQuickClaw:
text "Let a #MON hold"
line "that QUICK CLAW."
para "Sometimes it will"
line "strike first"
cont "during battle."
done
2017-12-18 00:48:04 +00:00
NationalParkYoungster1Text:
text "I'm playing with"
line "stickers I printed"
cont "from my #DEX."
done
2017-12-18 00:48:04 +00:00
NationalParkYoungster2Text:
text "I get the other"
line "guy's #DEX"
cont "sticker if I win."
done
2018-03-01 19:20:27 +00:00
NationalParkTeacher2Text:
text "I take walks in"
line "the PARK, but I"
para "never go into the"
line "grass."
para "Trainers always"
line "want to battle…"
done
2016-04-07 10:13:59 +00:00
NationalParkPersianText:
text "PERSIAN: Fufushaa!"
done
2018-03-01 19:20:27 +00:00
NationalParkGameboyKidText:
text "I'm printing out"
line "my #DEX."
para "You can also print"
line "out stuff like"
para "MAIL and your PC"
line "BOXES."
done
2015-07-10 08:20:21 +00:00
SchoolboyJack1SeenText:
text "The world of"
line "#MON is deep."
para "There are still"
line "lots of things we"
cont "don't know."
para "But I know more"
line "than you do!"
done
2015-07-10 08:20:21 +00:00
SchoolboyJack1BeatenText:
text "Wha-wha-what?"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x5c4f3:
text "There is a lot"
line "to learn."
para "For example…"
para "There are 50 kinds"
line "of TMs."
para "Traded #MON"
line "level up faster."
done
2015-07-10 08:20:21 +00:00
PokefanfBeverly1SeenText:
text "My #MON are"
line "simply darling."
para "Let me tell you"
line "how proud my"
cont "darlings make me."
done
2015-07-10 08:20:21 +00:00
PokefanfBeverly1BeatenText:
text "I can beat you in"
line "pride, but…"
done
2015-07-10 08:20:21 +00:00
UnknownText_0x5c5bd:
text "I must say, your"
line "#MON are quite"
cont "cute, too."
done
2015-07-10 08:20:21 +00:00
PokefanmWilliamSeenText:
text "We adore our #-"
line "MON, even if they"
cont "dislike us."
para "That's what being"
line "a FAN is about."
done
2015-07-10 08:20:21 +00:00
PokefanmWilliamBeatenText:
text "M-my #MON!"
done
2017-12-10 20:36:58 +00:00
PokefanmWilliamAfterBattleText:
text "I lost the battle,"
line "but my #MON win"
para "the prize for"
line "being most lovely."
done
2015-07-10 08:20:21 +00:00
UnknownText_0x5c68a:
text "My friend keeps a"
line "MARILL!"
para "I find them very"
line "endearing."
para "Oh, I wish for a"
line "MARILL of my own…"
done
2015-07-10 08:20:21 +00:00
LassKriseSeenText:
text "Hello? Why are you"
line "staring at me?"
para "Oh, a battle?"
done
2015-07-10 08:20:21 +00:00
LassKriseBeatenText:
text "…Hmmm…"
done
2017-12-10 20:36:58 +00:00
LassKriseAfterBattleText:
text "I thought you were"
line "staring at me"
cont "because I'm cute!"
done
NationalParkRelaxationSquareText:
text "RELAXATION SQUARE"
line "NATIONAL PARK"
done
NationalParkBattleNoticeText:
text "What is this"
line "notice?"
para "Please battle only"
line "in the grass."
para "NATIONAL PARK"
line "WARDEN'S OFFICE"
done
NationalParkTrainerTipsText:
text "TRAINER TIPS"
para "Print out MAIL by"
line "opening it then"
cont "pressing START."
done
NationalPark_MapEvents:
db 0, 0 ; filler
db 4 ; warp events
2018-02-02 02:54:00 +00:00
warp_event 33, 18, ROUTE_36_NATIONAL_PARK_GATE, 1
warp_event 33, 19, ROUTE_36_NATIONAL_PARK_GATE, 2
warp_event 10, 47, ROUTE_35_NATIONAL_PARK_GATE, 1
warp_event 11, 47, ROUTE_35_NATIONAL_PARK_GATE, 2
db 0 ; coord events
db 4 ; bg events
bg_event 14, 44, BGEVENT_READ, NationalParkRelaxationSquareSign
bg_event 27, 31, BGEVENT_READ, NationalParkBattleNoticeSign
2018-02-02 03:22:07 +00:00
bg_event 6, 47, BGEVENT_ITEM, NationalParkHiddenFullHeal
bg_event 12, 4, BGEVENT_READ, NationalParkTrainerTipsSign
db 14 ; object events
object_event 15, 24, SPRITE_LASS, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, NationalParkLassScript, -1
2018-02-02 03:22:07 +00:00
object_event 14, 4, SPRITE_POKEFAN_F, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, NationalParkPokefanFScript, -1
2018-03-01 19:20:27 +00:00
object_event 27, 40, SPRITE_TEACHER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, NationalParkTeacher1Script, -1
object_event 11, 41, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, NationalParkYoungster1Script, -1
object_event 10, 41, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, NationalParkYoungster2Script, -1
2018-03-01 19:20:27 +00:00
object_event 17, 41, SPRITE_TEACHER, SPRITEMOVEDATA_WANDER, 1, 2, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, NationalParkTeacher2Script, -1
object_event 26, 40, SPRITE_GROWLITHE, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, NationalParkPersian, -1
object_event 27, 23, SPRITE_YOUNGSTER, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerSchoolboyJack1, -1
object_event 18, 29, SPRITE_POKEFAN_F, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 2, TrainerPokefanfBeverly1, -1
2018-02-02 03:22:07 +00:00
object_event 16, 9, SPRITE_POKEFAN_M, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 2, TrainerPokefanmWilliam, -1
object_event 8, 14, SPRITE_LASS, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerLassKrise, -1
object_event 35, 12, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, NationalParkParlyzHeal, EVENT_NATIONAL_PARK_PARLYZ_HEAL
2018-03-01 19:20:27 +00:00
object_event 26, 6, SPRITE_GAMEBOY_KID, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, NationalParkGameboyKidScript, -1
2018-02-02 03:22:07 +00:00
object_event 1, 43, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, NationalParkTMDig, EVENT_NATIONAL_PARK_TM_DIG