Lunyc

Villager
Member
Joined
Feb 11, 2017
Messages
26
Reaction score
2
First Language
Italian
Primarily Uses
RMMV
I have a skill that applies a state effect that lasts for 3 turns and I'd like to play a sound effect when the state wears off, so that the player is warned that the effect ended. Any ideas?
 

Rubescen

Veteran
Veteran
Joined
Jan 4, 2016
Messages
173
Reaction score
186
First Language
English
Primarily Uses
RMMZ
Yanfly's buff/states core plugin will allow for this, if you want to use their stuff. Unfortunately, I don't think you can get it for free anymore, unless you already have it.

if you do, here's the code for the notebox on the state. (replace buzzer1 with whatever file you want to play)
Code:
  <Custom Leave Effect>
AudioManager.playSe({name: 'buzzer1', pan: 0, pitch: 100, volume: 100});
  </Custom Leave Effect>
 

Lunyc

Villager
Member
Joined
Feb 11, 2017
Messages
26
Reaction score
2
First Language
Italian
Primarily Uses
RMMV
wow it really was that easy lol... thanks for the help, man, I've never noticed that code
 

Latest Threads

Latest Posts

Latest Profile Posts

Too bad the Boss Battle Build Bout isn't also for VXAce.
I might not participate in the Boss Battle contest after all... I have more important things to do, like Wishful Wanda. And of course the Dark Deception spinoff I plan to pitch, Demon Slayer.
Changed my avatar, goodbye Alan Sugar, hello George Carlin (one of my favorite human beings ever)
If you still don't subscribe our Polish channel please consider it :)
1.png
Who wants to see my review of the worst star wars movie? This movie has all the excitement of being on Jury Duty of the most boring case ever about trade negotiations.

Forum statistics

Threads
115,171
Messages
1,087,808
Members
149,723
Latest member
krinalle
Top