簡単なイベントコールで選択肢を隠すことができるプラグイン – HIME_HiddenChoiceConditions.js

タイトル
Allows you to hide choices with a simple event call
作者名
ヘルプ
-------------------------------------------------------------------------
== Description ==

Need a way to hide a choice without creating lots and lots of different
sets of choices and conditional branches for each combination of choices?

This plugin allows you to instruct the event to hide certain choices
from being shown, using only events!

== Terms of Use ==

- Free for use in non-commercial projects with credits
- Contact me for commercial use

== Change Log ==

1.2 - Jan 5, 2016
added support for evaluating formulas inside interpreter scope
1.1 - Nov 6, 2015
choices need to be backed up and restored, otherwise the
choice list will just keep hiding them on refresh
1.0 - Nov 4, 2015
initial release

== Compatibility ==

For compatibility purposes, please place this plugin below other
choice-related plugins. For example, if you are using the Disabled
Choice Conditions plugin, this plugin should go below it.

== Usage ==

There are two ways to hide choices

1. Using a plugin command.

Create a plugin command and write

hide_choice choiceNumber

Where the choiceNumber is the number of the choice that you would
like to hide.

Choices are numbers starting from 1, so if you want to hide the second
choice, you would say

hide_choice 2

2. Using a script call

Create a script call and write

hide_choice( choiceNumber, condition )

Where the choiceNumber is the number of the choice that you would like
to hide, and the condition is a javascript formula that evaluates to
true or false.

For example, if you want to hide a choice if switch 3 is OFF, you can
use the script call

hide_choice(3, "$gameSwitches.value(3) === false")

Hidden choice commands apply to the first set of choices down the list
from where the commands have been called. If you have multiple sets
of choices that require hiding, you will need to create hidden choice
commands for those as well.

-------------------------------------------------------------------------
パラメータ
title Hidden Choice Conditions
version 1.2
date Jan 5, 2016
filename HIME_HiddenChoiceConditions.js
url http://himeworks.com/2015/11/hidden-choice-conditions/

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/

-------------------------------------------------------------------------
ライセンス表記
- Free for use in non-commercial projects with credits
- Contact me for commercial use

紹介ページ http://himeworks.com/2015/11/hidden-choice-conditions/