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

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

MZ plugins

RX T Change Encounter Count - RX_T_ChangeEncounterCount.js

Plugin desc : Encounter steps can be changed through event settings.

License : MIT License

Author : TYPE74RX-T

Website : https://w.atwiki.jp/type74rx-t/pages/221.html

Desc page : https://w.atwiki.jp/type74rx-t/pages/221.html

Download Page : https://raw.githubusercontent.com/munokura/RX_T-plugins/refs/heads/main/RX_T_ChangeEncounterCount.js

File name : RX_T_ChangeEncounterCount.js

Help of plugin :

* @target MV MZ
 * @plugindesc Encounter steps can be changed through event settings.
 * @author TYPE74RX-T
 * @url https://w.atwiki.jp/type74rx-t/pages/221.html
 *
 * @command enCount
 * @text Change in the number of steps to the encounter
 * @desc You can change the number of steps to the encounter
 * in the event settings.
 *
 * @arg encStep
 * @text Basic Step Count to Encounter
 * @desc The basic value of steps it takes to encounter
 * EncounterCount = BasicStepCount + 0 to (RandomValue - 1)
 * @default 15
 * @min 0
 * @type number
 *
 * @arg encRand
 * @text Random Value
 * @desc A random value to add to the basic step count
 * -1: Default formula 0: Fixed to the basic step count
 * @default 15
 * @min -1
 * @type number
 * 
 * @help Change in the number of steps to the encounter
 *
 * This plugin is compatible with RPG Maker MV and RPG Maker MZ.
 *
 * ◆Summary
 * You will be able to change the number of steps to the encounter
 * (enemy appearance rate) at will, depending on the settings of the event.
 *
 * ◆Usage
 * 【Event command ”Script”】
 * (This is the only way to set it up in RPG Maker MV.)
 * Example 1: If you want to fix the number of steps to the encounter at 20 
 *
 * this.rx_changeSteps(20, 0);
 *
 * Example 2: If you want to add 0 to 9 to the number of steps to the
 * encounter (15) you have set
 *
 * this.rx_changeSteps(15, 10);
 *
 * Example 3: If you want to use the same calculation method as usual and
 * set the number of steps to the encounter to 15
 *
 * this.rx_changeSteps(15, -1);
 *
 * 【Plugin Command】
 *(This method is exclusive to RPG Maker MZ.)
 * ★Basic Step Count to Encounter
 * The setting basic value of steps it takes to encounter.
 * It is finally determined by ”Basic step count to Encounter + 0 to
 * (Random Value - 1)”.
 *
 * ★Random Value
 * A random value to add to the ”Basic Step Count to Encounter”.
 * Normally, the value is ”0 to setpoint - 1”.
 * If it is set to 0, the number of steps to the encounter is fixed to the
 * Basic Step Count to Encounter.
 * If it is set to -1, the number of encountered steps is set using the
 * same calculation method as usual based on the Basic Step Count to
 * Encounter.
 *
 * 【Spec】
 * If you use the ”Transfer Player” event command, the settings will be
 * initialized.
 * If you want the effect to continue, set it again after the use
 * ”Transfer Player” command.
 *
 * ◆License
 * This plugin is released under MIT license.
 * http://opensource.org/licenses/mit-license.php

スポンサードリンク

-MZ plugins

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