pokecrystal/maps/DragonsDenB1F.asm

440 lines
9.1 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const DRAGONSDENB1F_POKE_BALL1
const DRAGONSDENB1F_CLAIR
const DRAGONSDENB1F_SILVER
const DRAGONSDENB1F_COOLTRAINER_M
const DRAGONSDENB1F_COOLTRAINER_F
const DRAGONSDENB1F_TWIN1
const DRAGONSDENB1F_TWIN2
const DRAGONSDENB1F_POKE_BALL2
const DRAGONSDENB1F_POKE_BALL3
DragonsDenB1F_MapScripts:
.SceneScripts:
db 2
scene_script .DummyScene0
scene_script .DummyScene1
.MapCallbacks:
db 1
callback MAPCALLBACK_NEWMAP, .CheckSilver
.DummyScene0:
end
.DummyScene1:
end
2015-12-09 23:25:44 +00:00
.CheckSilver:
2013-09-24 07:48:58 +00:00
checkevent EVENT_BEAT_RIVAL_IN_MT_MOON
2015-12-09 23:25:44 +00:00
iftrue .CheckDay
2015-11-27 05:22:14 +00:00
disappear DRAGONSDENB1F_SILVER
return
2015-12-09 23:25:44 +00:00
.CheckDay:
checkcode VAR_WEEKDAY
2015-12-09 23:25:44 +00:00
if_equal TUESDAY, .AppearSilver
if_equal THURSDAY, .AppearSilver
2015-11-27 05:22:14 +00:00
disappear DRAGONSDENB1F_SILVER
return
2015-12-09 23:25:44 +00:00
.AppearSilver:
2015-11-27 05:22:14 +00:00
appear DRAGONSDENB1F_SILVER
return
DragonsDenB1F_ClairScene:
2015-11-27 05:22:14 +00:00
appear DRAGONSDENB1F_CLAIR
2015-12-09 23:25:44 +00:00
opentext
writetext ClairText_Wait
pause 30
2015-11-25 15:16:29 +00:00
closetext
showemote EMOTE_SHOCK, PLAYER, 15
spriteface PLAYER, LEFT
playmusic MUSIC_CLAIR
2015-12-09 23:25:44 +00:00
applymovement DRAGONSDENB1F_CLAIR, MovementDragonsDen_ClairWalksToYou
opentext
writetext ClairText_GiveDragonbreathDragonDen
2015-11-30 03:29:45 +00:00
buttonsound
2015-11-05 01:20:14 +00:00
giveitem TM_DRAGONBREATH
2015-12-09 23:25:44 +00:00
iffalse .BagFull
2018-01-12 06:40:20 +00:00
itemtotext TM_DRAGONBREATH, MEM_BUFFER_0
2015-12-09 23:25:44 +00:00
writetext NotifyReceiveDragonbreath
playsound SFX_ITEM
2015-11-25 15:16:29 +00:00
waitsfx
itemnotify
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_TM24_DRAGONBREATH
2015-12-09 23:25:44 +00:00
writetext ClairText_DescribeDragonbreathDragonDen
2015-11-30 03:29:45 +00:00
buttonsound
2015-12-09 23:25:44 +00:00
writetext ClairText_WhatsTheMatterDragonDen
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-12-09 23:25:44 +00:00
jump .FinishClair
2015-12-09 23:25:44 +00:00
.BagFull:
writetext ClairText_NoRoom
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-12-09 23:25:44 +00:00
.FinishClair:
applymovement DRAGONSDENB1F_CLAIR, MovementDragonsDen_ClairWalksAway
special Special_FadeOutMusic
pause 30
special RestartMapMusic
2015-11-27 05:22:14 +00:00
disappear DRAGONSDENB1F_CLAIR
setscene 0
end
2015-07-10 08:20:21 +00:00
TrainerCooltrainermDarin:
2017-12-18 01:45:04 +00:00
trainer EVENT_BEAT_COOLTRAINERM_DARIN, COOLTRAINERM, DARIN, CooltrainermDarinSeenText, CooltrainermDarinBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext CooltrainermDarinAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerCooltrainerfCara:
2017-12-18 01:45:04 +00:00
trainer EVENT_BEAT_COOLTRAINERF_CARA, COOLTRAINERF, CARA, CooltrainerfCaraSeenText, CooltrainerfCaraBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext CooltrainerfCaraAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerTwinsLeaandpia1:
2017-12-18 01:45:04 +00:00
trainer EVENT_BEAT_TWINS_LEA_AND_PIA, TWINS, LEAANDPIA1, TwinsLeaandpia1SeenText, TwinsLeaandpia1BeatenText, 0, .Script
2013-05-01 07:36:25 +00:00
2017-12-18 01:45:04 +00:00
.Script:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext TwinsLeaandpia1AfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
2013-05-01 07:36:25 +00:00
closetext
end
2015-07-10 08:20:21 +00:00
TrainerTwinsLeaandpia2:
2017-12-18 01:45:04 +00:00
trainer EVENT_BEAT_TWINS_LEA_AND_PIA, TWINS, LEAANDPIA1, TwinsLeaandpia2SeenText, TwinsLeaandpia2BeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext TwinsLeaandpia2AfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
PokeBallScript_0x18c95a:
2015-12-09 23:25:44 +00:00
; This whole script is written out rather than as an
; item fragment because it's left over from the GS
; event.
2015-11-05 01:20:14 +00:00
giveitem DRAGON_FANG
2015-12-09 23:25:44 +00:00
iffalse .BagFull
2015-11-27 05:22:14 +00:00
disappear DRAGONSDENB1F_POKE_BALL1
2015-12-09 23:25:44 +00:00
opentext
2018-01-12 06:40:20 +00:00
itemtotext DRAGON_FANG, MEM_BUFFER_0
2015-12-09 23:25:44 +00:00
writetext Text_FoundDragonFang
playsound SFX_ITEM
2015-11-25 15:16:29 +00:00
waitsfx
itemnotify
2015-11-25 15:16:29 +00:00
closetext
end
2015-12-09 23:25:44 +00:00
.BagFull:
opentext
2018-01-12 06:40:20 +00:00
itemtotext DRAGON_FANG, MEM_BUFFER_0
2015-12-09 23:25:44 +00:00
writetext Text_FoundDragonFang
2015-11-30 03:29:45 +00:00
buttonsound
2015-12-09 23:25:44 +00:00
writetext Text_NoRoomForDragonFang
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
SilverScript_0x18c97e:
playmusic MUSIC_RIVAL_ENCOUNTER
faceplayer
2015-12-09 23:25:44 +00:00
opentext
checkevent EVENT_GAVE_KURT_APRICORNS
2015-12-09 23:25:44 +00:00
iftrue .SilverTalkAgain
writetext SilverText_Training1
2015-11-25 15:16:29 +00:00
waitbutton
closetext
setevent EVENT_GAVE_KURT_APRICORNS
special RestartMapMusic
end
2015-12-09 23:25:44 +00:00
.SilverTalkAgain:
writetext SilverText_Training2
2015-11-25 15:16:29 +00:00
waitbutton
closetext
special RestartMapMusic
end
2015-07-10 08:20:21 +00:00
MapDragonsDenB1FSignpost0Script:
2015-12-09 23:25:44 +00:00
jumptext DragonShrineSignpostText
2015-12-15 15:55:56 +00:00
DragonsDenB1FCalcium:
itemball CALCIUM
2015-12-15 15:55:56 +00:00
DragonsDenB1FMaxElixer:
itemball MAX_ELIXER
DragonsDenB1FHiddenRevive:
hiddenitem EVENT_DRAGONS_DEN_B1F_HIDDEN_REVIVE, REVIVE
DragonsDenB1FHiddenMaxPotion:
hiddenitem EVENT_DRAGONS_DEN_B1F_HIDDEN_MAX_POTION, MAX_POTION
DragonsDenB1FHiddenMaxElixer:
hiddenitem EVENT_DRAGONS_DEN_B1F_HIDDEN_MAX_ELIXER, MAX_ELIXER
2015-12-09 23:25:44 +00:00
MovementDragonsDen_ClairWalksToYou:
2016-05-14 17:46:14 +00:00
slow_step RIGHT
slow_step RIGHT
slow_step RIGHT
slow_step RIGHT
step_end
2015-12-09 23:25:44 +00:00
MovementDragonsDen_ClairWalksAway:
2016-05-14 17:46:14 +00:00
slow_step LEFT
slow_step LEFT
slow_step LEFT
slow_step LEFT
step_end
2015-12-09 23:25:44 +00:00
ClairText_Wait:
text "Wait!"
done
2015-12-09 23:25:44 +00:00
ClairText_GiveDragonbreathDragonDen:
text "CLAIR: I'm sorry"
line "about this."
para "Here, take this as"
line "my apology."
done
2015-12-09 23:25:44 +00:00
NotifyReceiveDragonbreath:
text "<PLAYER> received"
line "TM24."
done
2015-12-09 23:25:44 +00:00
ClairText_DescribeDragonbreathDragonDen:
text "That contains"
line "DRAGONBREATH."
para "No, it doesn't"
line "have anything to"
cont "do with my breath."
para "If you don't want"
line "it, you don't have"
cont "to take it."
done
2015-12-09 23:25:44 +00:00
ClairText_NoRoom:
text "Oh? You don't have"
line "any room for this."
para "I'm going back to"
line "the GYM, so make"
para "room, then come"
line "see me there."
done
2015-12-09 23:25:44 +00:00
ClairText_WhatsTheMatterDragonDen:
text "CLAIR: What's the"
line "matter? Aren't you"
para "going on to the"
line "#MON LEAGUE?"
para "Do you know how to"
line "get there?"
para "From here, go to"
line "NEW BARK TOWN."
para "Then SURF east to"
line "#MON LEAGUE."
para "The route there is"
line "very tough."
para "Don't you dare"
line "lose at the #-"
cont "MON LEAGUE!"
para "If you do, I'll"
line "feel even worse"
para "about having lost"
line "to you!"
para "Give it everything"
line "you've got."
done
2015-12-09 23:25:44 +00:00
DragonShrineSignpostText:
text "DRAGON SHRINE"
para "A shrine honoring"
line "the dragon #MON"
para "said to have lived"
line "in DRAGON'S DEN."
done
2015-12-09 23:25:44 +00:00
SilverText_Training1:
text "…"
line "What? <PLAYER>?"
para "…No, I won't"
line "battle you now…"
para "My #MON aren't"
line "ready to beat you."
para "I can't push them"
line "too hard now."
para "I have to be dis-"
line "ciplined to become"
para "the greatest #-"
line "MON trainer…"
done
2015-12-09 23:25:44 +00:00
SilverText_Training2:
text "…"
para "Whew…"
para "Learn to stay out"
line "of my way…"
done
2015-07-10 08:20:21 +00:00
CooltrainermDarinSeenText:
text "You! How dare you"
line "enter uninvited!"
done
2015-07-10 08:20:21 +00:00
CooltrainermDarinBeatenText:
text "S-strong!"
done
2017-12-10 20:36:58 +00:00
CooltrainermDarinAfterBattleText:
text "The SHRINE ahead"
line "is home to the"
para "MASTER of our"
line "dragon-user clan."
para "You're not allowed"
line "to just go in!"
done
2015-07-10 08:20:21 +00:00
CooltrainerfCaraSeenText:
text "You shouldn't be"
line "in here!"
done
2015-07-10 08:20:21 +00:00
CooltrainerfCaraBeatenText:
text "Oh yikes, I lost!"
done
2017-12-10 20:36:58 +00:00
CooltrainerfCaraAfterBattleText:
text "Soon I'm going to"
line "get permission"
para "from our MASTER to"
line "use dragons."
para "When I do, I'm"
line "going to become an"
para "admirable dragon"
line "trainer and gain"
para "our MASTER's"
line "approval."
done
2015-07-10 08:20:21 +00:00
TwinsLeaandpia1SeenText:
text "It's a stranger we"
line "don't know."
done
2015-07-10 08:20:21 +00:00
TwinsLeaandpia1BeatenText:
text "Ouchies."
done
2017-12-10 20:36:58 +00:00
TwinsLeaandpia1AfterBattleText:
text "It was like having"
line "to battle LANCE."
done
2015-07-10 08:20:21 +00:00
TwinsLeaandpia2SeenText:
text "Who are you?"
done
2015-07-10 08:20:21 +00:00
TwinsLeaandpia2BeatenText:
text "Meanie."
done
2017-12-10 20:36:58 +00:00
TwinsLeaandpia2AfterBattleText:
text "We'll tell on you."
para "MASTER will be"
line "angry with you."
done
2015-12-09 23:25:44 +00:00
Text_FoundDragonFang:
text "<PLAYER> found"
line "@"
2015-02-10 23:37:24 +00:00
text_from_ram StringBuffer3
text "!"
done
2015-12-09 23:25:44 +00:00
Text_NoRoomForDragonFang:
text "But <PLAYER> can't"
line "carry any more"
cont "items."
done
DragonsDenB1F_MapEvents:
; filler
db 0, 0
.Warps:
db 2
warp_def 20, 3, 3, DRAGONS_DEN_1F
warp_def 19, 29, 1, DRAGON_SHRINE
.CoordEvents:
db 1
coord_event 19, 30, 1, DragonsDenB1F_ClairScene
.BGEvents:
db 4
bg_event 18, 24, BGEVENT_READ, MapDragonsDenB1FSignpost0Script
bg_event 33, 29, BGEVENT_ITEM, DragonsDenB1FHiddenRevive
bg_event 21, 17, BGEVENT_ITEM, DragonsDenB1FHiddenMaxPotion
bg_event 31, 15, BGEVENT_ITEM, DragonsDenB1FHiddenMaxElixer
.ObjectEvents:
db 9
object_event 35, 16, SPRITE_POKE_BALL, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PokeBallScript_0x18c95a, EVENT_DRAGONS_DEN_B1F_DRAGON_FANG
object_event 14, 30, SPRITE_CLAIR, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_DRAGONS_DEN_CLAIR
object_event 20, 23, SPRITE_SILVER, SPRITEMOVEDATA_WANDER, 2, 2, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, SilverScript_0x18c97e, EVENT_RIVAL_DRAGONS_DEN
object_event 20, 8, SPRITE_COOLTRAINER_M, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 4, TrainerCooltrainermDarin, -1
object_event 8, 8, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 3, TrainerCooltrainerfCara, -1
object_event 4, 17, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 1, TrainerTwinsLeaandpia1, -1
object_event 4, 18, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 1, TrainerTwinsLeaandpia2, -1
object_event 30, 4, SPRITE_POKE_BALL, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, DragonsDenB1FCalcium, EVENT_DRAGONS_DEN_B1F_CALCIUM
object_event 5, 20, SPRITE_POKE_BALL, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, DragonsDenB1FMaxElixer, EVENT_DRAGONS_DEN_B1F_MAX_ELIXER