pokecrystal/maps/VictoryRoadGate.asm

127 lines
2.7 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const VICTORYROADGATE_OFFICER
const VICTORYROADGATE_BLACK_BELT1
const VICTORYROADGATE_BLACK_BELT2
2015-07-10 08:45:35 +00:00
VictoryRoadGate_MapScriptHeader:
.SceneScripts:
db 2
scene_script .DummyScene0
scene_script .DummyScene1
.MapCallbacks:
db 0
.DummyScene0:
end
.DummyScene1:
end
VictoryRoadGateBadgeCheckScene:
spriteface PLAYER, LEFT
jump VictoryRoadGateBadgeCheckScript
VictoryRoadGateOfficerScript:
faceplayer
VictoryRoadGateBadgeCheckScript:
2015-12-09 23:25:44 +00:00
opentext
writetext VictoryRoadGateOfficerText
2015-11-30 03:29:45 +00:00
buttonsound
checkcode VAR_BADGES
2018-01-12 06:40:20 +00:00
if_greater_than NUM_JOHTO_BADGES - 1, .AllEightBadges
writetext VictoryRoadGateNotEnoughBadgesText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
applymovement PLAYER, VictoryRoadGateStepDownMovement
end
.AllEightBadges:
writetext VictoryRoadGateEightBadgesText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
setscene 1
end
VictoryRoadGateLeftBlackBeltScript:
jumptextfaceplayer VictoryRoadGateLeftBlackBeltText
VictoryRoadGateRightBlackBeltScript:
jumptextfaceplayer VictoryRoadGateRightBlackBeltText
VictoryRoadGateStepDownMovement:
2016-05-14 17:46:14 +00:00
step DOWN
step_end
VictoryRoadGateOfficerText:
text "Only trainers who"
line "have proven them-"
cont "selves may pass."
done
VictoryRoadGateNotEnoughBadgesText:
text "You don't have all"
line "the GYM BADGES of"
cont "JOHTO."
para "I'm sorry, but I"
line "can't let you go"
cont "through."
done
VictoryRoadGateEightBadgesText:
text "Oh! The eight"
line "BADGES of JOHTO!"
para "Please, go right"
line "on through!"
done
VictoryRoadGateLeftBlackBeltText:
text "This way leads to"
line "MT.SILVER."
para "You'll see scary-"
line "strong #MON out"
cont "there."
done
VictoryRoadGateRightBlackBeltText:
text "Off to the #MON"
line "LEAGUE, are you?"
para "The ELITE FOUR are"
line "so strong it's"
para "scary, and they're"
line "ready for you!"
done
2015-07-10 08:45:35 +00:00
VictoryRoadGate_MapEventHeader:
; filler
db 0, 0
.Warps:
db 8
warp_def 17, 7, 1, ROUTE_22
warp_def 18, 7, 1, ROUTE_22
warp_def 9, 17, 1, ROUTE_26
warp_def 10, 17, 1, ROUTE_26
warp_def 9, 0, 1, VICTORY_ROAD
warp_def 10, 0, 1, VICTORY_ROAD
warp_def 1, 7, 2, ROUTE_28
warp_def 2, 7, 2, ROUTE_28
.CoordEvents:
db 1
coord_event 10, 11, 0, VictoryRoadGateBadgeCheckScene
.BGEvents:
db 0
.ObjectEvents:
db 3
object_event 8, 11, SPRITE_OFFICER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, VictoryRoadGateOfficerScript, -1
object_event 7, 5, SPRITE_BLACK_BELT, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, VictoryRoadGateLeftBlackBeltScript, EVENT_OPENED_MT_SILVER
object_event 12, 5, SPRITE_BLACK_BELT, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, VictoryRoadGateRightBlackBeltScript, EVENT_FOUGHT_SNORLAX