How to stop BGM when using a skill and continue the BGM after an effect from it ends?

DawoleQ

Warper
Member
Joined
Sep 24, 2021
Messages
3
Reaction score
4
First Language
Polish
Primarily Uses
RMVXA
Basically, I want to do something like this:

(In fight)
-Skill start
resolve effect (adds a state for 3 turns)
*BGM stops*
-Skill ends
-3 turns pass
*BGM continues*

For context, this is a time stop ability, that adds a paralyse state to everyone but the user for 3 turns

I don't know if I'm writing this post right because it's my first time writing a post. Feel free to correct me if I wrote something wrong.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,672
Reaction score
15,291
First Language
English
Primarily Uses
RMMV

I've moved this thread to RGSS3 Script Requests. Thank you.



Battle action sequences can only be changed via script.
 

DawoleQ

Warper
Member
Joined
Sep 24, 2021
Messages
3
Reaction score
4
First Language
Polish
Primarily Uses
RMVXA
Do you know how to and what script to use? I'm not good with script.
[move]RGSS3 Script Requests[/move]

Battle action sequences can only be changed via script.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,672
Reaction score
15,291
First Language
English
Primarily Uses
RMMV
As a moderator, I moved your thread to the correct place. That's all I needed to do, or had time to do. You will need to wait until someone else with the time and knowledge answers your question.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,283
Reaction score
758
First Language
English
Primarily Uses
RMVXA
tested and confirmed working.
Use Shaz State Commands script
add a state to the skill that will control the bgm
set your conditions on the state for autoremoval (3 turns)
and a note tag as follows (changing the number for the CE you want to use)
onadd: $game_temp.reserve_common_event(1)
onremove: $game_temp.reserve_common_event(2)

CE as follows
1. 1634354786125.png
2. 1634354806539.png
Set the variable to whatever variable you are going to use.
 

DawoleQ

Warper
Member
Joined
Sep 24, 2021
Messages
3
Reaction score
4
First Language
Polish
Primarily Uses
RMVXA
It worked! Thank you so much for the help! :D
 

Latest Threads

Latest Profile Posts

I'm having toooo much fun designing the new MP (Mental Psyche) system. I've only worked it out for enemies so far, but it's fun to stun them, then go after their MP and delete them instead to farm for better item drops.
anyone know of a place I can promote my game? sorta like game awards but for indie devs, like a place where I can drop a trailer and like stir up some hype
Doing RPG Maker News for 17th October 2021

That moment when you came up with a very good game title, but when you searched it, it has already been used... T.T
Crazy week. My anxiety decides to go nutz. Worse thing about it is that it causes me to lose focus on my work. I was able to leave early one day and take a nap. Seemed to help. How is everyone? Boosters coming soon here. Get my life back on track again.

Forum statistics

Threads
115,874
Messages
1,093,657
Members
151,119
Latest member
raidans
Top