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

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

MZ plugins

Dark Plasma Choice Extension - DarkPlasma_ChoiceExtension.js

Plugin desc : Expanding your options

License : MIT License

Author : DarkPlasma

Website : https://github.com/munokura/DarkPlasma-MZ-Plugins/blob/main/DarkPlasma_ChoiceExtension.js

Desc page : https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release

Download Page : https://raw.githubusercontent.com/munokura/DarkPlasma-MZ-Plugins/main/DarkPlasma_ChoiceExtension.js

File name : DarkPlasma_ChoiceExtension.js

Help of plugin :

@target MZ
@url https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release
@plugindesc Expanding your options
@author DarkPlasma
@license MIT

@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/DarkPlasma-MZ-Plugins ).
Original plugin by DarkPlasma.
Please check the latest official version at:
https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release
-----

version: 1.2.3
Expands the options.

Writing
if(condition)
in the option text will toggle the visibility of the item depending on the
condition.
Use this when migrating MV projects.
Writing en(condition)
will toggle the visibility of the option depending on the condition.

The following notations can be used in condition expressions:
- v[n] (references variable n)
- s[n] (references switch n)

Examples of option syntax:
if(v[5]>3)hogehoge (displays option hogehoge only if the value of variable 5
is greater than 3)
en(s[3])fugafuga (enables option fugafuga only if switch 3 is ON)

Placing the "Show Options" event command consecutively
will display all the options set for those options together.

The default and cancel behavior of the first option command will be applied.
If you cancel when the cancel option is hidden,
the option processing will terminate without any action.

Programming Interface:
$gameMessage.originalChoices() : object[]
Gets the original list of choices along with the display and enabled flags.

$gameMessage.originalIndexOfDisplayedChoices() : number[]
Gets the original index of the choices to display.

@param maxPageRows
@text Number of lines per page
@type number
@default 6

スポンサードリンク

-MZ plugins

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