How can I play a sound with text code

aramouta

Villager
Member
Joined
Jan 20, 2019
Messages
16
Reaction score
3
First Language
arabic
Primarily Uses
RMMV
Im currently editing a plugin by Astfgl I wanted to add a certain feature like play a sound with a text code.... and I want to know if that is actually Possible... tried a lot of stuff in the end nothing worked...

here what I came up with...

if (code === 'SE') {
var ar = this.obtainEscapeParamArray(textState);
var ob = {
name: ar[0],
pan: Number(ar[3]) || 0,
pitch: Number(ar[2]),
volume: Number(ar[1])
};
var sound = ob;
AudioManager.playSe(sound);

and thank you
 

aramouta

Villager
Member
Joined
Jan 20, 2019
Messages
16
Reaction score
3
First Language
arabic
Primarily Uses
RMMV
Never mind... it works I just forgot that I had the volume on 0..... oppsies

you can close the thread...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Degica has great discounts now on Steam too. MV & MV DLCs, VX Ace & VX Ace DLCs, and some DLC for MZ with a 10% discount. So if you are missing something, you can catch up now.
I'm streaming @jasonzeno 's game called Moonfall
I've been trying out Fell Seal: Arbiter's Mark, and it has an interesting approach to consumable items - you get a limited inventory that is automatically refreshed to max limits (1 or 2 each, craft to expand + improve effect) at the start of each combat. It's a mechanic that goes against the common urge to hoard consumables.

Forum statistics

Threads
103,196
Messages
997,939
Members
134,670
Latest member
Klexster
Top