pokecrystal-board/maps/Route43Gate.asm

275 lines
5.4 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const ROUTE43GATE_OFFICER
const ROUTE43GATE_ROCKET1
const ROUTE43GATE_ROCKET2
2015-07-10 01:45:35 -07:00
Route43Gate_MapScriptHeader:
.MapTriggers:
db 2
; triggers
2017-10-25 21:29:44 -07:00
dw .Trigger0, 0
dw .Trigger1, 0
.MapCallbacks:
db 1
; callbacks
2017-10-25 21:29:44 -07:00
dbw MAPCALLBACK_NEWMAP, GateScript_CheckIfRockets
2017-10-25 21:29:44 -07:00
.Trigger0:
priorityjump GateScript_RocketTakeover
end
2017-10-25 21:29:44 -07:00
.Trigger1:
end
2017-10-25 21:29:44 -07:00
GateScript_CheckIfRockets:
2013-09-24 00:48:58 -07:00
checkevent EVENT_CLEARED_ROCKET_HIDEOUT
2017-10-25 21:29:44 -07:00
iftrue GateScript_NoRockets
domaptrigger ROUTE_43, $0
return
2017-10-25 21:29:44 -07:00
GateScript_NoRockets:
domaptrigger ROUTE_43, $1
return
2017-10-25 21:29:44 -07:00
GateScript_RocketTakeover:
playmusic MUSIC_ROCKET_ENCOUNTER
checkcode VAR_FACING
2017-10-25 21:29:44 -07:00
if_equal DOWN, RocketScript_Southbound
if_equal UP, RocketScript_Northbound
dotrigger $1
end
2017-10-25 21:29:44 -07:00
RocketScript_Southbound:
applymovement PLAYER, PlayerStepsIn
2015-11-26 21:22:14 -08:00
showemote EMOTE_SHOCK, ROUTE43GATE_ROCKET2, 15
2017-10-25 21:29:44 -07:00
applymovement ROUTE43GATE_ROCKET2, Rocket2Script_BlocksYouSouth
2015-11-26 21:22:14 -08:00
spriteface ROUTE43GATE_ROCKET1, UP
showemote EMOTE_SHOCK, ROUTE43GATE_ROCKET1, 15
2017-10-25 21:29:44 -07:00
applymovement ROUTE43GATE_ROCKET1, Rocket1Script_BlocksYouSouth
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 21:29:44 -07:00
writetext RocketText_TollFee
2015-11-29 19:29:45 -08:00
buttonsound
checkmoney $0, 999
2017-10-25 21:29:44 -07:00
if_equal $0, RocketScript_TollSouth
jump RocketScript_YoureBrokeSouth
2017-10-25 21:29:44 -07:00
RocketScript_TollSouth:
takemoney $0, 1000
2017-10-25 21:29:44 -07:00
writetext RocketText_ThankYou
jump RocketScript_ShakeDownSouth
2017-10-25 21:29:44 -07:00
RocketScript_YoureBrokeSouth:
takemoney $0, 1000
2017-10-25 21:29:44 -07:00
writetext RocketText_AllYouGot
jump RocketScript_ShakeDownSouth
2017-10-25 21:29:44 -07:00
RocketScript_ShakeDownSouth:
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-25 07:16:29 -08:00
closetext
2017-10-25 21:29:44 -07:00
applymovement ROUTE43GATE_ROCKET1, Rocket1Script_LetsYouPassSouth
applymovement ROUTE43GATE_ROCKET2, Rocket2Script_LetsYouPassSouth
dotrigger $1
special RestartMapMusic
end
2017-10-25 21:29:44 -07:00
RocketScript_Northbound:
2015-11-26 21:22:14 -08:00
showemote EMOTE_SHOCK, ROUTE43GATE_ROCKET1, 15
2017-10-25 21:29:44 -07:00
applymovement ROUTE43GATE_ROCKET1, Rocket1Script_BlocksYouNorth
2015-11-26 21:22:14 -08:00
spriteface ROUTE43GATE_ROCKET2, DOWN
showemote EMOTE_SHOCK, ROUTE43GATE_ROCKET2, 15
2017-10-25 21:29:44 -07:00
applymovement ROUTE43GATE_ROCKET2, Rocket2Script_BlocksYouNorth
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 21:29:44 -07:00
writetext RocketText_TollFee
2015-11-29 19:29:45 -08:00
buttonsound
checkmoney $0, 999
2017-10-25 21:29:44 -07:00
if_equal $0, RocketScript_TollNorth
jump RocketScript_YoureBrokeNorth
2017-10-25 21:29:44 -07:00
RocketScript_TollNorth:
takemoney $0, 1000
2017-10-25 21:29:44 -07:00
writetext RocketText_ThankYou
jump RocketScript_ShakeDownNorth
2017-10-25 21:29:44 -07:00
RocketScript_YoureBrokeNorth:
takemoney $0, 1000
2017-10-25 21:29:44 -07:00
writetext RocketText_AllYouGot
jump RocketScript_ShakeDownNorth
2017-10-25 21:29:44 -07:00
RocketScript_ShakeDownNorth:
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-25 07:16:29 -08:00
closetext
2017-10-25 21:29:44 -07:00
applymovement ROUTE43GATE_ROCKET2, Rocket2Script_LetsYouPassNorth
applymovement ROUTE43GATE_ROCKET1, Rocket1Script_LetsYouPassNorth
dotrigger $1
special RestartMapMusic
end
2017-10-25 21:29:44 -07:00
RocketScript_MakingABundle:
jumptextfaceplayer RocketText_MakingABundle
2017-10-25 21:29:44 -07:00
OfficerScript_GuardWithSludgeBomb:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_TM36_SLUDGE_BOMB
2017-10-25 21:29:44 -07:00
iftrue .GotSludgeBomb
writetext OfficerText_FoundTM
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-04 17:20:14 -08:00
verbosegiveitem TM_SLUDGE_BOMB
2017-10-25 21:29:44 -07:00
iffalse .NoRoomForSludgeBomb
2013-09-24 00:48:58 -07:00
setevent EVENT_GOT_TM36_SLUDGE_BOMB
2015-11-25 07:16:29 -08:00
closetext
end
2017-10-25 21:29:44 -07:00
.GotSludgeBomb:
writetext OfficerText_AvoidGrass
2015-11-25 07:16:29 -08:00
waitbutton
2017-10-25 21:29:44 -07:00
.NoRoomForSludgeBomb:
2015-11-25 07:16:29 -08:00
closetext
end
2017-10-25 21:29:44 -07:00
PlayerStepsIn:
2016-05-14 10:46:14 -07:00
step DOWN
step_end
2017-10-25 21:29:44 -07:00
Rocket1Script_BlocksYouSouth:
2016-05-14 10:46:14 -07:00
big_step UP
big_step UP
big_step RIGHT
big_step RIGHT
turn_head UP
step_end
2017-10-25 21:29:44 -07:00
Rocket1Script_LetsYouPassSouth:
2016-05-14 10:46:14 -07:00
big_step LEFT
big_step LEFT
big_step DOWN
big_step DOWN
step_end
2017-10-25 21:29:44 -07:00
Rocket1Script_BlocksYouNorth:
2016-05-14 10:46:14 -07:00
big_step DOWN
big_step DOWN
big_step RIGHT
big_step RIGHT
turn_head DOWN
step_end
2017-10-25 21:29:44 -07:00
Rocket1Script_LetsYouPassNorth:
2016-05-14 10:46:14 -07:00
big_step LEFT
big_step LEFT
big_step UP
big_step UP
turn_head DOWN
step_end
2017-10-25 21:29:44 -07:00
Rocket2Script_BlocksYouSouth:
2016-05-14 10:46:14 -07:00
big_step UP
big_step UP
big_step LEFT
big_step LEFT
turn_head UP
step_end
2017-10-25 21:29:44 -07:00
Rocket2Script_LetsYouPassSouth:
2016-05-14 10:46:14 -07:00
big_step RIGHT
big_step RIGHT
big_step DOWN
big_step DOWN
turn_head UP
step_end
2017-10-25 21:29:44 -07:00
Rocket2Script_BlocksYouNorth:
2016-05-14 10:46:14 -07:00
big_step DOWN
big_step DOWN
big_step LEFT
big_step LEFT
turn_head DOWN
step_end
2017-10-25 21:29:44 -07:00
Rocket2Script_LetsYouPassNorth:
2016-05-14 10:46:14 -07:00
big_step RIGHT
big_step RIGHT
big_step UP
big_step UP
step_end
2017-10-25 21:29:44 -07:00
RocketText_TollFee:
text "Hold it there,"
line "kiddo!"
para "The toll is ¥1000"
line "to go through."
done
2017-10-25 21:29:44 -07:00
RocketText_ThankYou:
text "Thank you very"
line "much!"
done
2017-10-25 21:29:44 -07:00
RocketText_AllYouGot:
text "Then pay what you"
line "have, please."
done
2017-10-25 21:29:44 -07: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-25 21:29:44 -07: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-25 21:29:44 -07:00
Text_ReceivedTM30:
text "<PLAYER> received"
line "TM30."
done
2017-10-25 21:29:44 -07:00
OfficerText_AvoidGrass:
text "Use this gate to"
line "avoid walking in"
cont "the grass."
done
2015-07-10 01:45:35 -07:00
Route43Gate_MapEventHeader:
; filler
db 0, 0
.Warps:
db 4
warp_def $0, $4, 4, ROUTE_43
warp_def $0, $5, 5, ROUTE_43
warp_def $7, $4, 3, ROUTE_43
warp_def $7, $5, 3, ROUTE_43
.XYTriggers:
db 0
.Signposts:
db 0
.PersonEvents:
db 3
2017-10-25 21:29:44 -07:00
person_event SPRITE_OFFICER, 4, 0, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_SCRIPT, 0, OfficerScript_GuardWithSludgeBomb, EVENT_LAKE_OF_RAGE_CIVILIANS
person_event SPRITE_ROCKET, 4, 2, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, RocketScript_MakingABundle, EVENT_ROUTE_43_GATE_ROCKETS
person_event SPRITE_ROCKET, 4, 7, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, RocketScript_MakingABundle, EVENT_ROUTE_43_GATE_ROCKETS