Lunyc

Villager
Member
Joined
Feb 11, 2017
Messages
12
Reaction score
0
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
157
Reaction score
175
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
12
Reaction score
0
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 Profile Posts

Jatopian wrote on war40k's profile.
What did you find for your plugin request?
Progress on my game for RSE is almost done! I should be able to release it next week.
Pfft! If other people would stop replying to threads, I could DOMINATE the Latest Posts box!
After so many hours of debugging, losing data to crashes, and slight adjustments.
BlackJack now deals cards perfectly! Time to adjust the background and implement the game logic so you can actually play it.BlackJack.png

Forum statistics

Threads
109,062
Messages
1,041,754
Members
141,553
Latest member
japanjacksin
Top