pokeemerald/data/scripts/maps/MossdeepCity_SpaceCenter_2F.inc
Diegoisawesome f497c1508b Split files from event_scripts.s
Also move maps/scripts to scripts/maps
2017-11-11 16:10:17 -06:00

525 lines
15 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

MossdeepCity_SpaceCenter_2F_MapScripts:: @ 8223D58
map_script 3, MossdeepCity_SpaceCenter_2F_MapScript1_223D63
map_script 2, MossdeepCity_SpaceCenter_2F_MapScript2_223DB5
.byte 0
MossdeepCity_SpaceCenter_2F_MapScript1_223D63: @ 8223D63
compare_var_to_value VAR_0x405D, 2
call_if 1, MossdeepCity_SpaceCenter_2F_EventScript_223D7A
compare_var_to_value VAR_0x409F, 2
call_if 1, MossdeepCity_SpaceCenter_2F_EventScript_223D9F
end
MossdeepCity_SpaceCenter_2F_EventScript_223D7A:: @ 8223D7A
clearflag FLAG_0x0CD
setobjectxyperm 3, 5, 3
setobjectmovementtype 3, 10
setobjectxyperm 1, 3, 2
setobjectmovementtype 1, 10
setobjectxyperm 2, 1, 3
setobjectmovementtype 2, 10
return
MossdeepCity_SpaceCenter_2F_EventScript_223D9F:: @ 8223D9F
setobjectxyperm 5, 11, 2
setobjectxyperm 7, 15, 2
setobjectxyperm 6, 13, 4
return
MossdeepCity_SpaceCenter_2F_MapScript2_223DB5: @ 8223DB5
map_script_2 VAR_0x409F, 1, MossdeepCity_SpaceCenter_2F_EventScript_223DBF
.2byte 0
MossdeepCity_SpaceCenter_2F_EventScript_223DBF:: @ 8223DBF
playse SE_PIN
applymovement 255, MossdeepCity_SpaceCenter_2F_Movement_272598
waitmovement 0
applymovement 255, MossdeepCity_SpaceCenter_2F_Movement_27259A
waitmovement 0
msgbox MossdeepCity_SpaceCenter_2F_Text_2243A4, 5
compare_var_to_value VAR_RESULT, 1
goto_eq MossdeepCity_SpaceCenter_2F_EventScript_223E09
msgbox MossdeepCity_SpaceCenter_2F_Text_2243FE, 4
closemessage
applymovement 255, MossdeepCity_SpaceCenter_2F_Movement_223E07
waitmovement 0
warp MOSSDEEP_CITY_SPACE_CENTER_1F, 255, 13, 1
waitstate
releaseall
end
MossdeepCity_SpaceCenter_2F_Movement_223E07: @ 8223E07
step_up
step_end
MossdeepCity_SpaceCenter_2F_EventScript_223E09:: @ 8223E09
msgbox MossdeepCity_SpaceCenter_2F_Text_22442D, 4
trainerbattle 3, TRAINER_GRUNT_34, 0, MossdeepCity_SpaceCenter_2F_Text_224461
applymovement 6, MossdeepCity_SpaceCenter_2F_Movement_223E85
waitmovement 0
applymovement 255, MossdeepCity_SpaceCenter_2F_Movement_2725A4
waitmovement 0
msgbox MossdeepCity_SpaceCenter_2F_Text_22446E, 4
trainerbattle 3, TRAINER_GRUNT_35, 0, MossdeepCity_SpaceCenter_2F_Text_224499
applymovement 5, MossdeepCity_SpaceCenter_2F_Movement_223E81
waitmovement 0
applymovement 255, MossdeepCity_SpaceCenter_2F_Movement_2725A8
waitmovement 0
msgbox MossdeepCity_SpaceCenter_2F_Text_2244AB, 4
trainerbattle 3, TRAINER_GRUNT_36, 0, MossdeepCity_SpaceCenter_2F_Text_2244F1
applymovement 7, MossdeepCity_SpaceCenter_2F_Movement_223E89
waitmovement 0
setvar VAR_0x409F, 2
moveobjectoffscreen 5
moveobjectoffscreen 7
moveobjectoffscreen 6
releaseall
end
MossdeepCity_SpaceCenter_2F_Movement_223E81: @ 8223E81
step_40
step_left
step_41
step_end
MossdeepCity_SpaceCenter_2F_Movement_223E85: @ 8223E85
step_40
step_down
step_41
step_end
MossdeepCity_SpaceCenter_2F_Movement_223E89: @ 8223E89
step_40
step_right
step_41
step_end
MossdeepCity_SpaceCenter_2F_EventScript_223E8D:: @ 8223E8D
lock
faceplayer
checkflag FLAG_SYS_GAME_CLEAR
goto_eq MossdeepCity_SpaceCenter_2F_EventScript_223EB4
compare_var_to_value VAR_0x405D, 2
goto_eq MossdeepCity_SpaceCenter_2F_EventScript_223EBE
compare_var_to_value VAR_0x405D, 2
goto_if 0, MossdeepCity_SpaceCenter_2F_EventScript_223EB4
goto MossdeepCity_SpaceCenter_2F_EventScript_223EBE
end
MossdeepCity_SpaceCenter_2F_EventScript_223EB4:: @ 8223EB4
msgbox MossdeepCity_SpaceCenter_2F_Text_2241A1, 4
release
end
MossdeepCity_SpaceCenter_2F_EventScript_223EBE:: @ 8223EBE
msgbox MossdeepCity_SpaceCenter_2F_Text_22420C, 4
release
end
MossdeepCity_SpaceCenter_2F_EventScript_223EC8:: @ 8223EC8
lock
faceplayer
checkflag FLAG_SYS_GAME_CLEAR
goto_eq MossdeepCity_SpaceCenter_2F_EventScript_223EEF
compare_var_to_value VAR_0x405D, 2
goto_eq MossdeepCity_SpaceCenter_2F_EventScript_223EF9
compare_var_to_value VAR_0x405D, 2
goto_if 0, MossdeepCity_SpaceCenter_2F_EventScript_223EEF
goto MossdeepCity_SpaceCenter_2F_EventScript_223EF9
end
MossdeepCity_SpaceCenter_2F_EventScript_223EEF:: @ 8223EEF
msgbox MossdeepCity_SpaceCenter_2F_Text_224253, 4
release
end
MossdeepCity_SpaceCenter_2F_EventScript_223EF9:: @ 8223EF9
msgbox MossdeepCity_SpaceCenter_2F_Text_2242C5, 4
release
end
MossdeepCity_SpaceCenter_2F_EventScript_223F03:: @ 8223F03
lock
faceplayer
checkflag FLAG_SYS_GAME_CLEAR
goto_eq MossdeepCity_SpaceCenter_2F_EventScript_223F2A
compare_var_to_value VAR_0x405D, 2
goto_eq MossdeepCity_SpaceCenter_2F_EventScript_223F34
compare_var_to_value VAR_0x405D, 2
goto_if 0, MossdeepCity_SpaceCenter_2F_EventScript_223F2A
goto MossdeepCity_SpaceCenter_2F_EventScript_223F34
end
MossdeepCity_SpaceCenter_2F_EventScript_223F2A:: @ 8223F2A
msgbox MossdeepCity_SpaceCenter_2F_Text_224342, 4
release
end
MossdeepCity_SpaceCenter_2F_EventScript_223F34:: @ 8223F34
msgbox MossdeepCity_SpaceCenter_2F_Text_224376, 4
release
end
MossdeepCity_SpaceCenter_2F_EventScript_223F3E:: @ 8223F3E
msgbox MossdeepCity_SpaceCenter_2F_Text_22452C, 2
end
MossdeepCity_SpaceCenter_2F_EventScript_223F47:: @ 8223F47
msgbox MossdeepCity_SpaceCenter_2F_Text_224570, 2
end
MossdeepCity_SpaceCenter_2F_EventScript_223F50:: @ 8223F50
msgbox MossdeepCity_SpaceCenter_2F_Text_2245AF, 2
end
MossdeepCity_SpaceCenter_2F_EventScript_223F59:: @ 8223F59
lock
faceplayer
msgbox MossdeepCity_SpaceCenter_2F_Text_2245D9, 4
applymovement VAR_LAST_TALKED, MossdeepCity_SpaceCenter_2F_Movement_2725A2
waitmovement 0
release
end
MossdeepCity_SpaceCenter_2F_EventScript_223F6F:: @ 8223F6F
lockall
msgbox MossdeepCity_SpaceCenter_2F_Text_22467B, 4
releaseall
end
MossdeepCity_SpaceCenter_2F_EventScript_223F7A:: @ 8223F7A
lockall
checkflag FLAG_0x0CD
goto_eq MossdeepCity_SpaceCenter_2F_EventScript_223FDA
setflag FLAG_0x0CD
msgbox MossdeepCity_SpaceCenter_2F_Text_2246B2, 4
msgbox MossdeepCity_SpaceCenter_2F_Text_2246F0, 4
closemessage
delay 30
playse SE_KOUKA_L
switch VAR_FACING
case 1, MossdeepCity_SpaceCenter_2F_EventScript_223FBA
applymovement 4, MossdeepCity_SpaceCenter_2F_Movement_223FC6
waitmovement 0
releaseall
end
MossdeepCity_SpaceCenter_2F_EventScript_223FBA:: @ 8223FBA
applymovement 4, MossdeepCity_SpaceCenter_2F_Movement_223FCF
waitmovement 0
releaseall
end
MossdeepCity_SpaceCenter_2F_Movement_223FC6: @ 8223FC6
step_40
step_16
step_16
step_41
step_14
step_14
slow_step_down
slow_step_down
step_end
MossdeepCity_SpaceCenter_2F_Movement_223FCF: @ 8223FCF
step_02
step_40
step_18
step_18
step_41
step_14
step_14
slow_step_left
slow_step_left
step_00
step_end
MossdeepCity_SpaceCenter_2F_EventScript_223FDA:: @ 8223FDA
applymovement VAR_LAST_TALKED, MossdeepCity_SpaceCenter_2F_Movement_27259E
waitmovement 0
msgbox MossdeepCity_SpaceCenter_2F_Text_2247FF, 5
compare_var_to_value VAR_RESULT, 1
goto_eq MossdeepCity_SpaceCenter_2F_EventScript_22400C
msgbox MossdeepCity_SpaceCenter_2F_Text_224854, 4
closemessage
applymovement VAR_LAST_TALKED, MossdeepCity_SpaceCenter_2F_Movement_2725AA
waitmovement 0
releaseall
end
MossdeepCity_SpaceCenter_2F_EventScript_22400C:: @ 822400C
applymovement VAR_LAST_TALKED, MossdeepCity_SpaceCenter_2F_Movement_2725AA
waitmovement 0
special copy_player_party_to_sav1
fadescreen 1
special sub_80F9438
waitstate
compare_var_to_value VAR_RESULT, 0
goto_if 5, MossdeepCity_SpaceCenter_2F_EventScript_224032
special copy_player_party_from_sav1
goto MossdeepCity_SpaceCenter_2F_EventScript_223FDA
MossdeepCity_SpaceCenter_2F_EventScript_224032:: @ 8224032
special sub_80F94E8
setvar VAR_0x8004, 2
setvar VAR_0x8005, 4
special sub_81A1780
setvar VAR_0x8004, 8
setvar VAR_0x8005, 0
special sub_8163AC4
waitstate
setvar VAR_0x8004, 6
special sub_81A1780
special copy_player_party_from_sav1
switch VAR_RESULT
case 1, MossdeepCity_SpaceCenter_2F_EventScript_224071
fadescreen 1
special sp0C8_whiteout_maybe
waitstate
MossdeepCity_SpaceCenter_2F_EventScript_224071:: @ 8224071
msgbox MossdeepCity_SpaceCenter_2F_Text_2248C2, 4
closemessage
delay 20
applymovement 9, MossdeepCity_SpaceCenter_2F_Movement_2725A4
applymovement 8, MossdeepCity_SpaceCenter_2F_Movement_2725AA
waitmovement 0
delay 60
applymovement 9, MossdeepCity_SpaceCenter_2F_Movement_2725A6
applymovement 8, MossdeepCity_SpaceCenter_2F_Movement_2725A8
waitmovement 0
delay 20
msgbox MossdeepCity_SpaceCenter_2F_Text_2249DC, 4
closemessage
setvar VAR_0x405D, 3
fadedefaultbgm
fadescreen 1
setvar VAR_0x409F, 3
setflag FLAG_0x2F4
setflag FLAG_0x35E
setflag FLAG_0x337
removeobject 5
removeobject 7
removeobject 6
removeobject 8
removeobject 9
setobjectxy 3, 5, 6
turnobject 3, 1
setobjectxy 2, 11, 8
turnobject 2, 2
setobjectxy 1, 6, 2
turnobject 1, 2
call MossdeepCity_SpaceCenter_2F_EventScript_224131
fadescreen 0
msgbox MossdeepCity_SpaceCenter_2F_Text_224A4A, 4
closemessage
fadescreen 1
setflag FLAG_0x075
setflag FLAG_0x3C7
removeobject 4
setflag FLAG_0x2E1
clearflag FLAG_0x3C7
setvar VAR_0x40C6, 1
setflag FLAG_0x314
removeobject 3
setobjectxyperm 3, 5, 6
setobjectmovementtype 3, 2
addobject 3
fadescreen 0
end
MossdeepCity_SpaceCenter_2F_EventScript_224131:: @ 8224131
switch VAR_FACING
case 1, MossdeepCity_SpaceCenter_2F_EventScript_22414D
case 3, MossdeepCity_SpaceCenter_2F_EventScript_224152
return
MossdeepCity_SpaceCenter_2F_EventScript_22414D:: @ 822414D
turnobject 4, 2
return
MossdeepCity_SpaceCenter_2F_EventScript_224152:: @ 8224152
turnobject 4, 4
return
MossdeepCity_SpaceCenter_2F_EventScript_224157:: @ 8224157
trainerbattle 10, TRAINER_MAXIE_3, 0, MossdeepCity_SpaceCenter_2F_Text_22487C, MossdeepCity_SpaceCenter_2F_Text_22487C
end
MossdeepCity_SpaceCenter_2F_EventScript_224166:: @ 8224166
trainerbattle 11, TRAINER_TABITHA_1, 0, MossdeepCity_SpaceCenter_Text_2248AD, MossdeepCity_SpaceCenter_Text_2248AD
end
MossdeepCity_SpaceCenter_2F_EventScript_224175:: @ 8224175
lockall
checkplayergender
compare_var_to_value VAR_RESULT, 0
call_if 1, MossdeepCity_SpaceCenter_2F_EventScript_224193
compare_var_to_value VAR_RESULT, 1
call_if 1, MossdeepCity_SpaceCenter_2F_EventScript_22419A
closemessage
clearflag FLAG_0x075
releaseall
end
MossdeepCity_SpaceCenter_2F_EventScript_224193:: @ 8224193
pokenavcall MossdeepCity_SpaceCenter_2F_Text_2B38C1
waitmessage
return
MossdeepCity_SpaceCenter_2F_EventScript_22419A:: @ 822419A
pokenavcall MossdeepCity_SpaceCenter_2F_Text_2B39C6
waitmessage
return
MossdeepCity_SpaceCenter_2F_Text_2241A1: @ 82241A1
.string "MOSSDEEP has mainly sunny weather,\n"
.string "and its winds are stable.\p"
.string "Its an ideal location for launching\n"
.string "rockets.$"
MossdeepCity_SpaceCenter_2F_Text_22420C: @ 822420C
.string "Why would TEAM MAGMA want to steal\n"
.string "our rocket fuel in the first place?$"
MossdeepCity_SpaceCenter_2F_Text_224253: @ 8224253
.string "If only I was a little younger, I would\n"
.string "have liked being an astronaut…\p"
.string "No… Its not too late!\n"
.string "I can and will try!$"
MossdeepCity_SpaceCenter_2F_Text_2242C5: @ 82242C5
.string "If TEAM MAGMA takes the rocket fuel,\n"
.string "I wont be able to go to space!\p"
.string "They cant be allowed to get away\n"
.string "with such an outrage!$"
MossdeepCity_SpaceCenter_2F_Text_224342: @ 8224342
.string "I wish ordinary people could go into\n"
.string "space one day…$"
MossdeepCity_SpaceCenter_2F_Text_224376: @ 8224376
.string "TEAM MAGMA…\n"
.string "Do they want to go to space, too?$"
MossdeepCity_SpaceCenter_2F_Text_2243A4: @ 82243A4
.string "Whats wrong with you?\p"
.string "Youre outnumbered three to one,\n"
.string "but you still want to take us on?$"
MossdeepCity_SpaceCenter_2F_Text_2243FE: @ 82243FE
.string "Good answer!\n"
.string "Thats what a smart personll do!$"
MossdeepCity_SpaceCenter_2F_Text_22442D: @ 822442D
.string "A reckless go-getter, are you?\n"
.string "Okay, Ill go first!$"
MossdeepCity_SpaceCenter_2F_Text_224461: @ 8224461
.string "I lost!\n"
.string "But!$"
MossdeepCity_SpaceCenter_2F_Text_22446E: @ 822446E
.string "Its too soon to be relieved!\n"
.string "Im up next!$"
MossdeepCity_SpaceCenter_2F_Text_224499: @ 8224499
.string "I lost, too!\n"
.string "But!$"
MossdeepCity_SpaceCenter_2F_Text_2244AB: @ 82244AB
.string "I bet you want to take a break.\n"
.string "But Im not about to let you do that!$"
MossdeepCity_SpaceCenter_2F_Text_2244F1: @ 82244F1
.string "We shouldve taken a break…\n"
.string "Thats what we shouldve done…$"
MossdeepCity_SpaceCenter_2F_Text_22452C: @ 822452C
.string "Three of us here, and look at the sorry\n"
.string "mess we got ourselves into.$"
MossdeepCity_SpaceCenter_2F_Text_224570: @ 8224570
.string "We three losing like this…\n"
.string "We look worse than usual by triple!$"
MossdeepCity_SpaceCenter_2F_Text_2245AF: @ 82245AF
.string "Are we being useful to our leader\n"
.string "at all?$"
MossdeepCity_SpaceCenter_2F_Text_2245D9: @ 82245D9
.string "Hehehe!\p"
.string "We come all the way here to get some\n"
.string "fuel, and were interfered with again!\p"
.string "If youre going to mess with us too,\n"
.string "well take care of you at the same time!$"
MossdeepCity_SpaceCenter_2F_Text_22467B: @ 822467B
.string "MAXIE: Clear out of the way!\n"
.string "Dont you dare interfere!$"
MossdeepCity_SpaceCenter_2F_Text_2246B2: @ 82246B2
.string "STEVEN: TEAM MAGMA…\p"
.string "Whats the point of stealing rocket\n"
.string "fuel?$"
MossdeepCity_SpaceCenter_2F_Text_2246F0: @ 82246F0
.string "MAXIE: Fufufu… Since youre so\n"
.string "curious, you deserve an explanation.\p"
.string "Were going to jettison the entire\n"
.string "load into MT. CHIMNEY!\p"
.string "With GROUDON gone, we have no need\n"
.string "for that slag heap of a mountain!\p"
.string "So well use the fuels power to make\n"
.string "the volcano erupt!\p"
.string "It will be savage!$"
MossdeepCity_SpaceCenter_2F_Text_2247FF: @ 82247FF
.string "STEVEN: {PLAYER}{KUN}!\n"
.string "Youre going to help me?\p"
.string "Lets go into battle together!\n"
.string "Are you ready?$"
MossdeepCity_SpaceCenter_2F_Text_224854: @ 8224854
.string "STEVEN: Then, hurry!\n"
.string "Get ready quickly!$"
MossdeepCity_SpaceCenter_2F_Text_22487C: @ 822487C
.string "All I want…\n"
.string "I just want to expand the land mass…$"
MossdeepCity_SpaceCenter_Text_2248AD: @ 82248AD
.string "Im with our leader…$"
MossdeepCity_SpaceCenter_2F_Text_2248C2: @ 82248C2
.string "MAXIE: We failed to make the volcano\n"
.string "erupt…\p"
.string "We failed to control GROUDON after\n"
.string "we had awoken it…\p"
.string "Is our goal to expand the land\n"
.string "misguided?\p"
.string "… … … … … …\n"
.string "… … … … … …\p"
.string "If…\n"
.string "If we, TEAM MAGMA, are wrong…\l"
.string "… … … … … …\p"
.string "Then might TEAM AQUAs goal to expand\n"
.string "the sea also be equally misguided?$"
MossdeepCity_SpaceCenter_2F_Text_2249DC: @ 82249DC
.string "MAXIE: All right…\n"
.string "We will give up on the fuel…\p"
.string "There appear to be more important\n"
.string "matters that I must examine…$"
MossdeepCity_SpaceCenter_2F_Text_224A4A: @ 8224A4A
.string "STEVEN: Whew, that was too tense.\n"
.string "{PLAYER}{KUN}, thank you.\p"
.string "I have something to give you as\n"
.string "thanks for your support.\p"
.string "Please come see me at home\n"
.string "after this.\p"
.string "Oh, yes, I dont live in RUSTBORO CITY.\n"
.string "I live right here on this island.$"