diff options
Diffstat (limited to 'data/maps/scripts/SouthernIsland_Interior.s')
-rw-r--r-- | data/maps/scripts/SouthernIsland_Interior.s | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/data/maps/scripts/SouthernIsland_Interior.s b/data/maps/scripts/SouthernIsland_Interior.s new file mode 100644 index 000000000..cc6fdf139 --- /dev/null +++ b/data/maps/scripts/SouthernIsland_Interior.s @@ -0,0 +1,110 @@ +SouthernIsland_Interior_MapScripts:: @ 8160B53 + map_script 5, SouthernIsland_Interior_MapScript1_160B5E + map_script 3, SouthernIsland_Interior_MapScript1_160B6C + .byte 0 + +SouthernIsland_Interior_MapScript1_160B5E:: @ 8160B5E + checkflag 2145 + callif 1, SouthernIsland_Interior_EventScript_160B68 + end + +SouthernIsland_Interior_EventScript_160B68:: @ 8160B68 + disappear 2 + return + +SouthernIsland_Interior_MapScript1_160B6C:: @ 8160B6C + setvar 0x4011, 187 + call SouthernIsland_Interior_EventScript_160B77 + end + +SouthernIsland_Interior_EventScript_160B77:: @ 8160B77 + checkgender + compare RESULT, 0 + jumpeq SouthernIsland_Interior_EventScript_160B8F + compare RESULT, 1 + jumpeq SouthernIsland_Interior_EventScript_160B95 + end + +SouthernIsland_Interior_EventScript_160B8F:: @ 8160B8F + setvar 0x4010, 100 + return + +SouthernIsland_Interior_EventScript_160B95:: @ 8160B95 + setvar 0x4010, 105 + return + +SouthernIsland_Interior_EventScript_160B9B:: @ 8160B9B + lockall + setvar 0x8008, 12 + jump SouthernIsland_Interior_EventScript_160BA7 + end + +SouthernIsland_Interior_EventScript_160BA7:: @ 8160BA7 + checkflag 206 + jumpeq SouthernIsland_Interior_EventScript_160C08 + checkflag 2131 + jumpif 0, SouthernIsland_Interior_EventScript_160C08 + setflag 206 + special 275 + move 127, SouthernIsland_Interior_Movement_160C12 + waitmove 0 + pause 50 + checksound + pokecry SPECIES_LATIAS, 0 + pause 30 + waitpokecry + reappear 2 + pause 30 + move 127, SouthernIsland_Interior_Movement_160C16 + move 2, SouthernIsland_Interior_Movement_160C22 + waitmove 0 + pause 50 + special 276 + setwildbattle SPECIES_LATIAS, 50, ITEM_SOUL_DEW + setflag 911 + setflag 2145 + special 323 + waitstate + clearflag 2145 + releaseall + end + +SouthernIsland_Interior_EventScript_160C08:: @ 8160C08 + msgbox SouthernIsland_Interior_Text_1C52C5, 4 + releaseall + end + +SouthernIsland_Interior_Movement_160C12:: @ 8160C12 + step_up + step_up + step_up + step_end + +SouthernIsland_Interior_Movement_160C16:: @ 8160C16 + step_14 + step_14 + step_14 + step_14 + step_14 + step_14 + step_14 + step_down + step_down + step_down + step_26 + step_end + +SouthernIsland_Interior_Movement_160C22:: @ 8160C22 + step_down + step_down + step_down + step_down + step_down + step_14 + step_14 + step_down + step_down + step_down + step_down + step_end + |