diff options
Diffstat (limited to 'data/maps/SevenIsland_House_Room2/scripts.inc')
-rw-r--r-- | data/maps/SevenIsland_House_Room2/scripts.inc | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/data/maps/SevenIsland_House_Room2/scripts.inc b/data/maps/SevenIsland_House_Room2/scripts.inc new file mode 100644 index 000000000..13d5e0170 --- /dev/null +++ b/data/maps/SevenIsland_House_Room2/scripts.inc @@ -0,0 +1,79 @@ +SevenIsland_House_Room2_MapScripts:: @ 8170A7E + map_script 3, SevenIsland_House_Room2_MapScript1_170A89 + map_script 2, SevenIsland_House_Room2_MapScript2_170A8D + .byte 0 + +SevenIsland_House_Room2_MapScript1_170A89:: @ 8170A89 + special sub_80E5E70 + end + +SevenIsland_House_Room2_MapScript2_170A8D:: @ 8170A8D + map_script_2 VAR_0x4001, 0, EventScript_170A97 + .2byte 0 + +EventScript_170A97:: @ 8170A97 + lockall + applymovement 255, Movement_170B22 + waitmovement 0 + special sub_80E7538 + loadword 0, gStringVar4 @ 2021D18 + callstd 4 + closemessage + setvar VAR_0x8004, 2 + setvar VAR_0x8005, 0 + special sub_80E6900 + waitstate + compare_var_to_value VAR_RESULT, 3 + call_if 1, EventScript_170AFE + compare_var_to_value VAR_RESULT, 1 + call_if 1, EventScript_170B0C + compare_var_to_value VAR_RESULT, 2 + call_if 1, EventScript_170B17 + closemessage + special sp000_heal_pokemon + applymovement 255, Movement_170B28 + waitmovement 0 + special LoadPlayerParty + setvar VAR_0x4001, 1 + warp MAP_SEVENISLAND_HOUSE_ROOM1, 255, 4, 1 + waitstate + releaseall + end + +EventScript_170AFE:: @ 8170AFE + setvar VAR_0x4074, 3 + loadword 0, gUnknown_81A07EC + callstd 4 + return + +EventScript_170B0C:: @ 8170B0C + setvar VAR_0x4074, 1 + special sub_80CA68C + waitmessage + waitbuttonpress + return + +EventScript_170B17:: @ 8170B17 + setvar VAR_0x4074, 2 + special sub_80CA68C + waitmessage + waitbuttonpress + return + +Movement_170B22:: @ 8170B22 + step_10 + step_10 + step_10 + step_13 + step_13 + step_end + +Movement_170B28:: @ 8170B28 + step_12 + step_12 + step_11 + step_11 + step_11 + step_11 + step_1b + step_end |