Do you know how when you walk onto a switch on LTTP a chest appears playing a sound effect? Yeah it's just like that. I don't know if I'm missing something on Zquest, but is there a script that can play a sound when you walk onto a tile? I'm making a quest with different sounds and really want to know if it's possible.
Step->Secret Sound Effect (LTTP)
#1
Posted 02 October 2016 - 10:43 PM
#2
Posted 03 October 2016 - 09:22 AM
Do you know how when you walk onto a switch on LTTP a chest appears playing a sound effect? Yeah it's just like that. I don't know if I'm missing something on Zquest, but is there a script that can play a sound when you walk onto a tile? I'm making a quest with different sounds and really want to know if it's possible.
That's pretty easy:
ffc script chestSound{ void run(int sfx, int comboID){ while(true){ if ( Screen->ComboD[ComboAt(this->X, this->Y)] == comboID && sfx ) { Game->PlaySound(sfx); this->Data = 0; this->Script = 0; Quit(); } Waitframe(); } } }Plays a sound (d0) if the combo at its location matches ID set as d1.
Give it a transparent combo other than 0, place it where the chest appears, set d0 to the sound that you want, and d1 to the combo used by the chest.
#3
Posted 04 October 2016 - 02:15 PM
Thank you!
EDIT: It isn't really playing the sound. Am I doing something wrong?
Edited by ZeldaPlayer, 04 October 2016 - 02:26 PM.
#4
Posted 07 October 2016 - 12:47 AM
If I'm being impatient, I'm sorry. I just wanted to know what I did wrong.
#5
Posted 07 October 2016 - 01:01 AM
Also tagged with one or more of these keywords: LTTP, Chest, Sound Effect
Zelda Classic →
Developers' Exchange →
LttP-Standard DoR tilesStarted by Reflectionist , 26 Mar 2018 DoR, LttP, Firebird, Mountains and 2 more... |
|
|
||
Zelda Classic →
Scripting Discussion →
Chest System with Script MessagingStarted by Timelord , 06 Aug 2017 messaging, callback, callbacks and 3 more... |
|
|
||
Zelda Classic →
Scripting Discussion →
Script Requests →
All Seen Map ScreensStarted by ZeldaPlayer , 21 Oct 2016 Script, Map, Request, ???, LTTP |
|
|
||
Zelda Classic →
Scripting Discussion →
Script Requests →
LTTP Mirror?Started by ZeldaPlayer , 17 Oct 2016 Script, Mirror, LTTP, Magic and 1 more... |
|
|
||
Zelda Classic →
Scripting Discussion →
Script Requests →
LTTP BumperStarted by ZeldaPlayer , 02 Oct 2014 Bumper, LTTP, Zelda 3 |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users