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

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

NUUN Battle BGM - NUUN_BattleBGM.js

Plugin desc : Enemy group individual BGM

License : MIT License

Author : NUUN

Website : https://github.com/nuun888/MZ/blob/master/NUUN_BattleBGM.js

Download Page : https://raw.githubusercontent.com/nuun888/MZ/master/NUUN_BattleBGM.js

File name : NUUN_BattleBGM.js

Help of plugin :

* @target MZ
 * @plugindesc Enemy group individual BGM
 * @version 1.1.0
 * @author NUUN
 * 
 * @help
 * Battle BGM can be set for each enemy group.
 * 
 * There are two setting methods. Please fill in "Comment" on the first page of the battle event of the enemy group.
 * 1:Set the playback BGM file name, volume, pitch, and phase from the plug-in parameters, and play it with the <battleBGMN> or <battleBGMR> tag.
 * The number displayed on the left side of the list is the playback ID of the BGM.
 * <battleBGMN:[name],[eval]>  BGM specified by [name] is played. *[eval] can be omitted.
 * <battleBGMId:[id],[eval]> The [id]th BGM in the list specified by [id] will be played. *[eval] can be omitted.
 * <battleBGMR:[id],[id],[id]...>  One of the set [id] BGM will be played randomly. If you want to specify conditions, enter the tags below.
 * <battleBGMREval:[id],[id],[id]...,[eval]>  If [eval] is true, one of the set [id] BGM will be played randomly.
 * 
 * [name]:File name (without extension)
 * [id]:List Id
 * [eval]:Playback condition (evaluation formula)
 * 
 * 2:<battleBGM>Specify file name, volume, pitch and phase directly with tags.
 * <battleBGM:[name],[volume],[pitch],[pan],[eval]> BGM specified by [name] is played. You can play it without setting it in the list.
 * *[eval] can be omitted.
 * 
 * [name]:File name (without extension)
 * [id]:List Id
 * [volume]:Volume
 * [pitch]:Pitch
 * [pan]:Pan
 * [eval]:Playback condition (evaluation formula)
 * 
 * 
 * Please fill in the BGM with conditions from the top in order of highest priority.
 * According to the specifications, if the first BGM that can be played is found, that BGM will be played.
 * 
 * BGM change switch
 * If set to 0, the BGM set by this plug-in will always be played.
 * If you specify a switch, the BGM set with this plug-in will be played when the corresponding switch is ON.
 * 
 * Example
 * <battleBGMN:Battle3> If Battle3 is set in the list, Battle3 BGM will be played.
 * <battleBGMR:1,2,3> One of the 1st, 2nd and 3rd BGM in the list will be played randomly.
 * <battleBGM:Battle2, 90, 100, 0> Battle2 BGM is played at volume 90, pitch 100, and pan 0.
 * <battleBGMN:Battle2,$gameSwitches.value(2)> If switch number 2 is True and Battle2 is set in the list, Battle2 will be played.
 * 
 * Terms of Use
 * This plugin is distributed under the MIT license.
 * 
 * Log
 * 11/27/2022 Ver 1.1.0
 * Added the ability to set a switch to enable settings in this plugin.
 * Changed the display in languages other than Japanese to English.
 * 12/1/2020 Ver 1.0.1
 * Added a function that can play BGM by specifying ID.
 * 11/27/2020 Ver 1.0.0
 * First edition.
 *  
 * @param BGMList
 * @text Battle BGM
 * @desc Set battle BGM.
 * @default []
 * @type struct<battleBgmList>[]
 * 
 * @param BattleBgmOnSwitch
 * @text BGM change switch
 * @desc Allow changing the BGM set by this plug-in (ON). 0 to always allow.
 * @type switch
 * @default 0
 *

スポンサードリンク

-MZ plugins

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