Lunyc

Villager
Member
Joined
Feb 11, 2017
Messages
16
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
169
Reaction score
185
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
16
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 Posts

Latest Profile Posts

It's really not fun burning 4 hours looking at code and trying certain things and getting no where.
:kaoswt2: Steam seems down again... oh nevermind, it's up now
After so long, my random sprites set is complete! I wonder who could guess them all? :kaothx:
2COlHup.png

And yes, I'm doing more.
I'm thinking of devouring some tutorials for RPG Maker MV. Just all kinds: mapping, spriting, programming, ect. the whole works! :)

Maybe videos, my brother and I can sit down and watch them during one of our weekly business meetings.

Forum statistics

Threads
113,929
Messages
1,078,474
Members
148,035
Latest member
jonboy92
Top