A Link to the Past
Spooky Action
Spooky action at a distance, commonly shortened to just spooky, is a glitch where, under certain conditions, ancillae (the 'sprites' spawned by Link's actions and items) can interact with sprites that are far away from them.
Technical details
It's a good idea to read the ancillae mechanics page to become comfortable with the vocabulary around ancillae.
The game has an array that tracks the z-coordinate, or altitude, of different ancillae. They will store their altitude at a specific position in this array depending on their slot number.
$7E029E | $7E029F | $7E02A0 | $7E02A1 | $7E02A2 | ... |
|---|---|---|---|---|---|
| slot 0 | slot 1 | slot 2 | slot 3 | slot 4 | ... |
Ancillae have default slots that they try to use, but if their default slot is in use, they will use a different slot. Most ancillae try to use slot 4 if it's available. If not, they'll try slot 3, then slot 2, etc. Bombs are notable for wanting to always use slots 1 and 0.
Fire rod spooky
By default, the fire rod will want to load into slot 4. The fire rod also uses its altitude to help calculate the hitbox of its splash damage after the fire rod shot has hit something. Unlike most items that make active use of altitude, the fire rod doesn't reset or modify the value at its slot when it's used. This means it'll be reading from a "stale" value—one that's left over from whatever previous ancilla have stored there. So the way fire rod spooky will work:
- Use an ancilla in a specific way to store a altitude at slot 4 to whatever value you're wanting to displace the fire rod splash damage by.
- Avoid loading any ancillae that modify the altitude value into slot 4.
- Use the fire rod and profit.
You can also set this up to work from different slots. For example, you could set the altitude at slot 3 and force the fire rod to load into slot 3.
There are a few ways to leave a altitude value in a slot:
- Having a bomb explode midair
- Detonating a somaria block midair
- Getting picked up or dropped off by the duck
- Throwing a somaria block or bomb into a pit will set an altitude of
0xFFat that ancilla's slot. - Throwing a somaria block and detonating it exactly when it hits the ground will set an altitude of
0xFF(this is frame perfect). - Throwing a bomb and having it explode immediately when it lands will set a value of
0xFF(frame perfect).
Applications
- Ice Palace anti-spooky
- Mire flute spooky
- Mire fluteless spooky (aka AD spooky)
- Swamp spooky
