Difference between revisions of "Cave state"

From ALttP Speedrunning Wiki
Jump to: navigation, search
(Created page with "'''Cave state''' refers to sneaking the dungeon ID {{WRAM|40C}} for caves {{HEX|FF}} into ares of the underworld that are part of dungeons. There is a second cave state, {{HEX...")
 
(Effects)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Cave state''' refers to sneaking the dungeon ID {{WRAM|40C}} for caves {{HEX|FF}} into ares of the underworld that are part of dungeons. There is a second cave state, {{HEX|FD}}, obtained by using the throne room door while in the standard cave state.
+
'''Cave state''' refers to sneaking the dungeon ID ({{WRAM|40C}}) for caves {{HEX|FF}} into areas of the underworld that are part of dungeons. There is a second cave state, {{HEX|FD}}, obtained by using the throne room door while in the standard cave state.
  
 
== Effects ==
 
== Effects ==
 
=== Small keys ===
 
=== Small keys ===
Every time Link enters a cave, the address that holds his current key count {{WRAM|F36F}} will be set to -1, meaning "Don't show keys". In hexadecimal, this is {{HEX|FF}}, or 255 as an unsigned value. Doors only check for 0 small keys, meaning that the dummy value of {{HEX|FF}} will behave as 255 keys.
+
Every time Link enters a cave, the address that holds his current key count {{WRAM|7EF36F}} will be set to -1, meaning "Don't show keys". In hexadecimal, this is {{HEX|FF}}, or 255 as an unsigned value. Doors only check for 0 small keys, meaning that the dummy value of {{HEX|FF}} will behave as 255 keys. Obtaining a key at 255 will overflow to 0 keys, preventing the use of this effect. Since the game doesn't track cave small keys and the value is set to {{HEX|FF}} every time, small keys obtained in cave state are effectively lost.
  
 
=== Big keys ===
 
=== Big keys ===
 +
 +
'''Big keys that work in cave states'''
 +
 
When attempting to open a big chest or big key door or lock, the game's check will allow for one of several dungeon's big keys to pass.
 
When attempting to open a big chest or big key door or lock, the game's check will allow for one of several dungeon's big keys to pass.
  
 
{| class="wikitable" style="text-align: center;"
 
{| class="wikitable" style="text-align: center;"
|+ Big keys that work in cave states
 
 
! rowspan="2" style="vertical-align: middle" | Dungeon<br>ID
 
! rowspan="2" style="vertical-align: middle" | Dungeon<br>ID
 
! colspan="14" | Dungeon big key
 
! colspan="14" | Dungeon big key
Line 21: Line 23:
 
| {{No}} || {{No}} || {{No}} || {{No}} || {{No}} || {{Yes}} || {{Yes}} || {{Yes}} || {{Yes}} || {{No}} || {{Yes}} || {{Yes}} || {{No}} || {{Yes}}
 
| {{No}} || {{No}} || {{No}} || {{No}} || {{No}} || {{Yes}} || {{Yes}} || {{Yes}} || {{Yes}} || {{No}} || {{Yes}} || {{Yes}} || {{No}} || {{Yes}}
 
|}
 
|}
 +
 +
'''Big keys that get set in cave states'''
  
 
When grabbing a key in cave state, multiple dungeons' big keys will be marked as obtained.
 
When grabbing a key in cave state, multiple dungeons' big keys will be marked as obtained.
  
 
{| class="wikitable" style="text-align: center;"
 
{| class="wikitable" style="text-align: center;"
|+ Big keys that get set in cave states
 
 
! rowspan="2" style="vertical-align: middle" | Dungeon<br>ID
 
! rowspan="2" style="vertical-align: middle" | Dungeon<br>ID
 
! colspan="14" | Dungeon big key marked
 
! colspan="14" | Dungeon big key marked
Line 40: Line 43:
 
=== Mirror usage ===
 
=== Mirror usage ===
 
The mirror cannot be used in the standard cave state, but it can be used in the throne roomed cave state. Doing so will return Link to the original entrance he came in, as if it were a dungeon.
 
The mirror cannot be used in the standard cave state, but it can be used in the throne roomed cave state. Doing so will return Link to the original entrance he came in, as if it were a dungeon.
 +
 +
[[Category:Major Glitches]]

Latest revision as of 11:54, 9 April 2019

Cave state refers to sneaking the dungeon ID ($040C) for caves 0xFF into areas of the underworld that are part of dungeons. There is a second cave state, 0xFD, obtained by using the throne room door while in the standard cave state.

Effects

Small keys

Every time Link enters a cave, the address that holds his current key count $7EF36F will be set to -1, meaning "Don't show keys". In hexadecimal, this is 0xFF, or 255 as an unsigned value. Doors only check for 0 small keys, meaning that the dummy value of 0xFF will behave as 255 keys. Obtaining a key at 255 will overflow to 0 keys, preventing the use of this effect. Since the game doesn't track cave small keys and the value is set to 0xFF every time, small keys obtained in cave state are effectively lost.

Big keys

Big keys that work in cave states

When attempting to open a big chest or big key door or lock, the game's check will allow for one of several dungeon's big keys to pass.

Dungeon
ID
Dungeon big key
Hyrule castle Sewers EP DP ToH Aga PoD SP SW TT IP MM TR GT
0xFF Yes.svg Yes.svg No.svg No.svg No.svg Yes.svg Yes.svg No.svg No.svg Yes.svg No.svg No.svg No.svg Yes.svg
0xFD No.svg No.svg No.svg No.svg No.svg Yes.svg Yes.svg Yes.svg Yes.svg No.svg Yes.svg Yes.svg No.svg Yes.svg

Big keys that get set in cave states

When grabbing a key in cave state, multiple dungeons' big keys will be marked as obtained.

Dungeon
ID
Dungeon big key marked
Hyrule castle Sewers EP DP ToH Aga PoD SP SW TT IP MM TR GT
0xFF Yes.svg Yes.svg No.svg Yes.svg Yes.svg No.svg No.svg No.svg No.svg No.svg No.svg No.svg No.svg No.svg
0xFD Yes.svg Yes.svg No.svg No.svg No.svg No.svg No.svg No.svg No.svg No.svg No.svg No.svg No.svg No.svg

Mirror usage

The mirror cannot be used in the standard cave state, but it can be used in the throne roomed cave state. Doing so will return Link to the original entrance he came in, as if it were a dungeon.