So what I want to do is, when in battle, if an enemy gets a 'Scared' state, for example, run a common event that gives a random value to a variable, and plays a sound according to the value, right after the state is applied (if it's 1, play sound1; if it's 2, play sound2; etc.)
I tried using a troop event page to check each turn if the enemy is 'scared' and call the common event. But for some reason no sound plays at all. I don't think the common event is the problem because I tried calling it at the start of the battle and it worked.
Any scripts or anything that can help me do it? Another important thing is that I have different enemy types with different 'scared' sounds, so I would have to check for each enemy individually.
By the way, sorry for the bad english, not my first language, and I'm using the spanish translation of RPGMaker.
I tried using a troop event page to check each turn if the enemy is 'scared' and call the common event. But for some reason no sound plays at all. I don't think the common event is the problem because I tried calling it at the start of the battle and it worked.
Any scripts or anything that can help me do it? Another important thing is that I have different enemy types with different 'scared' sounds, so I would have to check for each enemy individually.
By the way, sorry for the bad english, not my first language, and I'm using the spanish translation of RPGMaker.