Secret Medicine/Fairy
Overview
Creator:
Hari
Added: 27 Mar 2016
Tags:
Global,
Item
|
View Script |
Information
This script emulates the secret medicine item from Link's Awakening or the fairy item from other Zelda games. When Link's health is zero, the item will be used to set his health to his max health.
Description Setup Reviews Comments
First, set the constant POTION_ID to the ID of the potion or fairy item, and set the constant POTION_SFX to the number of the sound effect to be played when the medicine takes effect. If you want a message to be displayed when the medicine takes effect, set the constant DISPLAY_MESSAGE to 1, and set the constant MESSAGE to the number of the message you want displayed. If you want a message to be displayed, make sure the quest rule "Messages Freeze All Action" is checked. If you don't already have a global script, just copy this script. If you do have a global script already, copy the main part of this script into your current global script. Make sure you place it before Waitdraw() and any ghost.zh functions.
No headers are required to use this script.
No headers are required to use this script.



