カスタム条件に基づく一連のオプションで個々の選択を無効にすることができます – HIME_DisabledChoiceConditions.js
- タイトル
- Allows you to disable individual choices in a set of options based on custom conditions
- 作者名
- Hime様
- ヘルプ
- -------------------------------------------------------------------------
== Description ==
RPG Maker does not come with a way to disable individual choices from
a list of choices. For example, if the player shouldn't be allowed to
select a particular option, but you still want to show it, there's
basically no way to do it.
This plugin provides an easy way for you to disable each choice based
on your own custom conditions using tools that you are already
familiar with!
== Terms of Use ==
- Free for use in non-commercial projects with credits
- Contact me for commercial use
== Change Log ==
1.4 - Aug 23, 2020
support for MZ
1.3 - Jan 5, 2016
Provided script call with interpreter scope
1.2 - Nov 2, 2015
rewrote input methods. You can either use a script call, or a
plugin command directly
1.1 - Nov 1, 2015
added support for plugin/conditional pair
1.0 - Oct 31, 2015
initial release
== Usage ==
There are two ways to disable a choice
1. Using a plugin command
To disable a choice, simply use the plugin command
disable_choice choiceNumber
Where the choiceNumber is the number of the choice that
you wish to disable
Use conditional branches and any other event commands as needed
to implement your logic.
2. Using a script call
this.disable_choice( choiceNumber, formula )
Where the choiceNumber is the number of the choice that
you wish to disable, and the formula is a valid Javascript formula.
For example, to disable choice 3 if switch 4 is OFF, you can say
this.disable_choice(3, "$gameSwitches.value(4) === false")
-- When there are multiple sets of choices --
Disable conditions apply to the immediate set of choices, on the same
indentation level.
As a rule of thumb, you should declare all disable conditions
immediately before your choices. To avoid breaking up messages
and choices, you can place the disable conditions before any
messages as well.
------------------------------------------------------------------------- - パラメータ
-
target MZ title Disabled Choice Conditions version 1.4 date Aug 24, 2020 url http://himeworks.com/2015/10/disabled-choice-conditions/ filename HIME_DisabledChoiceConditions.js
If you enjoy my work, consider supporting me on Patreon!
https://www.patreon.com/himeworks
If you have any questions or concerns, you can contact me at any of
the following sites:
Main Website: http://himeworks.com
Facebook: https://www.facebook.com/himeworkscom/
Twitter: https://twitter.com/HimeWorks
Youtube: https://www.youtube.com/c/HimeWorks
Tumblr: http://himeworks.tumblr.com/
-------------------------------------------------------------------------command disableCommand desc activates the page!
arg Choice Number type number desc The choice to disable. 1, 2, 3, ...
arg Condition type note desc Formula that returns true if choice should be disabled.
- ライセンス表記
- - Free for use in non-commercial projects with credits
- Contact me for commercial use
紹介ページ http://himeworks.com/2015/10/disabled-choice-conditions/