pokecrystal/maps/Route43Gate.asm

265 lines
5.7 KiB
NASM
Raw Normal View History

ROUTE43GATE_TOLL EQU 1000
object_const_def ; object_event constants
2015-11-27 05:22:14 +00:00
const ROUTE43GATE_OFFICER
const ROUTE43GATE_ROCKET1
const ROUTE43GATE_ROCKET2
Route43Gate_MapScripts:
db 2 ; scene scripts
scene_script .RocketShakedown ; SCENE_DEFAULT
scene_script .DummyScene ; SCENE_FINISHED
db 1 ; callbacks
callback MAPCALLBACK_NEWMAP, .CheckIfRockets
.RocketShakedown:
prioritysjump .RocketTakeover
end
.DummyScene:
end
.CheckIfRockets:
2013-09-24 07:48:58 +00:00
checkevent EVENT_CLEARED_ROCKET_HIDEOUT
iftrue .NoRockets
setmapscene ROUTE_43, 0 ; Route 43 does not have a scene variable
return
.NoRockets:
setmapscene ROUTE_43, 1 ; Route 43 does not have a scene variable
return
.RocketTakeover:
playmusic MUSIC_ROCKET_ENCOUNTER
readvar VAR_FACING
2018-02-03 02:09:17 +00:00
ifequal DOWN, RocketScript_Southbound
ifequal UP, RocketScript_Northbound
setscene SCENE_FINISHED
end
2017-10-26 04:29:44 +00:00
RocketScript_Southbound:
applymovement PLAYER, PlayerStepsIn
2015-11-27 05:22:14 +00:00
showemote EMOTE_SHOCK, ROUTE43GATE_ROCKET2, 15
2017-10-26 04:29:44 +00:00
applymovement ROUTE43GATE_ROCKET2, Rocket2Script_BlocksYouSouth
turnobject ROUTE43GATE_ROCKET1, UP
2015-11-27 05:22:14 +00:00
showemote EMOTE_SHOCK, ROUTE43GATE_ROCKET1, 15
2017-10-26 04:29:44 +00:00
applymovement ROUTE43GATE_ROCKET1, Rocket1Script_BlocksYouSouth
2015-12-09 23:25:44 +00:00
opentext
2017-10-26 04:29:44 +00:00
writetext RocketText_TollFee
2015-11-30 03:29:45 +00:00
buttonsound
2018-01-12 06:40:20 +00:00
checkmoney YOUR_MONEY, ROUTE43GATE_TOLL - 1
2018-02-03 02:09:17 +00:00
ifequal HAVE_MORE, RocketScript_TollSouth
sjump RocketScript_YoureBrokeSouth
2017-10-26 04:29:44 +00:00
RocketScript_TollSouth:
2018-01-12 06:40:20 +00:00
takemoney YOUR_MONEY, ROUTE43GATE_TOLL
2017-10-26 04:29:44 +00:00
writetext RocketText_ThankYou
sjump RocketScript_ShakeDownSouth
2017-10-26 04:29:44 +00:00
RocketScript_YoureBrokeSouth:
2018-01-12 06:40:20 +00:00
takemoney YOUR_MONEY, ROUTE43GATE_TOLL
2017-10-26 04:29:44 +00:00
writetext RocketText_AllYouGot
sjump RocketScript_ShakeDownSouth
2017-10-26 04:29:44 +00:00
RocketScript_ShakeDownSouth:
2015-11-30 03:29:45 +00:00
buttonsound
2015-11-25 15:16:29 +00:00
closetext
2017-10-26 04:29:44 +00:00
applymovement ROUTE43GATE_ROCKET1, Rocket1Script_LetsYouPassSouth
applymovement ROUTE43GATE_ROCKET2, Rocket2Script_LetsYouPassSouth
setscene SCENE_FINISHED
special RestartMapMusic
end
2017-10-26 04:29:44 +00:00
RocketScript_Northbound:
2015-11-27 05:22:14 +00:00
showemote EMOTE_SHOCK, ROUTE43GATE_ROCKET1, 15
2017-10-26 04:29:44 +00:00
applymovement ROUTE43GATE_ROCKET1, Rocket1Script_BlocksYouNorth
turnobject ROUTE43GATE_ROCKET2, DOWN
2015-11-27 05:22:14 +00:00
showemote EMOTE_SHOCK, ROUTE43GATE_ROCKET2, 15
2017-10-26 04:29:44 +00:00
applymovement ROUTE43GATE_ROCKET2, Rocket2Script_BlocksYouNorth
2015-12-09 23:25:44 +00:00
opentext
2017-10-26 04:29:44 +00:00
writetext RocketText_TollFee
2015-11-30 03:29:45 +00:00
buttonsound
2018-01-12 06:40:20 +00:00
checkmoney YOUR_MONEY, ROUTE43GATE_TOLL - 1
2018-02-03 02:09:17 +00:00
ifequal HAVE_MORE, RocketScript_TollNorth
sjump RocketScript_YoureBrokeNorth
2017-10-26 04:29:44 +00:00
RocketScript_TollNorth:
2018-01-12 06:40:20 +00:00
takemoney YOUR_MONEY, ROUTE43GATE_TOLL
2017-10-26 04:29:44 +00:00
writetext RocketText_ThankYou
sjump RocketScript_ShakeDownNorth
2017-10-26 04:29:44 +00:00
RocketScript_YoureBrokeNorth:
2018-01-12 06:40:20 +00:00
takemoney YOUR_MONEY, ROUTE43GATE_TOLL
2017-10-26 04:29:44 +00:00
writetext RocketText_AllYouGot
sjump RocketScript_ShakeDownNorth
2017-10-26 04:29:44 +00:00
RocketScript_ShakeDownNorth:
2015-11-30 03:29:45 +00:00
buttonsound
2015-11-25 15:16:29 +00:00
closetext
2017-10-26 04:29:44 +00:00
applymovement ROUTE43GATE_ROCKET2, Rocket2Script_LetsYouPassNorth
applymovement ROUTE43GATE_ROCKET1, Rocket1Script_LetsYouPassNorth
setscene SCENE_FINISHED
special RestartMapMusic
end
2017-10-26 04:29:44 +00:00
RocketScript_MakingABundle:
jumptextfaceplayer RocketText_MakingABundle
2017-10-26 04:29:44 +00:00
OfficerScript_GuardWithSludgeBomb:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_TM36_SLUDGE_BOMB
2017-10-26 04:29:44 +00:00
iftrue .GotSludgeBomb
writetext OfficerText_FoundTM
2015-11-30 03:29:45 +00:00
buttonsound
2015-11-05 01:20:14 +00:00
verbosegiveitem TM_SLUDGE_BOMB
2017-10-26 04:29:44 +00:00
iffalse .NoRoomForSludgeBomb
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_TM36_SLUDGE_BOMB
2015-11-25 15:16:29 +00:00
closetext
end
2017-10-26 04:29:44 +00:00
.GotSludgeBomb:
writetext OfficerText_AvoidGrass
2015-11-25 15:16:29 +00:00
waitbutton
2017-10-26 04:29:44 +00:00
.NoRoomForSludgeBomb:
2015-11-25 15:16:29 +00:00
closetext
end
2017-10-26 04:29:44 +00:00
PlayerStepsIn:
2016-05-14 17:46:14 +00:00
step DOWN
step_end
2017-10-26 04:29:44 +00:00
Rocket1Script_BlocksYouSouth:
2016-05-14 17:46:14 +00:00
big_step UP
big_step UP
big_step RIGHT
big_step RIGHT
turn_head UP
step_end
2017-10-26 04:29:44 +00:00
Rocket1Script_LetsYouPassSouth:
2016-05-14 17:46:14 +00:00
big_step LEFT
big_step LEFT
big_step DOWN
big_step DOWN
step_end
2017-10-26 04:29:44 +00:00
Rocket1Script_BlocksYouNorth:
2016-05-14 17:46:14 +00:00
big_step DOWN
big_step DOWN
big_step RIGHT
big_step RIGHT
turn_head DOWN
step_end
2017-10-26 04:29:44 +00:00
Rocket1Script_LetsYouPassNorth:
2016-05-14 17:46:14 +00:00
big_step LEFT
big_step LEFT
big_step UP
big_step UP
turn_head DOWN
step_end
2017-10-26 04:29:44 +00:00
Rocket2Script_BlocksYouSouth:
2016-05-14 17:46:14 +00:00
big_step UP
big_step UP
big_step LEFT
big_step LEFT
turn_head UP
step_end
2017-10-26 04:29:44 +00:00
Rocket2Script_LetsYouPassSouth:
2016-05-14 17:46:14 +00:00
big_step RIGHT
big_step RIGHT
big_step DOWN
big_step DOWN
turn_head UP
step_end
2017-10-26 04:29:44 +00:00
Rocket2Script_BlocksYouNorth:
2016-05-14 17:46:14 +00:00
big_step DOWN
big_step DOWN
big_step LEFT
big_step LEFT
turn_head DOWN
step_end
2017-10-26 04:29:44 +00:00
Rocket2Script_LetsYouPassNorth:
2016-05-14 17:46:14 +00:00
big_step RIGHT
big_step RIGHT
big_step UP
big_step UP
step_end
2017-10-26 04:29:44 +00:00
RocketText_TollFee:
text "Hold it there,"
line "kiddo!"
para "The toll is ¥1000"
line "to go through."
done
2017-10-26 04:29:44 +00:00
RocketText_ThankYou:
text "Thank you very"
line "much!"
done
2017-10-26 04:29:44 +00:00
RocketText_AllYouGot:
text "Then pay what you"
line "have, please."
done
2017-10-26 04:29:44 +00:00
RocketText_MakingABundle:
text "He-he-he. We're"
line "making a bundle."
para "Everyone wants to"
line "see what's going"
para "on up at LAKE OF"
line "RAGE."
done
2017-10-26 04:29:44 +00:00
OfficerText_FoundTM:
text "I got chased from"
line "my post by these"
cont "thugs in black."
para "They left this"
line "behind."
para "It makes me uncom-"
line "fortable. Could"
cont "you take it away?"
done
2017-10-26 04:29:44 +00:00
Text_ReceivedTM30:
text "<PLAYER> received"
line "TM30."
done
2017-10-26 04:29:44 +00:00
OfficerText_AvoidGrass:
text "Use this gate to"
line "avoid walking in"
cont "the grass."
done
Route43Gate_MapEvents:
db 0, 0 ; filler
db 4 ; warp events
2018-02-02 03:22:07 +00:00
warp_event 4, 0, ROUTE_43, 4
warp_event 5, 0, ROUTE_43, 5
warp_event 4, 7, ROUTE_43, 3
warp_event 5, 7, ROUTE_43, 3
db 0 ; coord events
db 0 ; bg events
db 3 ; object events
2018-02-02 03:22:07 +00:00
object_event 0, 4, SPRITE_OFFICER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, OfficerScript_GuardWithSludgeBomb, EVENT_LAKE_OF_RAGE_CIVILIANS
object_event 2, 4, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, RocketScript_MakingABundle, EVENT_ROUTE_43_GATE_ROCKETS
object_event 7, 4, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, RocketScript_MakingABundle, EVENT_ROUTE_43_GATE_ROCKETS