How to make a nestled conditional to check for any 3 items

Hi peeps, I want to make a "shop" similar to how in the end of the day in "Papers, Please" you have the options to pay for food/heat/rent etc. and if you leave any of those unpaid then there will be consequences.

I have been fighting with conditional branches and variables but I keep getting lost on them and its really hard to track how to check if you have paid for any of the three items and the effects that will come if you left each of them unpaid. Specially when I want to make sure the player can only pay for each item once.

What do you suggest?
Thanks
I suggest you post screenshots of the work you've already done, because none of us can know what you might be doing wrong without seeing it.

It's also not clear exactly what your question is - have you gotten it working? It's just confusing for you to read? Or you can't figure out how to get it working?

Many (most?) people won't have played Papers, Please, so you'll need to describe exactly what is supposed to be going on for the player.

Without any further details, what you're describing sounds pretty straightforward:
Code:
◆Text:None, Window, Bottom
:Text:Pay for food?
◆Show Choices:Yes, No (Window, Right, #1, #2)
:When Yes 
  ◆Change Gold:- 100
  ◆Control Switches:#0001 Food = ON
  ◆
:When No 
  ◆
:End
◆Text:None, Window, Bottom
:Text:Pay for heat?
◆Show Choices:Yes, No (Window, Right, #1, #2)
:When Yes 
  ◆Change Gold:- 100
  ◆Control Switches:#0002 Heat = ON
  ◆
:When No 
  ◆
:End
◆Text:None, Window, Bottom
:Text:Pay for rent?
◆Show Choices:Yes, No (Window, Right, #1, #2)
:When Yes 
  ◆Change Gold:- 100
  ◆Control Switches:#0003 Rent = ON
  ◆
:When No 
  ◆
:End

Then you can reference any of the three switches wherever in your game there would be a possible consequence.
Sorry, I forgot. I ended up trying a bunch of different ways but they all confused me so I hope I won't confuse yall

This is what I had working, but I'm not sure how to simplify and keep track of what was NOT paid for:
Spoiler: Event Page
1712337142974.png
1712337174920.png
1712337200702.png
1712337221209.png
1712337240704.png
1712337289983.png
1712337308191.png
1712337360941.png

I would like to have it in a way that it shows all 3 options at the same time so the player can make the proper decisions. As for the switches, would I have to nestle them or is there a simpler way to check which of the 3 are on?
Sorry, I forgot. I ended up trying a bunch of different ways but they all confused me so I hope I won't confuse yall

This is what I had working, but I'm not sure how to simplify and keep track of what was NOT paid for:

I would like to have it in a way that it shows all 3 options at the same time so the player can make the proper decisions. As for the switches, would I have to nestle them or is there a simpler way to check which of the 3 are on?
If you want an interface where you can toggle multiple options on/off simultaneously, you'll need a plugin. Also, since each individual branch doesn't rely on the outcome of the others, you don't need to nest them.
For something like that, I'd suggest a conditional choices plugin.

Start exactly the way I showed above, where you have a switch connected to each choice. Then your condition for each choice is "its switch is turned off and you can afford the service."

For example, using HimeWorks' Hidden Choice Conditions, you might do:
Code:
hide_choice(1, $gameParty.gold() < 50 || $gameSwitches.value(42))
that will hide your first choice if you have less than 50 gold or switch 42 is on because you've already chosen it.

As a quick aside - you're asking about your conditions being "nested," that is, inside each other (like nesting dolls). "Nestling" is cuddling in to stay warm.
If you want an interface where you can toggle multiple options on/off simultaneously, you'll need a plugin. Also, since each individual branch doesn't rely on the outcome of the others, you don't need to nest them.
If for example the player pays for Bills, then the next menu won't have that option again, but if they pay for Rent then that's the option that shouldn't show again.

If at the end the player pays for Bills and Rent, wouldn't they need to be nested so the only outcome that happens is the Food debuff?

In the end all switches will be turned off so they can cycle for the next day.
If for example the player pays for Bills, then the next menu won't have that option again, but if they pay for Rent then that's the option that shouldn't show again.

If at the end the player pays for Bills and Rent, wouldn't they need to be nested so the only outcome that happens is the Food debuff?

In the end all switches will be turned off so they can cycle for the next day.
Sounds like you'd benefit from a plugin that allows conditions on choice options.
It looks like you might have been typing this while I was making post #5 - did you read that?

If at the end the player pays for Bills and Rent, wouldn't they need to be nested so the only outcome that happens is the Food debuff?
No. You put the entire thing in a loop so the same Show Choices command is being displayed each time, but the conditions from the plugin will hide any options that shouldn't be shown anymore.
Yea I was 😅

The hidden choice plug-in for that loop sounds like a great solution, I'll look into that!

But say I have 2 of the options paid for, how would I make the game give the debuff from not paying for the other one?
you can also use ConditionalBranch+ to lower is a lot from nested.
so you use it more with 3 conditionals or use labels to jump if needed.

using variable can make it shorter what you have as well, maybe its
a bit advanced, but it does the trick 🙂
But say I have 2 of the options paid for, how would I make the game give the debuff from not paying for the other one?
Same as the solution proposed earlier - set 3 switches to OFF at the beginning, then as each item gets paid set its switch to ON. Later when you want to apply debuffs, just check if the corresponding switch is on.
Same as the solution proposed earlier - set 3 switches to OFF at the beginning, then as each item gets paid set its switch to ON. Later when you want to apply debuffs, just check if the corresponding switch is on.
OOOOOH! That makes so much sense!

I'm going to try that see how it goes.
So I was able to get it with the help of a plug-in, however, now I'm running into the issue that I have the current amount of money display before any payments, but it doesn't update once a payment is made...
Spoiler: Event Page
1712355080903.png
1712355098696.png
1712355126811.png

Spoiler: This is what shows in game
1712355199357.png
Spoiler: After paying for Food
1712355234013.png
If you want your variable that stores gold to update after each purchase then you need to put that inside the loop, not just once outside of it.

Just before the choice would probably work best.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-nestled-conditional-to-check-for-any-3-items.167509/