TempLinkState.zh
Overview
Creator:
Moosh
Updated: 22 May 2026
Tags:
Global,
Library
Downloads: 115
|
Download Script (8.4 KB) |
Information
A header for making certain Link effects that are usually permanent temporary. Also allows redrawing Link without using Link Tile Modifier items.
Description Setup Reviews Comments
This has been a long time coming really. In the past database scripts that render Link invisible or invincible have had common bugs where the effect doesn't go away under certain circumstances the scripter didn't anticipate. This header sets out to solve this problem in future scripts by tying Link's invisibility, collision detection, and draw/hit offsets to timers that clean up after themselves. I've also thrown in the ability to redraw Link's tiles as well, since that's a very common use for invisibility.
Update 4/22/20: Whaddya know, I forgot Link->Z again.
Update 5/4/20: Added Big Link compatibility
Update 6/24/20: Added post waitdraw direction overriding
Update 9/18/22: Added a 2.55 version of the header that writes to ScriptTile instead of the janky redrawing method. Some features of the 2.53 one are missing (CSet, layer) but the essentials are here.
Update 2/17/25: Updated the 2.55 version to not require a global Active script. Also added TempLinkState_SetNoColl() and TempLinkState_SetInvincible() which just call TempLinkState_UnsetCollDetection(). That function being named differently was bothering me.
Update 2/22/26: Updated the 2.55 version to add some speed changing functions.
Update 3/8/26: Updated the 2.55 version to be able to change player shield flags.
Update 5/22/26: 3.0 has mostly obsoleted the purpose of this header but I've made a 3.0 version anyways for script compatibility and to prevent deprecation warnings.
Update 4/22/20: Whaddya know, I forgot Link->Z again.
Update 5/4/20: Added Big Link compatibility
Update 6/24/20: Added post waitdraw direction overriding
Update 9/18/22: Added a 2.55 version of the header that writes to ScriptTile instead of the janky redrawing method. Some features of the 2.53 one are missing (CSet, layer) but the essentials are here.
Update 2/17/25: Updated the 2.55 version to not require a global Active script. Also added TempLinkState_SetNoColl() and TempLinkState_SetInvincible() which just call TempLinkState_UnsetCollDetection(). That function being named differently was bothering me.
Update 2/22/26: Updated the 2.55 version to add some speed changing functions.
Update 3/8/26: Updated the 2.55 version to be able to change player shield flags.
Update 5/22/26: 3.0 has mostly obsoleted the purpose of this header but I've made a 3.0 version anyways for script compatibility and to prevent deprecation warnings.


