pokecrystal-board/maps/CianwoodGym.asm

329 lines
6.8 KiB
NASM
Raw Normal View History

2018-01-31 08:38:45 -08:00
const_def 2 ; object constants
2015-11-26 21:22:14 -08:00
const CIANWOODGYM_CHUCK
const CIANWOODGYM_BLACK_BELT1
const CIANWOODGYM_BLACK_BELT2
const CIANWOODGYM_BLACK_BELT3
const CIANWOODGYM_BLACK_BELT4
const CIANWOODGYM_BOULDER1
const CIANWOODGYM_BOULDER2
const CIANWOODGYM_BOULDER3
const CIANWOODGYM_BOULDER4
CianwoodGym_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
2018-02-28 13:50:43 -08:00
CianwoodGymChuckScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_BEAT_CHUCK
2015-07-10 00:00:27 -07:00
iftrue .FightDone
2016-03-01 19:31:21 -08:00
writetext ChuckIntroText1
2015-11-25 07:16:29 -08:00
waitbutton
closetext
turnobject CIANWOODGYM_CHUCK, RIGHT
2015-12-09 15:25:44 -08:00
opentext
2016-03-01 19:31:21 -08:00
writetext ChuckIntroText2
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2016-03-01 19:31:21 -08:00
applymovement CIANWOODGYM_BOULDER1, CianwoodGymMovement_ChuckChucksBoulder
playsound SFX_STRENGTH
earthquake 80
2015-11-26 21:22:14 -08:00
disappear CIANWOODGYM_BOULDER1
pause 30
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2016-03-01 19:31:21 -08:00
writetext ChuckIntroText3
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2016-03-01 19:31:21 -08:00
winlosstext ChuckLossText, 0
loadtrainer CHUCK, CHUCK1
startbattle
reloadmapafterbattle
2013-09-24 00:48:58 -07:00
setevent EVENT_BEAT_CHUCK
2015-12-09 15:25:44 -08:00
opentext
2016-03-01 19:31:21 -08:00
writetext GetStormBadgeText
playsound SFX_GET_BADGE
2015-11-25 07:16:29 -08:00
waitsfx
2015-07-10 00:00:27 -07:00
setflag ENGINE_STORMBADGE
checkcode VAR_BADGES
scall CianwoodGymActivateRockets
.FightDone:
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_TM01_DYNAMICPUNCH
2016-03-01 19:31:21 -08:00
iftrue .AlreadyGotTM
2013-09-24 00:48:58 -07:00
setevent EVENT_BEAT_BLACKBELT_YOSHI
setevent EVENT_BEAT_BLACKBELT_LAO
setevent EVENT_BEAT_BLACKBELT_NOB
setevent EVENT_BEAT_BLACKBELT_LUNG
2016-03-01 19:31:21 -08:00
writetext ChuckExplainBadgeText
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-04 17:20:14 -08:00
verbosegiveitem TM_DYNAMICPUNCH
2016-03-01 19:31:21 -08:00
iffalse .BagFull
2013-09-24 00:48:58 -07:00
setevent EVENT_GOT_TM01_DYNAMICPUNCH
2016-03-01 19:31:21 -08:00
writetext ChuckExplainTMText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2016-03-01 19:31:21 -08:00
.AlreadyGotTM:
writetext ChuckAfterText
2015-11-25 07:16:29 -08:00
waitbutton
2016-03-01 19:31:21 -08:00
.BagFull:
2015-11-25 07:16:29 -08:00
closetext
end
CianwoodGymActivateRockets:
2018-02-02 18:09:17 -08:00
ifequal 7, .RadioTowerRockets
ifequal 6, .GoldenrodRockets
end
.GoldenrodRockets:
2015-06-24 18:26:24 -07:00
jumpstd goldenrodrockets
.RadioTowerRockets:
2015-06-24 18:26:24 -07:00
jumpstd radiotowerrockets
2015-07-10 00:00:27 -07:00
TrainerBlackbeltYoshi:
trainer BLACKBELT_T, YOSHI, EVENT_BEAT_BLACKBELT_YOSHI, BlackbeltYoshiSeenText, BlackbeltYoshiBeatenText, 0, .Script
2016-03-01 19:31:21 -08:00
.Script:
2018-02-02 18:09:17 -08:00
endifjustbattled
2015-12-09 15:25:44 -08:00
opentext
2016-03-01 19:31:21 -08:00
writetext BlackbeltYoshiAfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 00:00:27 -07:00
TrainerBlackbeltLao:
trainer BLACKBELT_T, LAO, EVENT_BEAT_BLACKBELT_LAO, BlackbeltLaoSeenText, BlackbeltLaoBeatenText, 0, .Script
2016-03-01 19:31:21 -08:00
.Script:
2018-02-02 18:09:17 -08:00
endifjustbattled
2015-12-09 15:25:44 -08:00
opentext
2016-03-01 19:31:21 -08:00
writetext BlackbeltLaoAfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 00:00:27 -07:00
TrainerBlackbeltNob:
trainer BLACKBELT_T, NOB, EVENT_BEAT_BLACKBELT_NOB, BlackbeltNobSeenText, BlackbeltNobBeatenText, 0, .Script
2016-03-01 19:31:21 -08:00
.Script:
2018-02-02 18:09:17 -08:00
endifjustbattled
2015-12-09 15:25:44 -08:00
opentext
2016-03-01 19:31:21 -08:00
writetext BlackbeltNobAfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 00:00:27 -07:00
TrainerBlackbeltLung:
trainer BLACKBELT_T, LUNG, EVENT_BEAT_BLACKBELT_LUNG, BlackbeltLungSeenText, BlackbeltLungBeatenText, 0, .Script
2016-03-01 19:31:21 -08:00
.Script:
2018-02-02 18:09:17 -08:00
endifjustbattled
2015-12-09 15:25:44 -08:00
opentext
2016-03-01 19:31:21 -08:00
writetext BlackbeltLungAfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-06-25 21:01:08 -07:00
CianwoodGymBoulder:
2015-06-23 14:02:58 -07:00
jumpstd strengthboulder
2015-06-24 20:51:36 -07:00
CianwoodGymStatue:
checkflag ENGINE_STORMBADGE
iftrue .Beaten
2015-06-24 18:26:24 -07:00
jumpstd gymstatue1
.Beaten:
2018-01-11 22:40:20 -08:00
trainertotext CHUCK, CHUCK1, MEM_BUFFER_1
2015-06-24 18:26:24 -07:00
jumpstd gymstatue2
2016-03-01 19:31:21 -08:00
CianwoodGymMovement_ChuckChucksBoulder:
set_sliding
2016-05-14 10:46:14 -07:00
big_step LEFT
big_step UP
fast_jump_step RIGHT
2016-03-01 19:31:21 -08:00
remove_sliding
step_end
2016-03-01 19:31:21 -08:00
ChuckIntroText1:
text "WAHAHAH!"
para "So you've come"
line "this far!"
para "Let me tell you,"
line "I'm tough!"
para "My #MON will"
line "crush stones and"
cont "shatter bones!"
para "Watch this!"
done
2016-03-01 19:31:21 -08:00
ChuckIntroText2:
text "CHUCK: Urggh!"
line "…"
para "Oooarrgh!"
done
2016-03-01 19:31:21 -08:00
ChuckIntroText3:
text "There! Scared now,"
line "are you?"
para "What?"
line "It has nothing to"
para "do with #MON?"
line "That's true!"
para "Come on. We shall"
line "do battle!"
done
2016-03-01 19:31:21 -08:00
ChuckLossText:
text "Wha? Huh?"
line "I lost?"
para "How about that!"
line "You're worthy of"
cont "STORMBADGE!"
done
2016-03-01 19:31:21 -08:00
GetStormBadgeText:
text "<PLAYER> received"
line "STORMBADGE."
done
2016-03-01 19:31:21 -08:00
ChuckExplainBadgeText:
text "STORMBADGE makes"
line "all #MON up to"
para "L70 obey, even"
line "traded ones."
para "It also lets your"
line "#MON use FLY"
para "when you're not in"
line "a battle."
para "Here, take this"
line "too!"
done
2016-03-01 19:31:21 -08:00
ChuckExplainTMText:
text "That is DYNAMIC-"
line "PUNCH."
para "It doesn't always"
line "hit, but when it"
para "does, it causes"
line "confusion!"
done
2016-03-01 19:31:21 -08:00
ChuckAfterText:
text "WAHAHAH! I enjoyed"
line "battling you!"
para "But a loss is a"
line "loss!"
para "From now on, I'm"
line "going to train 24"
cont "hours a day!"
done
2015-07-10 00:00:27 -07:00
BlackbeltYoshiSeenText:
text "My #MON and I"
line "are bound togeth-"
cont "er by friendship."
para "Our bond will"
line "never be broken!"
done
2015-07-10 00:00:27 -07:00
BlackbeltYoshiBeatenText:
text "This isn't real!"
done
2016-03-01 19:31:21 -08:00
BlackbeltYoshiAfterText:
text "You seem to have a"
line "strong bond with"
cont "your #MON too!"
done
2015-07-10 00:00:27 -07:00
BlackbeltLaoSeenText:
text "We martial artists"
line "fear nothing!"
done
2015-07-10 00:00:27 -07:00
BlackbeltLaoBeatenText:
text "That's shocking!"
done
2016-03-01 19:31:21 -08:00
BlackbeltLaoAfterText:
text "Fighting #MON"
line "are afraid of psy-"
cont "chics…"
done
2015-07-10 00:00:27 -07:00
BlackbeltNobSeenText:
text "Words are useless."
line "Let your fists do"
cont "the talking!"
done
2015-07-10 00:00:27 -07:00
BlackbeltNobBeatenText:
text "…"
done
2016-03-01 19:31:21 -08:00
BlackbeltNobAfterText:
text "I lost! "
line "I'm speechless!"
done
2015-07-10 00:00:27 -07:00
BlackbeltLungSeenText:
text "My raging fists"
line "will shatter your"
cont "#MON!"
done
2015-07-10 00:00:27 -07:00
BlackbeltLungBeatenText:
text "I got shattered!"
done
2016-03-01 19:31:21 -08:00
BlackbeltLungAfterText:
text "My #MON lost…"
line "My… my pride is"
cont "shattered…"
done
CianwoodGym_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
2018-02-01 19:22:07 -08:00
warp_event 4, 17, CIANWOOD_CITY, 2
warp_event 5, 17, CIANWOOD_CITY, 2
db 0 ; coord events
db 2 ; bg events
2018-02-01 19:22:07 -08:00
bg_event 3, 15, BGEVENT_READ, CianwoodGymStatue
bg_event 6, 15, BGEVENT_READ, CianwoodGymStatue
db 9 ; object events
2018-02-28 13:50:43 -08:00
object_event 4, 1, SPRITE_CHUCK, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, CianwoodGymChuckScript, -1
2018-02-01 19:22:07 -08:00
object_event 2, 12, SPRITE_BLACK_BELT, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 3, TrainerBlackbeltYoshi, -1
object_event 7, 12, SPRITE_BLACK_BELT, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 3, TrainerBlackbeltLao, -1
object_event 3, 9, SPRITE_BLACK_BELT, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 2, TrainerBlackbeltNob, -1
object_event 5, 5, SPRITE_BLACK_BELT, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 1, TrainerBlackbeltLung, -1
object_event 5, 1, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CianwoodGymBoulder, -1
object_event 3, 7, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CianwoodGymBoulder, -1
object_event 4, 7, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CianwoodGymBoulder, -1
object_event 5, 7, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CianwoodGymBoulder, -1