mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-19 13:07:38 +01:00
216 lines
7.0 KiB
PHP
216 lines
7.0 KiB
PHP
SootopolisCity_MysteryEventsHouse_1F_MapScripts:: @ 8227953
|
||
map_script 3, SootopolisCity_MysteryEventsHouse_1F_MapScript1_22795E
|
||
map_script 2, SootopolisCity_MysteryEventsHouse_1F_MapScript2_22799D
|
||
.byte 0
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_MapScript1_22795E: @ 822795E
|
||
setvar VAR_0x8004, 16
|
||
special sub_81A1780
|
||
compare_var_to_value VAR_RESULT, 0
|
||
call_if 1, SootopolisCity_MysteryEventsHouse_1F_EventScript_22797D
|
||
compare_var_to_value VAR_0x40C0, 0
|
||
call_if 5, SootopolisCity_MysteryEventsHouse_1F_EventScript_227991
|
||
end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_22797D:: @ 822797D
|
||
setvar VAR_0x4001, 1
|
||
setobjectxyperm 1, 3, 2
|
||
setobjectmovementtype 1, 8
|
||
setmaplayoutindex 441
|
||
return
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227991:: @ 8227991
|
||
setobjectxyperm 1, 2, 2
|
||
setobjectmovementtype 1, 10
|
||
return
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_MapScript2_22799D: @ 822799D
|
||
map_script_2 VAR_0x40C0, 1, SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7
|
||
map_script_2 VAR_0x40C0, 2, SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7
|
||
map_script_2 VAR_0x40C0, 3, SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7
|
||
.2byte 0
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7:: @ 82279B7
|
||
lockall
|
||
applymovement 255, SootopolisCity_MysteryEventsHouse_1F_Movement_227A1F
|
||
waitmovement 0
|
||
applymovement 1, SootopolisCity_MysteryEventsHouse_1F_Movement_227A21
|
||
waitmovement 0
|
||
moveobjectoffscreen 1
|
||
applymovement 255, SootopolisCity_MysteryEventsHouse_1F_Movement_2725A6
|
||
waitmovement 0
|
||
compare_var_to_value VAR_0x40C0, 1
|
||
call_if 1, SootopolisCity_MysteryEventsHouse_1F_EventScript_227A04
|
||
compare_var_to_value VAR_0x40C0, 2
|
||
call_if 1, SootopolisCity_MysteryEventsHouse_1F_EventScript_227A0D
|
||
compare_var_to_value VAR_0x40C0, 3
|
||
call_if 1, SootopolisCity_MysteryEventsHouse_1F_EventScript_227A16
|
||
special copy_player_party_from_sav1
|
||
setvar VAR_0x40C0, 0
|
||
releaseall
|
||
end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A04:: @ 8227A04
|
||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227DB8, 4
|
||
return
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A0D:: @ 8227A0D
|
||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227E03, 4
|
||
return
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A16:: @ 8227A16
|
||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227D5B, 4
|
||
return
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Movement_227A1F: @ 8227A1F
|
||
step_down
|
||
step_end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Movement_227A21: @ 8227A21
|
||
step_right
|
||
step_25
|
||
step_end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A24:: @ 8227A24
|
||
lock
|
||
faceplayer
|
||
setvar VAR_0x8004, 16
|
||
special sub_81A1780
|
||
compare_var_to_value VAR_RESULT, 1
|
||
goto_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A4E
|
||
compare_var_to_value VAR_0x4001, 1
|
||
goto_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A58
|
||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227B46, 4
|
||
release
|
||
end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A4E:: @ 8227A4E
|
||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227B46, 4
|
||
release
|
||
end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227A58:: @ 8227A58
|
||
special copy_player_party_to_sav1
|
||
special sub_8139238
|
||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227BFC, 5
|
||
compare_var_to_value VAR_RESULT, 0
|
||
goto_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2
|
||
call SootopolisCity_MysteryEventsHouse_1F_EventScript_227AEF
|
||
compare_var_to_value VAR_RESULT, 0
|
||
goto_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2
|
||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227CEB, 5
|
||
compare_var_to_value VAR_RESULT, 0
|
||
goto_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2
|
||
special copy_player_party_from_sav1
|
||
call SootopolisCity_MysteryEventsHouse_1F_EventScript_27134F
|
||
compare_var_to_value VAR_RESULT, 0
|
||
goto_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2
|
||
special copy_player_party_to_sav1
|
||
special sub_80F94E8
|
||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227D21, 4
|
||
closemessage
|
||
compare_var_to_value VAR_FACING, 2
|
||
call_if 1, SootopolisCity_MysteryEventsHouse_1F_EventScript_227AFE
|
||
compare_var_to_value VAR_FACING, 4
|
||
call_if 1, SootopolisCity_MysteryEventsHouse_1F_EventScript_227B10
|
||
compare_var_to_value VAR_FACING, 3
|
||
call_if 1, SootopolisCity_MysteryEventsHouse_1F_EventScript_227B22
|
||
warp SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_B1F, 255, 3, 1
|
||
waitstate
|
||
release
|
||
end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227AE2:: @ 8227AE2
|
||
special copy_player_party_from_sav1
|
||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227C44, 4
|
||
release
|
||
end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227AEF:: @ 8227AEF
|
||
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227C84, 4
|
||
fadescreen 1
|
||
special sub_80F9438
|
||
waitstate
|
||
return
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227AFE:: @ 8227AFE
|
||
applymovement VAR_LAST_TALKED, SootopolisCity_MysteryEventsHouse_1F_Movement_227B40
|
||
applymovement 255, SootopolisCity_MysteryEventsHouse_1F_Movement_227B34
|
||
waitmovement 0
|
||
return
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227B10:: @ 8227B10
|
||
applymovement VAR_LAST_TALKED, SootopolisCity_MysteryEventsHouse_1F_Movement_227B43
|
||
applymovement 255, SootopolisCity_MysteryEventsHouse_1F_Movement_227B38
|
||
waitmovement 0
|
||
return
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_EventScript_227B22:: @ 8227B22
|
||
applymovement VAR_LAST_TALKED, SootopolisCity_MysteryEventsHouse_1F_Movement_227B40
|
||
applymovement 255, SootopolisCity_MysteryEventsHouse_1F_Movement_227B3C
|
||
waitmovement 0
|
||
return
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Movement_227B34: @ 8227B34
|
||
step_14
|
||
step_up
|
||
step_up
|
||
step_end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Movement_227B38: @ 8227B38
|
||
step_14
|
||
step_right
|
||
step_up
|
||
step_end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Movement_227B3C: @ 8227B3C
|
||
step_14
|
||
step_left
|
||
step_up
|
||
step_end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Movement_227B40: @ 8227B40
|
||
step_left
|
||
step_28
|
||
step_end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Movement_227B43: @ 8227B43
|
||
step_right
|
||
step_27
|
||
step_end
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Text_227B46: @ 8227B46
|
||
.string "When I was young, I traveled the world\n"
|
||
.string "as a POKéMON TRAINER.\p"
|
||
.string "Now that I’ve become an old buzzard,\n"
|
||
.string "my only amusement is watching young\l"
|
||
.string "TRAINERS battle.$"
|
||
|
||
.incbin "baserom.gba", 0x227bdd, 0x1f
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Text_227BFC: @ 8227BFC
|
||
.string "A TRAINER named {STR_VAR_1}\n"
|
||
.string "is visiting my home.\p"
|
||
.string "Would you like to challenge\n"
|
||
.string "{STR_VAR_1}?$"
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Text_227C44: @ 8227C44
|
||
.string "You won’t battle? I’m disappointed\n"
|
||
.string "that I can’t see you battle…$"
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Text_227C84: @ 8227C84
|
||
.string "Oh, good, good!\p"
|
||
.string "But my house isn’t all that sturdy.\p"
|
||
.string "Could I ask you to keep it down to\n"
|
||
.string "a 3-on-3 match?$"
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Text_227CEB: @ 8227CEB
|
||
.string "Before you two battle, you should\n"
|
||
.string "save your progress.$"
|
||
|
||
SootopolisCity_MysteryEventsHouse_1F_Text_227D21: @ 8227D21
|
||
.string "I hope to see a good match!$"
|
||
|
||
.incbin "baserom.gba", 0x227d3d, 0x3
|
||
|