pokecrystal-board/maps/NationalPark.asm

554 lines
12 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const NATIONALPARK_LASS1
const NATIONALPARK_POKEFAN_F1
const NATIONALPARK_TEACHER1
const NATIONALPARK_YOUNGSTER1
const NATIONALPARK_YOUNGSTER2
const NATIONALPARK_TEACHER2
2016-04-07 03:13:59 -07:00
const NATIONALPARK_PERSIAN
2015-11-26 21:22:14 -08: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
2015-07-10 01:20:21 -07:00
NationalPark_MapScriptHeader:
.MapTriggers:
db 0
.MapCallbacks:
db 0
2015-07-10 01:20:21 -07:00
LassScript_0x5c002:
jumptextfaceplayer UnknownText_0x5c1d3
2015-07-10 01:20:21 -07:00
PokefanFScript_0x5c005:
jumptextfaceplayer UnknownText_0x5c22e
2015-07-10 01:20:21 -07:00
TeacherScript_0x5c008:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_QUICK_CLAW
iftrue UnknownScript_0x5c01d
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x5c265
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-04 17:20:14 -08:00
verbosegiveitem QUICK_CLAW
iffalse UnknownScript_0x5c021
2013-09-24 00:48:58 -07:00
setevent EVENT_GOT_QUICK_CLAW
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c01d:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x5c30d
2015-11-25 07:16:29 -08:00
waitbutton
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c021:
2015-11-25 07:16:29 -08:00
closetext
end
2015-07-10 01:20:21 -07:00
YoungsterScript_0x5c023:
jumptextfaceplayer UnknownText_0x5c35d
2015-07-10 01:20:21 -07:00
YoungsterScript_0x5c026:
jumptextfaceplayer UnknownText_0x5c38f
2015-07-10 01:20:21 -07:00
TeacherScript_0x5c029:
jumptextfaceplayer UnknownText_0x5c3bc
2016-04-07 03:13:59 -07:00
NationalParkPersian:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2016-04-07 03:13:59 -07:00
writetext NationalParkPersianText
cry PERSIAN
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
GameboyKidScript_0x5c037:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x5c42a
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
spriteface NATIONALPARK_GAMEBOY_KID, DOWN
end
2015-07-10 01:20:21 -07:00
TrainerSchoolboyJack1:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_SCHOOLBOY_JACK, SCHOOLBOY, JACK1, SchoolboyJack1SeenText, SchoolboyJack1BeatenText, 0, SchoolboyJack1Script
2015-07-10 01:20:21 -07:00
SchoolboyJack1Script:
writecode VAR_CALLERID, PHONE_SCHOOLBOY_JACK
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
checkflag ENGINE_JACK
iftrue UnknownScript_0x5c088
checkcellnum PHONE_SCHOOLBOY_JACK
iftrue UnknownScript_0x5c108
checkevent EVENT_JACK_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x5c071
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x5c4f3
2015-11-29 19:29:45 -08:00
buttonsound
setevent EVENT_JACK_ASKED_FOR_PHONE_NUMBER
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5c0fc
jump UnknownScript_0x5c074
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c071:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5c100
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c074:
askforphonenumber PHONE_SCHOOLBOY_JACK
if_equal $1, UnknownScript_0x5c110
if_equal $2, UnknownScript_0x5c10c
trainertotext SCHOOLBOY, JACK1, $0
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5c104
jump UnknownScript_0x5c108
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c088:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5c114
2015-11-02 11:37:02 -08:00
winlosstext SchoolboyJack1BeatenText, 0
2015-07-10 13:04:00 -07:00
copybytetovar wJackFightCount
if_equal 4, .Fight4
if_equal 3, .Fight3
if_equal 2, .Fight2
if_equal 1, .Fight1
if_equal 0, .LoadFight0
.Fight4:
2013-09-24 00:48:58 -07:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight4
.Fight3:
2015-06-24 20:20:04 -07:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight3
.Fight2:
2013-09-24 00:48:58 -07:00
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .LoadFight2
.Fight1:
checkflag ENGINE_FLYPOINT_OLIVINE
iftrue .LoadFight1
.LoadFight0:
loadtrainer SCHOOLBOY, JACK1
startbattle
reloadmapafterbattle
2015-07-10 13:04:00 -07:00
loadvar wJackFightCount, 1
clearflag ENGINE_JACK
end
.LoadFight1:
loadtrainer SCHOOLBOY, JACK2
startbattle
reloadmapafterbattle
2015-07-10 13:04:00 -07:00
loadvar wJackFightCount, 2
clearflag ENGINE_JACK
end
.LoadFight2:
loadtrainer SCHOOLBOY, JACK3
startbattle
reloadmapafterbattle
2015-07-10 13:04:00 -07:00
loadvar wJackFightCount, 3
clearflag ENGINE_JACK
end
.LoadFight3:
loadtrainer SCHOOLBOY, JACK4
startbattle
reloadmapafterbattle
2015-07-10 13:04:00 -07:00
loadvar wJackFightCount, 4
clearflag ENGINE_JACK
end
.LoadFight4:
loadtrainer SCHOOLBOY, JACK5
startbattle
reloadmapafterbattle
clearflag ENGINE_JACK
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c0fc:
2015-06-24 18:26:24 -07:00
jumpstd asknumber1m
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c100:
2015-06-24 18:26:24 -07:00
jumpstd asknumber2m
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c104:
2015-06-24 18:26:24 -07:00
jumpstd registerednumberm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c108:
2015-06-24 18:26:24 -07:00
jumpstd numberacceptedm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c10c:
2015-06-24 18:26:24 -07:00
jumpstd numberdeclinedm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c110:
2015-06-24 18:26:24 -07:00
jumpstd phonefullm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c114:
2015-06-24 18:26:24 -07:00
jumpstd rematchm
end
2015-07-10 01:20:21 -07:00
TrainerPokefanmWilliam:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_POKEFANM_WILLIAM, POKEFANM, WILLIAM, PokefanmWilliamSeenText, PokefanmWilliamBeatenText, 0, PokefanmWilliamScript
2015-07-10 01:20:21 -07:00
PokefanmWilliamScript:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x5c645
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerPokefanfBeverly1:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_POKEFANF_BEVERLY, POKEFANF, BEVERLY1, PokefanfBeverly1SeenText, PokefanfBeverly1BeatenText, 0, PokefanfBeverly1Script
2015-07-10 01:20:21 -07:00
PokefanfBeverly1Script:
writecode VAR_CALLERID, PHONE_POKEFAN_BEVERLY
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
checkflag ENGINE_BEVERLY_HAS_NUGGET
iftrue UnknownScript_0x5c177
checkcellnum PHONE_POKEFAN_BEVERLY
iftrue UnknownScript_0x5c19b
checkpoke MARILL
iffalse UnknownScript_0x5c189
2015-07-10 05:08:03 -07:00
checkevent EVENT_BEVERLY_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x5c160
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x5c5bd
2015-11-29 19:29:45 -08:00
buttonsound
2015-07-10 05:08:03 -07:00
setevent EVENT_BEVERLY_ASKED_FOR_PHONE_NUMBER
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5c18f
jump UnknownScript_0x5c163
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c160:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5c193
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c163:
askforphonenumber PHONE_POKEFAN_BEVERLY
if_equal $1, UnknownScript_0x5c1a3
if_equal $2, UnknownScript_0x5c19f
trainertotext POKEFANF, BEVERLY1, $0
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5c197
jump UnknownScript_0x5c19b
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c177:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5c1a7
2015-11-04 17:20:14 -08:00
verbosegiveitem NUGGET
iffalse UnknownScript_0x5c186
clearflag ENGINE_BEVERLY_HAS_NUGGET
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x5c19b
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c186:
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x5c1ab
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c189:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x5c68a
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c18f:
2015-06-24 18:26:24 -07:00
jumpstd asknumber1f
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c193:
2015-06-24 18:26:24 -07:00
jumpstd asknumber2f
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c197:
2015-06-24 18:26:24 -07:00
jumpstd registerednumberf
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c19b:
2015-06-24 18:26:24 -07:00
jumpstd numberacceptedf
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c19f:
2015-06-24 18:26:24 -07:00
jumpstd numberdeclinedf
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c1a3:
2015-06-24 18:26:24 -07:00
jumpstd phonefullf
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c1a7:
2015-06-24 18:26:24 -07:00
jumpstd giftf
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5c1ab:
2015-06-24 18:26:24 -07:00
jumpstd packfullf
end
2015-07-10 01:20:21 -07:00
TrainerLassKrise:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_LASS_KRISE, LASS, KRISE, LassKriseSeenText, LassKriseBeatenText, 0, LassKriseScript
2015-07-10 01:20:21 -07:00
LassKriseScript:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x5c71d
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
MapNationalParkSignpost0Script:
jumptext UnknownText_0x5c750
2015-07-10 01:20:21 -07:00
MapNationalParkSignpost1Script:
jumptext UnknownText_0x5c771
2015-07-10 01:20:21 -07:00
MapNationalParkSignpost3Script:
jumptext UnknownText_0x5c7c6
2015-12-15 07:55:56 -08:00
NationalParkParlyzHeal:
itemball PARLYZ_HEAL
2015-12-15 07:55:56 -08:00
NationalParkTMDig:
itemball TM_DIG
NationalParkHiddenFullHeal:
dwb EVENT_NATIONAL_PARK_HIDDEN_FULL_HEAL, FULL_HEAL
2015-07-10 01:20:21 -07:00
UnknownText_0x5c1d3:
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
2015-07-10 01:20:21 -07:00
UnknownText_0x5c22e:
text "This is MAIL I got"
line "from my daughter."
cont "It cheers me up."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5c265:
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
2015-07-10 01:20:21 -07:00
UnknownText_0x5c30d:
text "Let a #MON hold"
line "that QUICK CLAW."
para "Sometimes it will"
line "strike first"
cont "during battle."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5c35d:
text "I'm playing with"
line "stickers I printed"
cont "from my #DEX."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5c38f:
text "I get the other"
line "guy's #DEX"
cont "sticker if I win."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5c3bc:
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 03:13:59 -07:00
NationalParkPersianText:
text "PERSIAN: Fufushaa!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5c42a:
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 01:20:21 -07: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 01:20:21 -07:00
SchoolboyJack1BeatenText:
text "Wha-wha-what?"
done
2015-07-10 01:20:21 -07: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 01:20:21 -07: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 01:20:21 -07:00
PokefanfBeverly1BeatenText:
text "I can beat you in"
line "pride, but…"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5c5bd:
text "I must say, your"
line "#MON are quite"
cont "cute, too."
done
2015-07-10 01:20:21 -07: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 01:20:21 -07:00
PokefanmWilliamBeatenText:
text "M-my #MON!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5c645:
text "I lost the battle,"
line "but my #MON win"
para "the prize for"
line "being most lovely."
done
2015-07-10 01:20:21 -07: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 01:20:21 -07:00
LassKriseSeenText:
text "Hello? Why are you"
line "staring at me?"
para "Oh, a battle?"
done
2015-07-10 01:20:21 -07:00
LassKriseBeatenText:
text "…Hmmm…"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5c71d:
text "I thought you were"
line "staring at me"
cont "because I'm cute!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5c750:
text "RELAXATION SQUARE"
line "NATIONAL PARK"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5c771:
text "What is this"
line "notice?"
para "Please battle only"
line "in the grass."
para "NATIONAL PARK"
line "WARDEN'S OFFICE"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5c7c6:
text "TRAINER TIPS"
para "Print out MAIL by"
line "opening it then"
cont "pressing START."
done
2015-07-10 01:20:21 -07:00
NationalPark_MapEventHeader:
; filler
db 0, 0
.Warps:
db 4
warp_def $12, $21, 1, ROUTE_36_NATIONAL_PARK_GATE
warp_def $13, $21, 2, ROUTE_36_NATIONAL_PARK_GATE
warp_def $2f, $a, 1, ROUTE_35_NATIONAL_PARK_GATE
warp_def $2f, $b, 2, ROUTE_35_NATIONAL_PARK_GATE
.XYTriggers:
db 0
.Signposts:
db 4
signpost 44, 14, SIGNPOST_READ, MapNationalParkSignpost0Script
signpost 31, 27, SIGNPOST_READ, MapNationalParkSignpost1Script
signpost 47, 6, SIGNPOST_ITEM, NationalParkHiddenFullHeal
signpost 4, 12, SIGNPOST_READ, MapNationalParkSignpost3Script
.PersonEvents:
db 14
person_event SPRITE_LASS, 24, 15, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 0, 1, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, LassScript_0x5c002, -1
person_event SPRITE_POKEFAN_F, 4, 14, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, PokefanFScript_0x5c005, -1
person_event SPRITE_TEACHER, 40, 27, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, TeacherScript_0x5c008, -1
person_event SPRITE_YOUNGSTER, 41, 11, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, YoungsterScript_0x5c023, -1
person_event SPRITE_YOUNGSTER, 41, 10, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_SCRIPT, 0, YoungsterScript_0x5c026, -1
person_event SPRITE_TEACHER, 41, 17, SPRITEMOVEDATA_WANDER, 2, 1, -1, -1, 0, PERSONTYPE_SCRIPT, 0, TeacherScript_0x5c029, -1
2016-04-07 03:13:59 -07:00
person_event SPRITE_GROWLITHE, 40, 26, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, NationalParkPersian, -1
person_event SPRITE_YOUNGSTER, 23, 27, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_TRAINER, 3, TrainerSchoolboyJack1, -1
person_event SPRITE_POKEFAN_F, 29, 18, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 2, TrainerPokefanfBeverly1, -1
person_event SPRITE_POKEFAN_M, 9, 16, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 2, TrainerPokefanmWilliam, -1
person_event SPRITE_LASS, 14, 8, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_TRAINER, 3, TrainerLassKrise, -1
2015-12-15 07:55:56 -08:00
person_event SPRITE_POKE_BALL, 12, 35, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMBALL, 0, NationalParkParlyzHeal, EVENT_NATIONAL_PARK_PARLYZ_HEAL
person_event SPRITE_GAMEBOY_KID, 6, 26, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, GameboyKidScript_0x5c037, -1
2015-12-15 07:55:56 -08:00
person_event SPRITE_POKE_BALL, 43, 1, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMBALL, 0, NationalParkTMDig, EVENT_NATIONAL_PARK_TM_DIG