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.
Dynamic Variables - DynamicVariables.js
Plugin desc : Dynamic Variables Plugin
License : MIT License
Author : Triacontane
Website : https://triacontane.blogspot.com
Desc page : https://github.com/triacontane/RPGMakerMV/tree/mz_master/DynamicVariables.js
Download Page : https://raw.githubusercontent.com/munokura/triacontane-MZ-plugins/refs/heads/main/DynamicVariables.js
File name : DynamicVariables.js
Help of plugin :
@target MZ @url https://github.com/triacontane/RPGMakerMV/tree/mz_master/DynamicVariables.js @plugindesc Dynamic Variables 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 ----- When referencing a variable or switch within the specified range Returns the result of evaluating the ”variable name” and ”switch name” as a script. In addition to control characters, the following local variables can be used in scripts. id # Target switch, variable ID value # Target switch, variable ID’s original value When referencing a switch in the appearance conditions of an event page, the following variables can be used. e # Reference to the event object d # Reference to the event data When referencing a switch in an enemy character’s behavior pattern, the following variables can be used. e # Reference to the enemy character object d # Reference to the enemy character data The following variables can be used regardless of the situation. v # Reference to the game variable object s # Reference to the game switch object Dynamic variables are valid in all places where variables and switches are referenced (see below). Examples of referencing variables and switches 1. Event page determination process 2. Enemy character action determination process 3. Conditional branching 4. Event command operands 5. References by other plugins You can also reference dynamic variables and switches within a script. However, attempting to reference a variable (switch) with the same number will result in a circular reference and an error. Originally, the event page determination process would only be executed when any switch or variable is changed. This plugin changes the page determination process to run every frame if you set even one dynamic switch or dynamic variable as a page appearance condition. This process slightly degrades performance, so if you don’t want it to run every frame even when using a dynamic switch, please specify the following in the notes field: <NoRefresh> This plugin does not have any plugin commands. Terms of Use: You may modify and redistribute this plugin without permission, and there are no restrictions on its use (commercial, R18, etc.). This plugin is now yours. @param DynamicSwitchStart @text Dynamic switch start position @desc The starting position number of the dynamic switch. @type switch @default 0 @param DynamicSwitchEnd @text Dynamic switch end position @desc End position number of the dynamic switch. @type switch @default 0 @param DynamicVariableStart @text Dynamic variable start position @desc The starting position number of the dynamic variable. @type variable @default 0 @param DynamicVariableEnd @text Dynamic variable end position @desc The ending position number of the dynamic variable. @type variable @default 0 @param ValidException @text Exception Handling @desc Exception handling will be performed when the script is executed. Invalid scripts will no longer be forcibly terminated, but the execution speed will be slightly reduced. @type boolean @default false