Document Sevii Island caves

This commit is contained in:
GriffinR
2020-01-28 14:26:34 -05:00
parent 0ddd7ebb1d
commit 30f01c7df6
37 changed files with 590 additions and 578 deletions
@@ -1,29 +1,32 @@
.equ LOCALID_SAPPHIRE, 1
.equ LOCALID_THIEF, 2
SixIsland_DottedHole_SapphireRoom_MapScripts:: @ 81641B4
.byte 0
SixIsland_DottedHole_SapphireRoom_EventScript_1641B5:: @ 81641B5
SixIsland_DottedHole_SapphireRoom_EventScript_Sapphire:: @ 81641B5
lock
faceplayer
textcolor 3
playfanfare MUS_FAN5
message Text_17BD82
message SixIsland_DottedHole_SapphireRoom_Text_FoundSapphire
waitmessage
waitfanfare
closemessage
setobjectxyperm 2, 5, 0
addobject 2
setobjectxyperm LOCALID_THIEF, 5, 0
addobject LOCALID_THIEF
playse SE_RU_HYUU
applymovement 2, Movement_16440F
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefFallIn
waitmovement 0
playse SE_W070
compare VAR_FACING, DIR_NORTH
call_if_eq EventScript_16430F
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_PlayerFaceThiefLeft
compare VAR_FACING, DIR_SOUTH
call_if_eq EventScript_16430F
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_PlayerFaceThiefLeft
compare VAR_FACING, DIR_EAST
call_if_eq EventScript_16431A
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_PlayerFaceThiefDown
compare VAR_FACING, DIR_WEST
call_if_eq EventScript_16431A
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_PlayerFaceThiefDown
setvar VAR_0x8004, 3
setvar VAR_0x8005, 0
setvar VAR_0x8006, 12
@@ -31,163 +34,164 @@ SixIsland_DottedHole_SapphireRoom_EventScript_1641B5:: @ 81641B5
special Special_ShakeScreen
delay 60
compare VAR_FACING, DIR_NORTH
call_if_eq EventScript_164325
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_ThiefLookAtSapphireNorth
compare VAR_FACING, DIR_SOUTH
call_if_eq EventScript_164330
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_ThiefLookAtSapphireSouth
compare VAR_FACING, DIR_EAST
call_if_eq EventScript_16433B
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_ThiefLookAtSapphireEast
compare VAR_FACING, DIR_WEST
call_if_eq EventScript_164346
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_ThiefLookAtSapphireWest
textcolor 0
msgbox gUnknown_817BD97
msgbox SixIsland_DottedHole_SapphireRoom_Text_IWasRightInTailingYou
closemessage
compare VAR_FACING, DIR_NORTH
call_if_eq EventScript_164351
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_ThiefGetSapphireNorth
compare VAR_FACING, DIR_SOUTH
call_if_eq EventScript_164366
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_ThiefGetSapphireSouth
compare VAR_FACING, DIR_EAST
call_if_eq EventScript_16437B
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_ThiefGetSapphireEast
compare VAR_FACING, DIR_WEST
call_if_eq EventScript_164390
removeobject 1
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_ThiefGetSapphireWest
removeobject LOCALID_SAPPHIRE
compare VAR_FACING, DIR_NORTH
call_if_eq EventScript_1642F9
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_PlayerFaceThiefLeft2
compare VAR_FACING, DIR_SOUTH
call_if_eq EventScript_1642F9
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_PlayerFaceThiefLeft2
compare VAR_FACING, DIR_EAST
call_if_eq EventScript_164304
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_PlayerFaceThiefDown2
compare VAR_FACING, DIR_WEST
call_if_eq EventScript_164304
msgbox gUnknown_817BDD4
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_PlayerFaceThiefDown2
msgbox SixIsland_DottedHole_SapphireRoom_Text_SellToTeamRocketTellPassword
closemessage
compare VAR_FACING, DIR_NORTH
call_if_eq EventScript_1643A5
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_ThiefExitNorth
compare VAR_FACING, DIR_SOUTH
call_if_eq EventScript_1643B7
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_ThiefExitSouth
compare VAR_FACING, DIR_EAST
call_if_eq EventScript_1643C9
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_ThiefExitEast
compare VAR_FACING, DIR_WEST
call_if_eq EventScript_1643DB
call_if_eq SixIsland_DottedHole_SapphireRoom_EventScript_ThiefExitWest
playse SE_KAIDAN
delay 35
removeobject 2
removeobject LOCALID_THIEF
setflag FLAG_LEARNED_YES_NAH_CHANSEY
release
end
EventScript_1642F9:: @ 81642F9
@ Lots of redundant scripts below
SixIsland_DottedHole_SapphireRoom_EventScript_PlayerFaceThiefLeft2:: @ 81642F9
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestLeft
waitmovement 0
return
EventScript_164304:: @ 8164304
SixIsland_DottedHole_SapphireRoom_EventScript_PlayerFaceThiefDown2:: @ 8164304
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestDown
waitmovement 0
return
EventScript_16430F:: @ 816430F
SixIsland_DottedHole_SapphireRoom_EventScript_PlayerFaceThiefLeft:: @ 816430F
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestLeft
waitmovement 0
return
EventScript_16431A:: @ 816431A
SixIsland_DottedHole_SapphireRoom_EventScript_PlayerFaceThiefDown:: @ 816431A
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestDown
waitmovement 0
return
EventScript_164325:: @ 8164325
applymovement 2, Movement_1643ED
SixIsland_DottedHole_SapphireRoom_EventScript_ThiefLookAtSapphireNorth:: @ 8164325
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefLookAtSapphireFromLeft
waitmovement 0
return
EventScript_164330:: @ 8164330
applymovement 2, Movement_1643ED
SixIsland_DottedHole_SapphireRoom_EventScript_ThiefLookAtSapphireSouth:: @ 8164330
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefLookAtSapphireFromLeft
waitmovement 0
return
EventScript_16433B:: @ 816433B
applymovement 2, Movement_1643F1
SixIsland_DottedHole_SapphireRoom_EventScript_ThiefLookAtSapphireEast:: @ 816433B
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefLookAtSapphireFromBelow
waitmovement 0
return
EventScript_164346:: @ 8164346
applymovement 2, Movement_1643F1
SixIsland_DottedHole_SapphireRoom_EventScript_ThiefLookAtSapphireWest:: @ 8164346
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefLookAtSapphireFromBelow
waitmovement 0
return
EventScript_164351:: @ 8164351
applymovement 2, Movement_1643F5
SixIsland_DottedHole_SapphireRoom_EventScript_ThiefGetSapphireNorth:: @ 8164351
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefGetSapphireFromLeft
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestUp
waitmovement 0
return
EventScript_164366:: @ 8164366
applymovement 2, Movement_1643F5
SixIsland_DottedHole_SapphireRoom_EventScript_ThiefGetSapphireSouth:: @ 8164366
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefGetSapphireFromLeft
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestDown
waitmovement 0
return
EventScript_16437B:: @ 816437B
applymovement 2, Movement_1643F7
SixIsland_DottedHole_SapphireRoom_EventScript_ThiefGetSapphireEast:: @ 816437B
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefGetSapphireFromBelow
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
waitmovement 0
return
EventScript_164390:: @ 8164390
applymovement 2, Movement_1643F7
SixIsland_DottedHole_SapphireRoom_EventScript_ThiefGetSapphireWest:: @ 8164390
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefGetSapphireFromBelow
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestLeft
waitmovement 0
return
EventScript_1643A5:: @ 81643A5
applymovement OBJ_EVENT_ID_PLAYER, Movement_16441C
applymovement 2, Movement_1643F9
SixIsland_DottedHole_SapphireRoom_EventScript_ThiefExitNorth:: @ 81643A5
applymovement OBJ_EVENT_ID_PLAYER, SixIsland_DottedHole_SapphireRoom_Movement_PlayerWatchThiefExit
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefExitNorth
waitmovement 0
return
EventScript_1643B7:: @ 81643B7
applymovement OBJ_EVENT_ID_PLAYER, Movement_16441C
applymovement 2, Movement_164401
SixIsland_DottedHole_SapphireRoom_EventScript_ThiefExitSouth:: @ 81643B7
applymovement OBJ_EVENT_ID_PLAYER, SixIsland_DottedHole_SapphireRoom_Movement_PlayerWatchThiefExit
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefExitSouth
waitmovement 0
return
EventScript_1643C9:: @ 81643C9
applymovement OBJ_EVENT_ID_PLAYER, Movement_16441C
applymovement 2, Movement_164409
SixIsland_DottedHole_SapphireRoom_EventScript_ThiefExitEast:: @ 81643C9
applymovement OBJ_EVENT_ID_PLAYER, SixIsland_DottedHole_SapphireRoom_Movement_PlayerWatchThiefExit
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefExitEastWest
waitmovement 0
return
EventScript_1643DB:: @ 81643DB
applymovement OBJ_EVENT_ID_PLAYER, Movement_16441C
applymovement 2, Movement_164409
SixIsland_DottedHole_SapphireRoom_EventScript_ThiefExitWest:: @ 81643DB
applymovement OBJ_EVENT_ID_PLAYER, SixIsland_DottedHole_SapphireRoom_Movement_PlayerWatchThiefExit
applymovement LOCALID_THIEF, SixIsland_DottedHole_SapphireRoom_Movement_ThiefExitEastWest
waitmovement 0
return
Movement_1643ED:: @ 81643ED
SixIsland_DottedHole_SapphireRoom_Movement_ThiefLookAtSapphireFromLeft:: @ 81643ED
walk_up
walk_up
walk_in_place_fastest_right
step_end
Movement_1643F1:: @ 81643F1
SixIsland_DottedHole_SapphireRoom_Movement_ThiefLookAtSapphireFromBelow:: @ 81643F1
walk_right
walk_right
walk_in_place_fastest_up
step_end
Movement_1643F5:: @ 81643F5
SixIsland_DottedHole_SapphireRoom_Movement_ThiefGetSapphireFromLeft:: @ 81643F5
walk_right
step_end
Movement_1643F7:: @ 81643F7
SixIsland_DottedHole_SapphireRoom_Movement_ThiefGetSapphireFromBelow:: @ 81643F7
walk_up
step_end
Movement_1643F9:: @ 81643F9
SixIsland_DottedHole_SapphireRoom_Movement_ThiefExitNorth:: @ 81643F9
walk_fast_up
walk_fast_right
walk_fast_right
@@ -197,7 +201,7 @@ Movement_1643F9:: @ 81643F9
walk_fast_right
step_end
Movement_164401:: @ 8164401
SixIsland_DottedHole_SapphireRoom_Movement_ThiefExitSouth:: @ 8164401
walk_fast_down
walk_fast_right
walk_fast_right
@@ -207,7 +211,7 @@ Movement_164401:: @ 8164401
walk_fast_right
step_end
Movement_164409:: @ 8164409
SixIsland_DottedHole_SapphireRoom_Movement_ThiefExitEastWest:: @ 8164409
walk_fast_right
walk_fast_right
walk_fast_right
@@ -215,7 +219,7 @@ Movement_164409:: @ 8164409
walk_fast_up
step_end
Movement_16440F:: @ 816440F
SixIsland_DottedHole_SapphireRoom_Movement_ThiefFallIn:: @ 816440F
face_down
disable_anim
slide_down
@@ -230,12 +234,12 @@ Movement_16440F:: @ 816440F
restore_anim
step_end
Movement_16441C:: @ 816441C
SixIsland_DottedHole_SapphireRoom_Movement_PlayerWatchThiefExit:: @ 816441C
delay_16
walk_in_place_fastest_right
step_end
SixIsland_DottedHole_SapphireRoom_EventScript_16441F:: @ 816441F
SixIsland_DottedHole_SapphireRoom_EventScript_BrailleMessage:: @ 816441F
lockall
setvar VAR_0x8005, 130
braillemessage_wait Braille_Text_LetTheTwo