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

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

MZ plugins

MPP Delete Self Switch - MPP_DeleteSelfSwitch.js

Plugin desc : When you move to another place, turn off the specified self-switch.

License : MIT License

Author : Mokusei Penguin

Website : http://woodpenguin.blog.fc2.com/

Desc page : https://woodpenguin.web.fc2.com/MV_Plugin/DeleteSelfSwitch.html

File name : MPP_DeleteSelfSwitch.js

Help of plugin :

* @target MV MZ
 * @plugindesc When you move to another place, turn off the specified self-switch.
 * @author Mokusei Penguin
 * @url 
 *
 * @help [version 2.1.0]
 * This plugin is for RPG Maker MV and MZ.
 * 
 * ▼ Plugin command details
 *  - In MV, the variable N is referred to by writing v [N] in the item for
 *    inputting a numerical value.
 *  - In MZ, in the item to enter a numerical value, select the text and
 *    write v [N] to refer to the variable N.
 *  
 *  〇 MV / MZ
 *  
 *  〇 DeleteSelfSwitch mapIds sw  / delete
 *      mapIds : Range can be specified
 *      sw     : Self switch to turn off
 *   - Turns off all self-switches on the specified map.
 *   - When specifying the range, do not put a space between them. (MV only)
 *   - Do not put a space between the self-switch specifications.
 *       Example: DeleteSelfSwitch 1 A
 *                   => Change self-switch A of map ID 1 to OFF
 *                 DeleteSelfSwitch v[13] BCD
 *                   => Change the self-switch B, C, D of the map ID of
 *                      variable 13 to OFF
 *                 DeleteSelfSwitch 1-5,8 BC
 *                   => Change the self-switches B and C of map IDs 1 to 5 and
 *                      8 to OFF
 * 
 * ▼ About range specification
 *  - When setting numbers in an array, you can specify numbers from N to M by
 *    writing N-M.
 *      Example: 1-4,8,10-12
 * 
 * ================================
 * Mail : wood_penguin@yahoo.co.jp (@ is half-width)
 * Blog : http://woodpenguin.blog.fc2.com/
 * License : MIT license
 * 
 *  @command delete
 *      @desc 
 *      @arg mapIds
 *          @desc Range can be specified
 *          @default 0
 *      @arg switchs
 *          @desc 
 *          @default ABCD
 * 
 * 
 *  @param Map IDs
 *      @desc Map ID that turns off the self-switch when moving to another location
 * (All maps if empty / Range can be specified)
 *      @default 
 * 
 *  @param Self Switches
 *      @desc Self switch to turn off
 *      @default ABCD
 *
 *      @param Self Variables
 *      @desc Self variable to be 0
 * (Only when MPP_SelfVariable is installed / Range can be specified)
 *      @default 
 *

スポンサードリンク

-MZ plugins

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