pokecrystal/maps/PewterGym.asm

226 lines
4.2 KiB
NASM
Raw Normal View History

object_const_def ; object_event constants
2015-11-27 05:22:14 +00:00
const PEWTERGYM_BROCK
const PEWTERGYM_YOUNGSTER
2020-07-17 17:01:48 +00:00
const PEWTERGYM_GYM_GUIDE
2015-11-27 05:22:14 +00:00
PewterGym_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
2018-02-28 21:50:43 +00:00
PewterGymBrockScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-07-10 07:00:27 +00:00
checkflag ENGINE_BOULDERBADGE
iftrue .FightDone
2018-08-19 17:56:41 +00:00
writetext BrockIntroText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2018-08-19 17:56:41 +00:00
winlosstext BrockWinLossText, 0
loadtrainer BROCK, BROCK1
startbattle
reloadmapafterbattle
2013-09-24 07:48:58 +00:00
setevent EVENT_BEAT_BROCK
setevent EVENT_BEAT_CAMPER_JERRY
2015-12-09 23:25:44 +00:00
opentext
2018-08-19 17:56:41 +00:00
writetext ReceivedBoulderBadgeText
playsound SFX_GET_BADGE
2015-11-25 15:16:29 +00:00
waitsfx
2015-07-10 07:00:27 +00:00
setflag ENGINE_BOULDERBADGE
2018-08-19 17:56:41 +00:00
writetext BrockBoulderBadgeText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
.FightDone:
2018-08-19 17:56:41 +00:00
writetext BrockFightDoneText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 07:00:27 +00:00
TrainerCamperJerry:
trainer CAMPER, JERRY, EVENT_BEAT_CAMPER_JERRY, CamperJerrySeenText, CamperJerryBeatenText, 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 CamperJerryAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2020-07-17 17:01:48 +00:00
PewterGymGuideScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_BEAT_BROCK
2020-07-17 17:01:48 +00:00
iftrue .PewterGymGuideWinScript
writetext PewterGymGuideText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2020-07-17 17:01:48 +00:00
.PewterGymGuideWinScript:
writetext PewterGymGuideWinText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-06-25 03:51:36 +00:00
PewterGymStatue:
checkflag ENGINE_BOULDERBADGE
iftrue .Beaten
jumpstd GymStatue1Script
.Beaten:
gettrainername STRING_BUFFER_4, BROCK, BROCK1
jumpstd GymStatue2Script
2018-08-19 17:56:41 +00:00
BrockIntroText:
text "BROCK: Wow, it's"
line "not often that we"
para "get a challenger"
line "from JOHTO."
para "I'm BROCK, the"
line "PEWTER GYM LEADER."
para "I'm an expert on"
line "rock-type #MON."
para "My #MON are im-"
line "pervious to most"
para "physical attacks."
line "You'll have a hard"
para "time inflicting"
line "any damage."
para "Come on!"
done
2018-08-19 17:56:41 +00:00
BrockWinLossText:
text "BROCK: Your #-"
line "MON's powerful at-"
cont "tacks overcame my"
cont "rock-hard defense…"
para "You're stronger"
line "than I expected…"
para "Go ahead--take"
line "this BADGE."
done
2018-08-19 17:56:41 +00:00
ReceivedBoulderBadgeText:
text "<PLAYER> received"
line "BOULDERBADGE."
done
2018-08-19 17:56:41 +00:00
BrockBoulderBadgeText:
text "BROCK: <PLAY_G>,"
line "thanks. I enjoyed"
para "battling you, even"
line "though I am a bit"
cont "upset."
para "That BOULDERBADGE"
line "will make your"
para "#MON even more"
line "powerful."
done
2018-08-19 17:56:41 +00:00
BrockFightDoneText:
text "BROCK: The world"
line "is huge. There are"
para "still many strong"
line "trainers like you."
para "Just wait and see."
line "I'm going to be-"
cont "come a lot strong-"
cont "er too."
done
2015-07-10 07:00:27 +00:00
CamperJerrySeenText:
text "The trainers of"
line "this GYM use rock-"
cont "type #MON."
para "The rock-type has"
line "high DEFENSE."
para "Battles could end"
line "up going a long"
para "time. Are you"
line "ready for this?"
done
2015-07-10 07:00:27 +00:00
CamperJerryBeatenText:
text "I have to win"
line "these battles…"
done
2017-12-10 20:36:58 +00:00
CamperJerryAfterBattleText:
text "Hey, you! Trainer"
line "from JOHTO! BROCK"
para "is tough. He'll"
line "punish you if you"
para "don't take him"
line "seriously."
done
2020-07-17 17:01:48 +00:00
PewterGymGuideText:
text "Yo! CHAMP in"
line "making! You're"
para "really rocking."
line "Are you battling"
para "the GYM LEADERS of"
line "KANTO?"
para "They're strong and"
line "dedicated people,"
para "just like JOHTO's"
line "GYM LEADERS."
done
2020-07-17 17:01:48 +00:00
PewterGymGuideWinText:
text "Yo! CHAMP in"
line "making! That GYM"
para "didn't give you"
line "much trouble."
para "The way you took"
line "charge was really"
para "inspiring. I mean"
line "that seriously."
done
PewterGym_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
2018-02-02 03:22:07 +00:00
warp_event 4, 13, PEWTER_CITY, 2
warp_event 5, 13, PEWTER_CITY, 2
db 0 ; coord events
db 2 ; bg events
2018-02-02 03:22:07 +00:00
bg_event 2, 11, BGEVENT_READ, PewterGymStatue
bg_event 7, 11, BGEVENT_READ, PewterGymStatue
db 3 ; object events
2018-02-28 21:50:43 +00:00
object_event 5, 1, SPRITE_BROCK, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, PewterGymBrockScript, -1
2018-02-02 03:22:07 +00:00
object_event 2, 5, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 3, TrainerCamperJerry, -1
2020-07-17 17:01:48 +00:00
object_event 6, 11, SPRITE_GYM_GUIDE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 1, PewterGymGuideScript, -1