Jump to content

Simple Buttons

Overview
Creator: Evan20000 Added: 07 Feb 2019 Tags: FFC
Rating[?]: No rating
View Script
Information

Description Setup Reviews Comments

Set the constant in the script file to be the default sound effect for buttons being pressed and compile the script+assign it a script slot.

Place the raised button combo on the screen on layer 0, then place a blank FFC with no graphics over it and assign it the script.

Arg 0: Set to 1 if you want the secret to be permanent.
Arg 1: Set to the combo of the pressed button. It will share the CSet of the raised button combo.
Arg 2: The type of button this is. 0 can be pressed by Link and blocks. 1 can be pressed by the player only. 2 is block only.
Arg 3: An override for the sound constant you set up earlier. If you wanted a specific button to make a specific noise but not change the sound of every button in the quest, set this. Otherwise leave it at 0 for the default.
Arg 4: Set to 0 for now. If set to 1, it'll cause the button to not trigger secrets. Sorta useless unless you intend to use it in tandem with another script. :P