Hey all. I recently came across a script that assigns a sound affect to any combo I give it to.
However, I am really looking to give it to my pots and skulls. I currently have those set as a flower combo so it shows the pieces "breaking".
The problem I have is with the extra sounds rule turned on, all bushes, grass, and flowers get the default Tall Grass SFX.
And with the FFC assigned to them it also plays what I tell the FFC to play.
So it plays both.
My question is, is there anyway to tweak this script to cancel out the Default sound effect?
I do not want the rule off as it works fine for all of the bushes and grass combos.
Here's what I got:
// Script that will check the combo under it // When the combo changes (be it script, slash->next, etc.) // It will play the given sfx // d1 = Sound effect import "std.zh" ffc script PotRandomItem { void run(int itm, int sfx) { // Grab the combo under the FFC initially int combo = Screen->ComboD[ComboAt(this->X+4, this->Y+4)]; // While that combo is the same, wait while(Screen->ComboD[ComboAt(this->X+4, this->Y+4)] == combo) Waitframe(); // Play the given sound effect Game->PlaySound(sfx); } }