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 Profile Posts

I'm working with Excel today, and I just hate VBA so much. It's like the designers said "How can we make a programming language that works as obtusely and inefficiently as possible?"
Beep-Beep-Motha-facka.gif

Just finished and uploaded the delivery truck base/sprite sheet. I've been steadily replacing the default assets with early modern alternatives. The air-ship for a biplane, horse-drawn wagon for a delivery truck, and next a sailboat for a steam-powered passenger liner (think of the SS Olympic and RMS Titanic).
I caught a shiny magikarp on pokemonGO today AND finally saw Detective Pikachu and it was so cute and I'm still so hype AHHHHH!!!
one of the coolest things I've learned from the forums is the ability to give yourself a hitbox. I have a move you can do on the fields. shoulder tackle. thanks to the forums, that tackle triggers self A switches on some events. NPC's and the environment now react to the tackle. awesome.
I really liked how this one turned out! :kaopride:
WYqMPf6.png

Character (Yes, this is a character): Nibiru the Primal Being from Yugioh.

Forum statistics

Threads
121,947
Messages
1,145,370
Members
160,220
Latest member
Trex1930
Top