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

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

MZ plugins

Encounter Formula - EncounterFormula.js

Plugin desc : Encounter Calculation Formula Plugin

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com

Desc page : https://github.com/triacontane/RPGMakerMV/tree/mz_master/EncounterFormula.js

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

File name : EncounterFormula.js

Help of plugin :

@target MZ
@url https://github.com/triacontane/RPGMakerMV/tree/mz_master/EncounterFormula.js
@plugindesc Encounter Calculation Formula Plugin
@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-MZ-plugins ).
Original plugin by Triacontane.
Please check the latest official version at:
https://triacontane.blogspot.com
-----

EncounterFormula.js

You can set a formula to calculate the number of steps until an encounter.
The script execution result will be the number of steps until an encounter.
You can reference the ”Enemy Steps” entered in the map settings with n.

This plugin requires the base plugin ”PluginCommonBase.js.”
”PluginCommonBase.js” is located in the following folder under the RPG Maker
MZ installation folder:

dlc/BasicResources/plugins/official

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

@param formula
@text calculation formula
@desc This is a formula to calculate the number of steps until an encounter. You can refer to the ”Number of steps until enemy appears” entered in the map settings with n.
@type multiline_string
@default Math.randomInt(n) + Math.randomInt(n) + 1;

スポンサードリンク

-MZ plugins

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