VX Ace Eventing/Switches Progression Question

Hey there!


I have a quick question regarding eventing -- I'm trying to make a requirement w/ switches, where two switches need to be turned on at the same time in order to proceed.


(I've been able to do this in the past, it was pretty simple but can't seem to recall ;_;) Right now I have two separate switches that get activated after I retrieve equipment from some chests, but I'm trying to make a requirement that you must have the items from both chests before the game can continue.


I'd appreciate any help I could get with this~


Thanks! ^_^
There are a couple of ways to do this.


You could either use two switches - one for each chest - then on the event that needs to do the check, have a page conditioned by both switches.


Or you can use a single variable and on the first page of each chest, add 1 to it, and make sure it goes to a second page so you can't keep adding 1 to it.  Then on your event that checks if they've both been opened, just test for the variable being >= 2.


Both of the above options can be done with the event conditions (above the event sprite) on a new page, or by conditional branches (if a conditional branch, you'll need to do a nested conditional branch to check for both switches being on - that's one conditional branch inside the other, and the 'progress' stuff gets executed if both are true)
On the left side of the event page are the conditions, and the top 2 are for switches.  Use one for each switch and make them the requirement for this event to run.

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-eventing-switches-progression-question.72700/