pokeemerald/data/maps/SouthernIsland_Interior/scripts.inc

163 lines
4.1 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
SouthernIsland_Interior_MapScripts:: @ 8242A45
map_script 5, SouthernIsland_Interior_MapScript1_242A50
map_script 3, SouthernIsland_Interior_MapScript1_242A6E
.byte 0
SouthernIsland_Interior_MapScript1_242A50: @ 8242A50
2018-12-22 03:32:45 +01:00
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, SouthernIsland_Interior_EventScript_242A5A
2017-11-10 02:21:31 +01:00
end
SouthernIsland_Interior_EventScript_242A5A:: @ 8242A5A
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 7
2018-12-22 02:28:24 +01:00
goto_if_ne SouthernIsland_Interior_EventScript_27374E
2017-11-10 02:21:31 +01:00
removeobject 2
return
SouthernIsland_Interior_MapScript1_242A6E: @ 8242A6E
compare VAR_0x40D5, 0
2018-12-22 03:32:45 +01:00
call_if_eq SouthernIsland_Interior_EventScript_242A8A
compare VAR_0x40D5, 0
2018-12-22 03:32:45 +01:00
call_if_ne SouthernIsland_Interior_EventScript_242A95
2017-11-10 02:21:31 +01:00
call SouthernIsland_Interior_EventScript_242AA0
end
SouthernIsland_Interior_EventScript_242A8A:: @ 8242A8A
2018-05-19 18:02:43 +02:00
setvar VAR_OBJ_GFX_ID_1, 188
setvar VAR_TEMP_4, 408
2017-11-10 02:21:31 +01:00
return
SouthernIsland_Interior_EventScript_242A95:: @ 8242A95
2018-05-19 18:02:43 +02:00
setvar VAR_OBJ_GFX_ID_1, 187
setvar VAR_TEMP_4, 407
2017-11-10 02:21:31 +01:00
return
SouthernIsland_Interior_EventScript_242AA0:: @ 8242AA0
checkplayergender
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq SouthernIsland_Interior_EventScript_242AB8
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq SouthernIsland_Interior_EventScript_242ABE
2017-11-10 02:21:31 +01:00
end
SouthernIsland_Interior_EventScript_242AB8:: @ 8242AB8
2018-05-19 18:02:43 +02:00
setvar VAR_OBJ_GFX_ID_0, 100
2017-11-10 02:21:31 +01:00
return
SouthernIsland_Interior_EventScript_242ABE:: @ 8242ABE
2018-05-19 18:02:43 +02:00
setvar VAR_OBJ_GFX_ID_0, 105
2017-11-10 02:21:31 +01:00
return
SouthernIsland_Interior_EventScript_242AC4:: @ 8242AC4
lockall
setvar VAR_0x8008, 12
goto SouthernIsland_Interior_EventScript_242AD0
end
SouthernIsland_Interior_EventScript_242AD0:: @ 8242AD0
2018-12-22 02:28:24 +01:00
goto_if_set FLAG_TEMP_2, SouthernIsland_Interior_EventScript_242B9A
goto_if_set FLAG_0x1C8, SouthernIsland_Interior_EventScript_242B9A
goto_if_set FLAG_0x1C9, SouthernIsland_Interior_EventScript_242B9A
goto_if_unset FLAG_SYS_HAS_EON_TICKET, SouthernIsland_Interior_EventScript_242B9A
2017-11-10 02:21:31 +01:00
setflag FLAG_0x0CE
2018-10-17 18:25:12 +02:00
setflag FLAG_TEMP_2
special SpawnCameraObject
applymovement EVENT_OBJ_ID_CAMERA, SouthernIsland_Interior_Movement_242BCA
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 50
waitse
2018-05-19 18:02:43 +02:00
playmoncry VAR_TEMP_4, 0
2017-11-10 02:21:31 +01:00
delay 30
waitmoncry
addobject 2
delay 30
applymovement EVENT_OBJ_ID_CAMERA, SouthernIsland_Interior_Movement_242BCE
2017-11-10 02:21:31 +01:00
applymovement 2, SouthernIsland_Interior_Movement_242BDA
waitmovement 0
delay 50
special RemoveCameraObject
2017-11-10 02:21:31 +01:00
setvar VAR_LAST_TALKED, 2
compare VAR_0x40D5, 0
2018-12-22 03:32:45 +01:00
call_if_eq SouthernIsland_Interior_EventScript_242BA4
compare VAR_0x40D5, 0
2018-12-22 03:32:45 +01:00
call_if_ne SouthernIsland_Interior_EventScript_242BB7
2017-11-10 02:21:31 +01:00
setflag FLAG_SYS_CTRL_OBJ_DELETE
2017-11-28 23:02:09 +01:00
special BattleSetup_StartLatiBattle
2017-11-10 02:21:31 +01:00
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq SouthernIsland_Interior_EventScript_242B81
compare VAR_RESULT, 4
2018-12-22 02:28:24 +01:00
goto_if_eq SouthernIsland_Interior_EventScript_242B8F
compare VAR_RESULT, 5
2018-12-22 02:28:24 +01:00
goto_if_eq SouthernIsland_Interior_EventScript_242B8F
2017-11-10 02:21:31 +01:00
setflag FLAG_0x1C9
releaseall
end
SouthernIsland_Interior_EventScript_242B81:: @ 8242B81
setflag FLAG_0x1C8
2018-05-19 18:02:43 +02:00
copyvar VAR_0x8004, VAR_TEMP_4
2017-11-10 02:21:31 +01:00
goto SouthernIsland_Interior_EventScript_273776
end
SouthernIsland_Interior_EventScript_242B8F:: @ 8242B8F
2018-05-19 18:02:43 +02:00
copyvar VAR_0x8004, VAR_TEMP_4
2017-11-10 02:21:31 +01:00
goto SouthernIsland_Interior_EventScript_273776
end
SouthernIsland_Interior_EventScript_242B9A:: @ 8242B9A
msgbox SouthernIsland_Interior_Text_2A6AA1, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
SouthernIsland_Interior_EventScript_242BA4:: @ 8242BA4
setvar VAR_0x8004, 408
setvar VAR_0x8005, 50
setvar VAR_0x8006, 191
2018-02-09 15:55:12 +01:00
special CreateObedientEnemyMon
2017-11-10 02:21:31 +01:00
return
SouthernIsland_Interior_EventScript_242BB7:: @ 8242BB7
setvar VAR_0x8004, 407
setvar VAR_0x8005, 50
setvar VAR_0x8006, 191
2018-02-09 15:55:12 +01:00
special CreateObedientEnemyMon
2017-11-10 02:21:31 +01:00
return
SouthernIsland_Interior_Movement_242BCA: @ 8242BCA
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
SouthernIsland_Interior_Movement_242BCE: @ 8242BCE
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
walk_down
walk_down
walk_down
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
SouthernIsland_Interior_Movement_242BDA: @ 8242BDA
walk_down
walk_down
walk_down
walk_down
walk_down
delay_16
delay_16
walk_down
walk_down
walk_down
walk_down
2017-11-10 02:21:31 +01:00
step_end