An open library of RPG Maker MV plugins, powered by the community.

PGMV - The Community-Driven Plugin Library for RPG Maker MV

MV plugins

Flexible Battle Bgm - FlexibleBattleBgm.js

Plugin desc : Battle BGM setting plugin for each enemy group

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com/

Desc page : https://triacontane.blogspot.com/

Download Page : https://raw.githubusercontent.com/munokura/triacontane-MV-plugins/refs/heads/main/FlexibleBattleBgm.js

File name : FlexibleBattleBgm.js

Help of plugin :

@url https://triacontane.blogspot.com/
@plugindesc Battle BGM setting plugin for each enemy group
@author Triacontane
@license MIT License

@help
English Help Translator: munokura
This is an unofficial English translation of the plugin help,
created to support global RPG Maker users.
Feedback is welcome to improve translation quality
(see: https://github.com/munokura/triacontane-MV-plugins ).
Original plugin by Triacontane.
Please check the latest official version at:
https://triacontane.blogspot.com
-----

This plugin allows you to set battle BGM for each enemy group.
This setting takes priority over the system battle BGM,
and the system battle BGM will play only if it is not set.
The setting is made using the plugin command,
and enemy group IDs can be specified all at once.
Once you run this setting, it will be saved in your save file,
so you only need to run it once at the start of the game.

Plugin Command Details
Execute from the "Plugin Command" event command.
(Separate parameters with a space.)

ADD_TROOP_BGM [Enemy Group ID Start] [Enemy Group ID End] [BGM Name] [BGM Volume] [BGM Pitch] [BGM Phase]

(Example 1) To set the battle BGM for enemy group "1" to "Battle 1"
ADD_TROOP_BGM 1 1 Battle1 100 100 0

(Example 2) To set the battle BGM for enemy groups "1" through "20" to
"Battle 2"
ADD_TROOP_BGM 1 20 Battle2
Note: If volume, pitch, and phase are omitted, they will be set to "90,"
"100," and "0," respectively.

Terms of Use:
You may modify and redistribute this plugin without permission from the
author, and there are no restrictions on its use (commercial, 18+, etc.).
This plugin is now yours.

スポンサードリンク

-MV plugins

Copyright© PGMV - The Community-Driven Plugin Library for RPG Maker MV , 2026 All Rights Reserved.