pokecrystal/maps/AzaleaTown.asm

510 lines
11 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const AZALEATOWN_AZALEA_ROCKET1
const AZALEATOWN_GRAMPS
const AZALEATOWN_TEACHER
const AZALEATOWN_YOUNGSTER
const AZALEATOWN_SLOWPOKE1
const AZALEATOWN_SLOWPOKE2
const AZALEATOWN_SLOWPOKE3
const AZALEATOWN_SLOWPOKE4
const AZALEATOWN_FRUIT_TREE
2015-12-09 16:38:40 +00:00
const AZALEATOWN_SILVER
2015-11-27 05:22:14 +00:00
const AZALEATOWN_AZALEA_ROCKET3
const AZALEATOWN_KURT_OUTSIDE
2015-06-26 05:30:16 +00:00
AzaleaTown_MapScriptHeader:
.MapTriggers:
db 3
; triggers
2016-01-05 13:46:37 +00:00
maptrigger .Trigger0
maptrigger .Trigger1
maptrigger .Trigger2
.MapCallbacks:
db 1
; callbacks
2016-01-06 12:44:50 +00:00
dbw MAPCALLBACK_NEWMAP, .Flypoint
.Trigger0:
end
.Trigger1:
end
.Trigger2:
end
.Flypoint:
2015-06-26 05:30:16 +00:00
setflag ENGINE_FLYPOINT_AZALEA
return
2015-12-17 02:57:42 +00:00
AzaleaTownRivalBattleTrigger1:
2015-12-09 16:38:40 +00:00
moveperson AZALEATOWN_SILVER, $b, $b
spriteface PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic
pause 15
2015-12-09 16:38:40 +00:00
appear AZALEATOWN_SILVER
2015-12-17 02:57:42 +00:00
applymovement AZALEATOWN_SILVER, AzaleaTownRivalBattleApproachMovement1
spriteface PLAYER, DOWN
2015-12-17 02:57:42 +00:00
jump AzaleaTownRivalBattleScript
2015-12-17 02:57:42 +00:00
AzaleaTownRivalBattleTrigger2:
spriteface PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic
pause 15
2015-12-09 16:38:40 +00:00
appear AZALEATOWN_SILVER
2015-12-17 02:57:42 +00:00
applymovement AZALEATOWN_SILVER, AzaleaTownRivalBattleApproachMovement2
spriteface PLAYER, UP
2015-12-17 02:57:42 +00:00
AzaleaTownRivalBattleScript:
playmusic MUSIC_RIVAL_ENCOUNTER
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext AzaleaTownRivalBeforeText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
setevent EVENT_RIVAL_AZALEA_TOWN
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_TOTODILE_FROM_ELM
2015-12-17 02:57:42 +00:00
iftrue .Totodile
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_CHIKORITA_FROM_ELM
2015-12-17 02:57:42 +00:00
iftrue .Chikorita
winlosstext AzaleaTownRivalWinText, AzaleaTownRivalLossText
2015-12-09 16:38:40 +00:00
setlasttalked AZALEATOWN_SILVER
loadtrainer RIVAL1, RIVAL1_6
startbattle
dontrestartmapmusic
reloadmapafterbattle
2015-12-17 02:57:42 +00:00
jump .AfterBattle
2015-12-17 02:57:42 +00:00
.Totodile:
winlosstext AzaleaTownRivalWinText, AzaleaTownRivalLossText
2015-12-09 16:38:40 +00:00
setlasttalked AZALEATOWN_SILVER
loadtrainer RIVAL1, RIVAL1_4
startbattle
dontrestartmapmusic
reloadmapafterbattle
2015-12-17 02:57:42 +00:00
jump .AfterBattle
2015-12-17 02:57:42 +00:00
.Chikorita:
winlosstext AzaleaTownRivalWinText, AzaleaTownRivalLossText
2015-12-09 16:38:40 +00:00
setlasttalked AZALEATOWN_SILVER
loadtrainer RIVAL1, RIVAL1_5
startbattle
dontrestartmapmusic
reloadmapafterbattle
2015-12-17 02:57:42 +00:00
jump .AfterBattle
2015-12-17 02:57:42 +00:00
.AfterBattle:
playmusic MUSIC_RIVAL_AFTER
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext AzaleaTownRivalAfterText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
spriteface PLAYER, LEFT
2015-12-17 02:57:42 +00:00
applymovement AZALEATOWN_SILVER, AzaleaTownRivalBattleExitMovement
playsound SFX_EXIT_BUILDING
2015-12-09 16:38:40 +00:00
disappear AZALEATOWN_SILVER
dotrigger $0
2015-11-25 15:16:29 +00:00
waitsfx
playmapmusic
end
2015-12-17 02:57:42 +00:00
AzaleaTownRocket1Script:
jumptextfaceplayer GoodSamaritanRocketText
2015-12-17 02:57:42 +00:00
AzaleaTownRocket2Script:
jumptextfaceplayer TastySlowpokeTailRocketText
2015-12-17 02:57:42 +00:00
AzaleaTownGrampsScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_CLEARED_SLOWPOKE_WELL
2015-12-17 02:57:42 +00:00
iftrue .ClearedWell
writetext AzaleaTownGrampsTextBefore
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-17 02:57:42 +00:00
.ClearedWell:
writetext AzaleaTownGrampsTextAfter
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-17 02:57:42 +00:00
AzaleaTownTeacherScript:
jumptextfaceplayer AzaleaTownTeacherText
2015-12-17 02:57:42 +00:00
AzaleaTownYoungsterScript:
jumptextfaceplayer AzaleaTownYoungsterText
2015-12-17 02:57:42 +00:00
AzaleaTownSlowpokeScript:
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext AzaleaTownSlowpokeText1
pause 60
2015-12-17 02:57:42 +00:00
writetext AzaleaTownSlowpokeText2
cry SLOWPOKE
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-06-26 05:30:16 +00:00
WoosterScript:
2014-04-18 02:06:30 +00:00
; unused
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-01-20 08:01:23 +00:00
writetext WoosterText
2014-04-18 02:06:30 +00:00
cry QUAGSIRE
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-17 02:57:42 +00:00
AzaleaTown_CelebiEventScript:
applymovement PLAYER, Movement_PlayerWalksOutOfKurtsHouse
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext IlexForestIsRestlessText
2015-11-30 03:29:45 +00:00
buttonsound
2015-11-27 05:22:14 +00:00
spriteface AZALEATOWN_KURT_OUTSIDE, RIGHT
2015-12-17 02:57:42 +00:00
writetext HeresTheGSBallBackText
2015-11-30 03:29:45 +00:00
buttonsound
2015-12-17 02:57:42 +00:00
writetext PleaseInvestigateIlexForestText
2015-11-25 15:16:29 +00:00
waitbutton
2015-11-05 01:20:14 +00:00
verbosegiveitem GS_BALL
2015-11-27 05:22:14 +00:00
spriteface AZALEATOWN_KURT_OUTSIDE, LEFT
2015-07-10 12:08:03 +00:00
setflag ENGINE_HAVE_EXAMINED_GS_BALL
clearevent EVENT_ILEX_FOREST_LASS
setevent EVENT_ROUTE_34_ILEX_FOREST_GATE_LASS
dotrigger $0
2015-11-25 15:16:29 +00:00
closetext
end
2015-12-17 02:57:42 +00:00
AzaleaTownKurtScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext PleaseInvestigateIlexForestText
2015-11-25 15:16:29 +00:00
waitbutton
2015-11-27 05:22:14 +00:00
spriteface AZALEATOWN_KURT_OUTSIDE, LEFT
2015-11-25 15:16:29 +00:00
closetext
end
2015-06-26 04:01:08 +00:00
AzaleaTownSign:
jumptext AzaleaTownSignText
2015-06-26 04:01:08 +00:00
KurtsHouseSign:
jumptext KurtsHouseSignText
2015-06-26 04:01:08 +00:00
AzaleaGymSign:
jumptext AzaleaGymSignText
2015-06-26 04:01:08 +00:00
SlowpokeWellSign:
jumptext SlowpokeWellSignText
2015-06-26 04:01:08 +00:00
CharcoalKilnSign:
jumptext CharcoalKilnSignText
2015-06-26 04:01:08 +00:00
AzaleaTownIlextForestSign:
jumptext AzaleaTownIlexForestSignText
2015-06-26 04:01:08 +00:00
AzaleaTownPokeCenterSign:
2015-06-23 21:02:58 +00:00
jumpstd pokecentersign
2015-06-26 04:01:08 +00:00
AzaleaTownMartSign:
2015-06-23 21:02:58 +00:00
jumpstd martsign
2015-06-26 04:01:08 +00:00
WhiteApricornTree:
2015-11-18 15:42:42 +00:00
fruittree FRUITTREE_AZALEA_TOWN
AzaleaTownHiddenFullHeal:
dwb EVENT_AZALEA_TOWN_HIDDEN_FULL_HEAL, FULL_HEAL
2015-12-17 02:57:42 +00:00
AzaleaTownRivalBattleApproachMovement1:
2016-05-14 17:46:14 +00:00
step LEFT
step LEFT
step LEFT
step LEFT
step LEFT
step LEFT
turn_head UP
step_end
2015-12-17 02:57:42 +00:00
AzaleaTownRivalBattleApproachMovement2:
2016-05-14 17:46:14 +00:00
step LEFT
step LEFT
step LEFT
step LEFT
step LEFT
step LEFT
turn_head DOWN
step_end
2015-12-17 02:57:42 +00:00
AzaleaTownRivalBattleExitMovement:
2016-05-14 17:46:14 +00:00
step LEFT
step LEFT
step LEFT
step_end
2015-12-17 02:57:42 +00:00
Movement_PlayerWalksOutOfKurtsHouse:
2016-05-14 17:46:14 +00:00
step LEFT
step LEFT
step UP
turn_head LEFT
step_end
2015-12-17 02:57:42 +00:00
AzaleaTownRivalBeforeText:
text "…Tell me some-"
line "thing."
para "Is it true that"
line "TEAM ROCKET has"
cont "returned?"
para "What? You beat"
line "them? Hah! Quit"
cont "lying."
para "You're not joking?"
line "Then let's see how"
cont "good you are."
done
2015-12-17 02:57:42 +00:00
AzaleaTownRivalWinText:
text "… Humph! Useless"
line "#MON!"
para "Listen, you. You"
line "only won because"
para "my #MON were"
line "weak."
done
2015-12-17 02:57:42 +00:00
AzaleaTownRivalAfterText:
text "I hate the weak."
para "#MON, trainers."
line "It doesn't matter"
cont "who or what."
para "I'm going to be"
line "strong and wipe"
cont "out the weak."
para "That goes for TEAM"
line "ROCKET too."
para "They act big and"
line "tough in a group."
para "But get them"
line "alone, and they're"
cont "weak."
para "I hate them all."
para "You stay out of my"
line "way. A weakling"
para "like you is only a"
line "distraction."
done
2015-12-17 02:57:42 +00:00
AzaleaTownRivalLossText:
text "…Humph! I knew"
line "you were lying."
done
2015-12-17 02:57:42 +00:00
GoodSamaritanRocketText:
text "It's unsafe to go"
line "in there, so I'm"
cont "standing guard."
para "Aren't I a good"
line "Samaritan?"
done
2015-12-17 02:57:42 +00:00
TastySlowpokeTailRocketText:
text "Do you know about"
line "SLOWPOKETAIL? I"
cont "heard it's tasty!"
para "Aren't you glad I"
line "told you that?"
done
2015-12-17 02:57:42 +00:00
AzaleaTownGrampsTextBefore:
text "The SLOWPOKE have"
line "disappeared from"
cont "town…"
para "I heard their"
line "TAILS are being"
cont "sold somewhere."
done
2015-12-17 02:57:42 +00:00
AzaleaTownGrampsTextAfter:
text "The SLOWPOKE have"
line "returned."
para "Knowing them, they"
line "could've just been"
para "goofing off some-"
line "where."
done
2015-12-17 02:57:42 +00:00
AzaleaTownTeacherText:
text "Did you come to"
line "get KURT to make"
cont "some BALLS?"
para "A lot of people do"
line "just that."
done
2015-12-17 02:57:42 +00:00
AzaleaTownYoungsterText:
text "Cut through AZALEA"
line "and you'll be in"
cont "ILEX FOREST."
para "But these skinny"
line "trees make it"
para "impossible to get"
line "through."
para "The CHARCOAL MAN's"
line "#MON can CUT"
cont "down trees."
done
2015-12-17 02:57:42 +00:00
AzaleaTownSlowpokeText1:
text "SLOWPOKE: …"
2015-11-20 20:15:32 +00:00
para "<......> <......> <......>"
done
2015-12-17 02:57:42 +00:00
AzaleaTownSlowpokeText2:
2015-11-20 20:15:32 +00:00
text "<......> <......>Yawn?"
done
2015-06-26 05:30:16 +00:00
WoosterText:
text "WOOSTER: Gugyoo…"
done
2015-12-17 02:57:42 +00:00
IlexForestIsRestlessText:
text "ILEX FOREST is"
line "restless!"
para "What is going on?"
done
2015-12-17 02:57:42 +00:00
HeresTheGSBallBackText:
text "<PLAYER>, here's"
line "your GS BALL back!"
done
2015-12-17 02:57:42 +00:00
PleaseInvestigateIlexForestText:
text "Could you go see"
line "why ILEX FOREST is"
cont "so restless?"
done
2015-06-26 04:01:08 +00:00
AzaleaTownSignText:
text "AZALEA TOWN"
line "Where People and"
para "#MON Live in"
line "Happy Harmony"
done
2015-06-26 04:01:08 +00:00
KurtsHouseSignText:
text "KURT'S HOUSE"
done
2015-06-26 04:01:08 +00:00
AzaleaGymSignText:
text "AZALEA TOWN"
line "#MON GYM"
cont "LEADER: BUGSY"
para "The Walking"
line "Bug #MON"
cont "Encyclopedia"
done
2015-06-26 04:01:08 +00:00
SlowpokeWellSignText:
text "SLOWPOKE WELL"
para "Also known as the"
line "RAINMAKER WELL."
para "Locals believe"
line "that a SLOWPOKE's"
cont "yawn summons rain."
para "Records show that"
line "a SLOWPOKE's yawn"
para "ended a drought"
line "400 years ago."
done
2015-06-26 04:01:08 +00:00
CharcoalKilnSignText:
text "CHARCOAL KILN"
done
2015-06-26 04:01:08 +00:00
AzaleaTownIlexForestSignText:
text "ILEX FOREST"
para "Enter through the"
line "gate."
done
2015-06-26 05:30:16 +00:00
AzaleaTown_MapEventHeader:
; filler
db 0, 0
.Warps:
db 8
warp_def $9, $f, 1, AZALEA_POKECENTER_1F
warp_def $d, $15, 1, CHARCOAL_KILN
warp_def $5, $15, 2, AZALEA_MART
warp_def $5, $9, 1, KURTS_HOUSE
warp_def $f, $a, 1, AZALEA_GYM
warp_def $7, $1f, 1, SLOWPOKE_WELL_B1F
warp_def $a, $2, 3, ILEX_FOREST_AZALEA_GATE
warp_def $b, $2, 4, ILEX_FOREST_AZALEA_GATE
.XYTriggers:
db 3
2015-12-17 02:57:42 +00:00
xy_trigger 1, $a, $5, $0, AzaleaTownRivalBattleTrigger1, $0, $0
xy_trigger 1, $b, $5, $0, AzaleaTownRivalBattleTrigger2, $0, $0
xy_trigger 2, $6, $9, $0, AzaleaTown_CelebiEventScript, $0, $0
.Signposts:
db 9
signpost 9, 19, SIGNPOST_READ, AzaleaTownSign
signpost 9, 10, SIGNPOST_READ, KurtsHouseSign
signpost 15, 14, SIGNPOST_READ, AzaleaGymSign
signpost 7, 29, SIGNPOST_READ, SlowpokeWellSign
signpost 13, 19, SIGNPOST_READ, CharcoalKilnSign
signpost 9, 16, SIGNPOST_READ, AzaleaTownPokeCenterSign
signpost 5, 22, SIGNPOST_READ, AzaleaTownMartSign
signpost 9, 3, SIGNPOST_READ, AzaleaTownIlextForestSign
signpost 6, 31, SIGNPOST_ITEM, AzaleaTownHiddenFullHeal
.PersonEvents:
db 12
2015-12-17 02:57:42 +00:00
person_event SPRITE_AZALEA_ROCKET, 9, 31, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, AzaleaTownRocket1Script, EVENT_AZALEA_TOWN_SLOWPOKETAIL_ROCKET
person_event SPRITE_GRAMPS, 9, 21, SPRITEMOVEDATA_WANDER, 2, 1, -1, -1, 0, PERSONTYPE_SCRIPT, 0, AzaleaTownGrampsScript, -1
person_event SPRITE_TEACHER, 13, 15, SPRITEMOVEDATA_WALK_UP_DOWN, 2, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, AzaleaTownTeacherScript, -1
person_event SPRITE_YOUNGSTER, 9, 7, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 0, 1, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, AzaleaTownYoungsterScript, -1
person_event SPRITE_SLOWPOKE, 17, 8, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, AzaleaTownSlowpokeScript, EVENT_AZALEA_TOWN_SLOWPOKES
person_event SPRITE_SLOWPOKE, 9, 18, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, AzaleaTownSlowpokeScript, EVENT_AZALEA_TOWN_SLOWPOKES
person_event SPRITE_SLOWPOKE, 9, 29, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, AzaleaTownSlowpokeScript, EVENT_AZALEA_TOWN_SLOWPOKES
person_event SPRITE_SLOWPOKE, 15, 15, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, AzaleaTownSlowpokeScript, EVENT_AZALEA_TOWN_SLOWPOKES
person_event SPRITE_FRUIT_TREE, 2, 8, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, WhiteApricornTree, -1
person_event SPRITE_AZALEA_ROCKET, 10, 11, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_RIVAL_AZALEA_TOWN
2015-12-17 02:57:42 +00:00
person_event SPRITE_AZALEA_ROCKET, 16, 10, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, AzaleaTownRocket2Script, EVENT_SLOWPOKE_WELL_ROCKETS
person_event SPRITE_KURT_OUTSIDE, 5, 6, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, AzaleaTownKurtScript, EVENT_AZALEA_TOWN_KURT