Welcome to PGMZ! My goal is to make it easy for everyone to find and share great plugins for creating amazing games. As a plugin developer myself, I'm excited to grow this community with all of you.
NUUN Encounter Condition - NUUN_EncounterCondition.js
Plugin desc : Encounter conditions
License : MIT License
Author : NUUN
Website : https://github.com/nuun888/MZ/blob/master/NUUN_EncounterCondition.js
Download Page : https://raw.githubusercontent.com/nuun888/MZ/master/NUUN_EncounterCondition.js
File name : NUUN_EncounterCondition.js
Help of plugin :
* @target MZ * @plugindesc Encounter conditions * @author NUUN * @base NUUN_Base * @orderAfter NUUN_Base * @version 2.0.0 * * @help * Sets encounter conditions for enemy groups. * * Please enter the following tags in the Comment on the first page of the enemy group. * <EncCond:[id]> * [id]: Encounter setting ID for plugin parameters * If multiple settings are made, it will only appear if all match. * * If you want to set it from the encounter region ID, set the plugin parameter "Specify region ID" to true. * Specify the encounter setting ID from the plugin parameters as the region ID. * If this setting is set to friendly, the original region condition will be disabled. Use the region conditions in this plugin. * If multiple settings are set, it will appear only if all match. * * Encounter Settings * You can set encounter conditions from regions, variables, switches, vehicles, autotiles, and evaluation expressions. * Multiple conditions can be set, and an encounter will occur if any of them are matched. * If multiple conditions are set (variables, vehicles are set), an encounter will occur if all are matched. * * If <EncCond:1><EncCond:2> are specified, the encounter will occur if both match. * If multiple conditions of the same type for variables (region, switch, vehicle, autotile, evaluation expression) are set, the encounter will occur if any of them match. * If conditions of different types such as variables, switches, vehicles, etc. are set at the same time, the encounter will occur if all conditions match. * * Terms of Use * This plugin is distributed under the MIT license. * * Log * 4/20/2025 Ver.2.0.0 * Changed the setting method to plugin parameters. * Added a function to specify the encounter region. * Added support for specifying additional regions and autotile IDs as encounter conditions. * 12/11/2022 Ver.1.2.2 * Changed the display in languages other than Japanese to English. * 1/8/2022 Ver.1.2.1 * Fixed the problem that the switch and variable conditions of the new condition definition were defined inversely. * 12/19/2021 Ver.1.2.0 * Support for conditions by "NUUN_ConditionsBase". * 8/5/2021 Ver.1.1.0 * Changed the tag description method for encounter conditions. * 1/4/2021 Ver.1.0.0 * First edition. * * @param EncountSetting * @desc Set up the encounter settings. * @text Encounter Settings * @type struct<EncountList>[] * @default * * @param RegionIDSetting * @text Specify region ID * @desc Specify the encounter setting ID by region. * @type boolean * @default false * *