Conditional Choices in RPG Maker MZ?

JosephG

Villager
Member
Joined
Jun 25, 2015
Messages
24
Reaction score
4
First Language
English
Primarily Uses
Could anyone point me to a plugin, script or idea on how to get conditional choices working in RPG Maker MZ? I just need a simple way of saying:

Choice A: Say Hi
Choice B: Say Bye
Choice C: Slap in face (Condition, variable = 12345)

There seems to be plugins for RPG Maker MV but not for MZ :(

UPDATE:
It seems you can add additional choices with MZ, simply by having two "choices" events one after the other. HOWEVER, this does not work when you wrap it in a condition for one of them. Ugh...
 
Last edited:

Aviziel

Villager
Member
Joined
May 26, 2013
Messages
13
Reaction score
6
First Language
English
Primarily Uses
You could simply make a conditional branch with two sets of choices.

If variable = X,
Choice A
Choice B

If variable = Y,
Choice A
Choice B
Choice C
 

Ghost of Christmas Kloe

The Icecream Princess
Veteran
Joined
Nov 15, 2015
Messages
1,548
Reaction score
965
First Language
English
Primarily Uses
RMMZ
Could anyone point me to a plugin, script or idea on how to get conditional choices working in RPG Maker MZ? I just need a simple way of saying:

Choice A: Say Hi
Choice B: Say Bye
Choice C: Slap in face (Condition, variable = 12345)

There seems to be plugins for RPG Maker MV but not for MZ :(
In terms of a plugin solution - Visustella Message Core provides choice window textcodes for showing/enabling choices based upon switches (such as <Show Switch: x>, <Enable Switch: x> ect) so you could check the value of the variable then switch on a switch if it's true to have this behaviour.
1599674832349.png
 

JosephG

Villager
Member
Joined
Jun 25, 2015
Messages
24
Reaction score
4
First Language
English
Primarily Uses
You could simply make a conditional branch with two sets of choices.

If variable = X,
Choice A
Choice B

If variable = Y,
Choice A
Choice B
Choice C

Thanks. The issue here is that you then need to either have the same code copy/pasted into Choice A and Choice B under both "if" conditions (or use common events).

In terms of a plugin solution - Visustella Message Core provides choice window textcodes for showing/enabling choices based upon switches (such as <Show Switch: x>, <Enable Switch: x> ect) so you could check the value of the variable then switch on a switch if it's true to have this behaviour.

Thank you! This is more useful to me, although I admit having <Show Variable:4> would be infinitely better since switches only allow two states, on/off, whereas with a variable I can have anything I like. I'll have to use switches as this is the best option available currently.
 

TWings

The Dragon Whisperer
Veteran
Joined
Jul 26, 2017
Messages
530
Reaction score
872
First Language
French
Primarily Uses
RMMV
Thanks. The issue here is that you then need to either have the same code copy/pasted into Choice A and Choice B under both "if" conditions (or use common events).
You can use Label and Jump to Label to avoid duplicating the code.
 

JosephG

Villager
Member
Joined
Jun 25, 2015
Messages
24
Reaction score
4
First Language
English
Primarily Uses
In terms of a plugin solution - Visustella Message Core provides choice window textcodes for showing/enabling choices based upon switches (such as <Show Switch: x>, <Enable Switch: x> ect) so you could check the value of the variable then switch on a switch if it's true to have this behaviour.

I noticed an odd issue where, whereby the "hidden" choice when using <Show Switch: x> still takes up space in the choices pop-up box. I wonder if there's a way around that.

UPDATE:
Also, I verified multiple times that, even if my switch is ON, the choice does not become visible. I then tried using <Enabled Switch: x> instead, but the choice is always disabled no matter if switch is ON or OFF.

You can use Label and Jump to Label to avoid duplicating the code.

Oh right, I didn't realize that was possible- thanks!
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

hmmm. an art of mine was removed from reddit, for a reason not even listed.
Going to try my luck with Rust programming language. C++ is just way too gosh darn frustrating.

Forum statistics

Threads
121,887
Messages
1,144,917
Members
160,140
Latest member
LagusaDumDum
Top