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

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

MZ plugins

Dynamic Encounter Weight - DynamicEncounterWeight.js

Plugin desc : Decreases encounter weights on battle end.

License : MIT License

Author : nz_prism

Website : https://github.com/nz-prism/RPG-Maker-MZ/blob/master/DynamicEncounterWeight/js/plugins/DynamicEncounterWeight.js

Desc page : https://github.com/nz-prism/RPG-Maker-MZ/blob/master/DynamicEncounterWeight/js/plugins/DynamicEncounterWeight.js

Download Page : https://raw.githubusercontent.com/nz-prism/RPG-Maker-MZ/master/DynamicEncounterWeight/js/plugins/DynamicEncounterWeight.js

File name : DynamicEncounterWeight.js

Help of plugin :

* @target MZ
 * @plugindesc Decreases encounter weights on battle end.
 * @author nz_prism
 * @url https://github.com/nz-prism/RPG-Maker-MZ/blob/master/DynamicEncounterWeight/js/plugins/DynamicEncounterWeight.js
 *
 * @help DynamicEncounterWeight.js
 *
 * ver. 1.0.1
 * 
 * [History]
 * 03/20/2022 1.0.0 Released
 * 03/20/2022 1.0.1 Fixed an issue that an event battle decreases the previous
 *                  troop’s encounter weight.
 * 
 * This plugin automatically decreases the encounter weight when a player wins
 * the battle against the troop. If an encounter weight is 0, the party will
 * never encounter the troop on the same map. When the player moves to
 * another map, the encounter weights will be reset.
 * 
 * This plugin has no plugin parameters or plugin commands. All you have to set
 * is the encounter weight of troops as usual.
 * 
 * Note if an encounter weight decreases, the probability to encounter the
 * troop changes. For example, you set 10 for Goblin troop while 5 for Gnome.
 * If a player has defeated Goblin troops 5 times at the same map and never
 * defeated Gnomes, the weights of both troops are 5. In this case, the player
 * will encounter both Goblin and Gnome troops for exactly the same
 * probability.
 * 
 * 
 * This plugin is released under MIT license.
 * https://opensource.org/licenses/mit-license.php
 *

スポンサードリンク

-MZ plugins

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