Hi, I'm trying to call a sound effect via the script call 'AudioManager.playSe'. The thing is that I want to call the sound effect depending on a variable. The variable is a num type so I use .toString() to change it but the sound effect doesn't play. I've tried at least a 100 times with different variants. This is what the script looks like so far:
$gameVariables.setValue(8, $gameParty.members[1].actorId().toString());
AudioManager.playSe({name: $gameVariables.value(8), volume: 90, pitch: 100, pan: 0});
Basically i get an id from a current party member in battle, turn it to string then set it to a game varabile. Later just use the playSe function. The idea is that each party member plays a different sound (with voice acting?).
Is there a way to make this work, or perhaps using other stuff like plugins?
$gameVariables.setValue(8, $gameParty.members[1].actorId().toString());
AudioManager.playSe({name: $gameVariables.value(8), volume: 90, pitch: 100, pan: 0});
Basically i get an id from a current party member in battle, turn it to string then set it to a game varabile. Later just use the playSe function. The idea is that each party member plays a different sound (with voice acting?).
Is there a way to make this work, or perhaps using other stuff like plugins?