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 Self Sw Bat Ctrl - RX_T_SelfSw_BatCtrl.js

Plugin desc : You will be able to operate the self-switch in batches.

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_SelfSw_BatCtrl.js

File name : RX_T_SelfSw_BatCtrl.js

Help of plugin :

* @target MZ
 * @plugindesc You will be able to operate the self-switch in batches.
 * @author TYPE74RX-T
 * @url https://w.atwiki.jp/type74rx-t/pages/221.html
 *
 * @command selfSwitches
 * @text Self-Switches
 * @desc You can operate the Self-Switch in batches.
 *
 * @arg events
 * @text Events
 * @desc Events where you want to operate the self-switch in batches
 * @default []
 * @type struct<RXSelfSwitch>[]
 *
 * @command selfSwitchesEX
 * @text Self-SwitchesEX
 * @desc Batch operate of the same type of self-switch(mostly manual input)Warning:Be careful not to let the configuration fail!
 *
 * @arg eventIDEX
 * @text [EX]Event ID
 * @desc Eligible event IDs. Multiple selections are possible.
 * For example:6, 4-33, 40, 64-72, 80
 * @type string
 *
 * @arg switchTypeEX
 * @text [EX]Self-Switch Type
 * @desc The type of self-switch.
 * You can also set other settings than A to D.
 * @type string
 *
 * @arg statusEX
 * @text Switch Status
 * @desc This is a self-switching state (ON/OFF).
 * @default false
 * @type boolean
 *
 * @arg mapIDEX
 * @text [Ex]MAP ID
 * @desc Eligible map IDs. Multiple selections are possible.
 * For example:1, 7, 13-24, 30
 * @type string
 *
 * @command getSelfSwitches
 * @text Get the Self-Switch infos
 * @desc Get the state of any self-switch as a game-variables.
 *
 * @arg getEventID
 * @text Event ID
 * @desc Eligible Event IDs.
 * @default 1
 * @min 1
 * @type number
 *
 * @arg getSwitchType
 * @text Self-Switch Type
 * @desc The type of self-switch.
 * You can also set other settings than A to D.
 * @type string
 *
 * @arg getMapID
 * @text Map ID
 * @desc Eligible Map IDs.
 * @default 1
 * @min 1
 * @type number
 *
 * @arg putSwitchID
 * @text Game Switches ID
 * @desc A switch ID to obtain the target self-switch information.
 * @default 1
 * @min 1
 * @type switch
 *
 * @help Batch operation of self-switch
 * 
 * This plugin is compatible with RPG Maker MV and RPG Maker MZ.
 *
 * To use by MZ version, you need the official Plugin ”CommonBase.js” plugin to use this plugin.
 * You need the official Plugin ”CommonBase.js” plugin to use this plugin.
 * Stote:C:¥Program Files¥KADOKAWA¥RPGMZ¥dlc¥BasicResources¥plugins¥official
 * Steam:C:¥Program Files (x86)¥Steam¥steamapps¥common¥RPG Maker MZ¥dlc¥BasicResources¥plugins¥official
 * 
 * ◆Summary
 * You will be able to operate the self-switch in batches.
 * You can also use the game-switch to get information on self-switch.
 *
 * ◆Plugin Command for MZ
 * Plugin File:RX_T_SelfSw_BatCtrl
 * 
 * ★Self-Switches
 * Click ”Events” under ”Arguments”.
 * When a new window appears, double-click on the blank space next to
 * the numbered field.
 * The event ID, self-switch type, switch state, and map ID are
 * specified respectively.
 * Do this operation as many times as you need.
 *
 * Sorry, but this parameter setting is only available in Japanese
 * due to programmatic reasons...
 *
 * ★Self-SwitchesEX
 * It’s a little different from the way the above is set up.
 * Map IDs and event IDs are easier to specify, and self-switch types
 * other than A to D cann be specified (strings of two or more bytes
 * are also possible).
 * However, the self-switch type and switch state cannot be set
 * individually.
 * If you want to initialize the self-switch to a large extent, this
 * may be easier.
 * However, be very careful not to make a mistake in setting up the 
 * self-switch, because it is mainly based on keyboard input.
 *
 * ★Get the Self-Switch infos
 * You can store the specified map ID, event ID, and self-switch
 * type status in the specified game switch.
 * It would be useful in a conditional branching event.
 *
 * ◆Plugin Command for MV
 * Example: If you want to turn on the self-switch B of events with a map ID of
 * 3, ID 3 to 5, and 7, set up as follows.
 *
 * rx_selfsw 3 3-5 7 B ON
 *
 * Open a space and don’t separate them with a comma.
 * The first number is the map ID, the second from the end is the self-switch
 * type, the last is the switch state, and all others are recognized as event
 * IDs.
 * If you set the map ID to 0, it will automatically specify the map ID for the
 * event being edited.
 *
 * ◆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.