pokecrystal/maps/ViridianGym.asm

193 lines
3.2 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const VIRIDIANGYM_BLUE
const VIRIDIANGYM_GYM_GUY
ViridianGym_MapScripts:
.SceneScripts:
db 0
.MapCallbacks:
db 0
2017-10-26 23:53:20 +00:00
ViridianGymBlueScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-07-10 07:00:27 +00:00
checkflag ENGINE_EARTHBADGE
iftrue .FightDone
2016-01-05 13:46:37 +00:00
writetext LeaderBlueBeforeText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2016-01-05 13:46:37 +00:00
winlosstext LeaderBlueWinText, 0
loadtrainer BLUE, BLUE1
startbattle
reloadmapafterbattle
2013-09-24 07:48:58 +00:00
setevent EVENT_BEAT_BLUE
2015-12-09 23:25:44 +00:00
opentext
2016-01-05 13:46:37 +00:00
writetext Text_ReceivedEarthBadge
playsound SFX_GET_BADGE
2015-11-25 15:16:29 +00:00
waitsfx
2015-07-10 07:00:27 +00:00
setflag ENGINE_EARTHBADGE
2016-01-05 13:46:37 +00:00
writetext LeaderBlueAfterText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
.FightDone:
2016-01-05 13:46:37 +00:00
writetext LeaderBlueEpilogueText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 07:00:27 +00:00
ViridianGymGuyScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_BEAT_BLUE
iftrue .ViridianGymGuyWinScript
2015-01-20 08:01:23 +00:00
writetext ViridianGymGuyText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
.ViridianGymGuyWinScript:
2015-01-20 08:01:23 +00:00
writetext ViridianGymGuyWinText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-06-25 03:51:36 +00:00
ViridianGymStatue:
checkflag ENGINE_EARTHBADGE
iftrue .Beaten
2015-06-25 01:26:24 +00:00
jumpstd gymstatue1
2016-01-05 13:46:37 +00:00
.Beaten:
2018-01-12 06:40:20 +00:00
trainertotext BLUE, BLUE1, MEM_BUFFER_1
2015-06-25 01:26:24 +00:00
jumpstd gymstatue2
2016-01-05 13:46:37 +00:00
LeaderBlueBeforeText:
text "BLUE: Yo! Finally"
line "got here, huh?"
para "I wasn't in the"
line "mood at CINNABAR,"
para "but now I'm ready"
line "to battle you."
para "…"
para "You're telling me"
line "you conquered all"
cont "the GYMS in JOHTO?"
para "Heh! JOHTO's GYMS"
line "must be pretty"
cont "pathetic then."
para "Hey, don't worry"
line "about it."
para "I'll know if you"
line "are good or not by"
para "battling you right"
line "now."
para "Ready, JOHTO"
line "CHAMP?"
done
2016-01-05 13:46:37 +00:00
LeaderBlueWinText:
text "BLUE: What?"
para "How the heck did I"
line "lose to you?"
para "…"
para "Tch, all right…"
line "Here, take this--"
cont "it's EARTHBADGE."
done
2016-01-05 13:46:37 +00:00
Text_ReceivedEarthBadge:
text "<PLAYER> received"
line "EARTHBADGE."
done
2016-01-05 13:46:37 +00:00
LeaderBlueAfterText:
text "BLUE: …"
para "All right, I was"
line "wrong. You're the"
para "real deal. You are"
line "a good trainer."
para "But I'm going to"
line "beat you someday."
para "Don't you forget"
line "it!"
done
2016-01-05 13:46:37 +00:00
LeaderBlueEpilogueText:
text "BLUE: Listen, you."
para "You'd better not"
line "lose until I beat"
cont "you. Got it?"
done
2015-07-10 07:00:27 +00:00
ViridianGymGuyText:
text "Yo, CHAMP in"
line "making!"
para "How's it going?"
line "Looks like you're"
cont "on a roll."
para "The GYM LEADER is"
line "a guy who battled"
para "the CHAMPION three"
line "years ago."
para "He's no pushover."
para "Give it everything"
line "you've got!"
done
2015-07-10 07:00:27 +00:00
ViridianGymGuyWinText:
text "Man, you are truly"
line "tough…"
para "That was a heck of"
line "an inspirational"
para "battle. It brought"
line "tears to my eyes."
done
ViridianGym_MapEvents:
; filler
db 0, 0
.Warps:
db 2
warp_def 4, 17, 1, VIRIDIAN_CITY
warp_def 5, 17, 1, VIRIDIAN_CITY
.CoordEvents:
db 0
.BGEvents:
db 2
bg_event 3, 13, BGEVENT_READ, ViridianGymStatue
bg_event 6, 13, BGEVENT_READ, ViridianGymStatue
.ObjectEvents:
db 2
object_event 5, 3, SPRITE_BLUE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, ViridianGymBlueScript, EVENT_VIRIDIAN_GYM_BLUE
object_event 7, 13, SPRITE_GYM_GUY, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, ViridianGymGuyScript, EVENT_VIRIDIAN_GYM_BLUE