Jump to content

Photo

Step->Secret Sound Effect (LTTP)

LTTP Chest Sound Effect

  • Please log in to reply
4 replies to this topic

#1 ZeldaPlayer

ZeldaPlayer

    What's up my playas

  • Members
  • Location:USA

Posted 02 October 2016 - 10:43 PM

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.



#2 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

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 ZeldaPlayer

ZeldaPlayer

    What's up my playas

  • Members
  • Location:USA

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 ZeldaPlayer

ZeldaPlayer

    What's up my playas

  • Members
  • Location:USA

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 Lejes

Lejes

    Seeker of Runes

  • Members
  • Location:Flying High Above Monsteropolis

Posted 07 October 2016 - 01:01 AM

You need to put the FFC on top of the combo that changes.



Also tagged with one or more of these keywords: LTTP, Chest, Sound Effect

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users