Is there a more effective way to do this battle event?

So this is how the battle event looks atm. I have three switches and throughout the battle the player will make a choice which flags one of the switches on. I have the second event page set up to properly check to see if one switch is on but then comes the hard part, checking to see two specific switches are on. This is the result of the best I could come up with. 

Spoiler
◆If:Element Of Laughter is ON
◆If:Always there is ON
◆
:End
◆
:End
◆If:Always there is ON
◆If:Element Of Laughter is ON
◆
:End
◆
:End
◆If:Element Of Laughter is ON
◆If:Standing up for herself is ON
◆
:End
◆
:End
◆If:Standing up for herself is ON
◆If:Element Of Laughter is ON
◆
:End
◆
:End
◆If:Standing up for herself is ON
◆If:Always there is ON
◆
:End
◆
:End
◆If:Always there is ON
◆If:Standing up for herself is ON
◆
:End
◆
:End

Are there any errors in this and is there a better way to event this?
Whatever is turning those Switches on, I'd have them also add a binary number to a Variable: 1 for Element Of Laughter, 2 for Always there, 4 for Standing up for herself, then test the result...


If Result=3 // Element and Always


...


Endif


If Result=5 // Element and Standing


...


Endif


If Result=6 // Always and Standing


...


Endif


...and all the bases are covered ('7' if you want to see if all three Switches are On...). Not the most elegant, maybe, but it would do the job.


Hope this helps.
They are specific switches, not just a random switch to progress an event linarly. 


For example: If the player choice in a previous event page:


"Always there for her friends"


It would change which choices would appear in this event page.


Previous event page:

Spoiler
Code:
◆If:Element Of Laughter is OFF
  ◆Show Choices:Always there for her friends., Standing up for who she is. (Window, Right, #1, #2)
  :When Always there for her friends. 
    ◆Control Switches:#4971 Always there = ON
    ◆Control Switches:#4962 Memory 2 = ON
    ◆
  :When Standing up for who she is. 
    ◆Control Switches:#4972 Standing up for herself = ON
    ◆Control Switches:#4962 Memory 2 = ON
    ◆
  :End
  ◆
:End
◆If:Always there is OFF
  ◆Show Choices:Element of Laughter., Standing up for who she is. (Window, Right, #1, #2)
  :When Element of Laughter. 
    ◆Control Switches:#4970 Element Of Laughter = ON
    ◆Control Switches:#4962 Memory 2 = ON
    ◆
  :When Standing up for who she is. 
    ◆Control Switches:#4972 Standing up for herself = ON
    ◆Control Switches:#4962 Memory 2 = ON
    ◆
  :End
  ◆
:End
◆If:Standing up for herself is OFF
  ◆Show Choices:Element of Laughter., Always there for her friends. (Window, Right, #1, #2)
  :When Element of Laughter. 
    ◆Control Switches:#4970 Element Of Laughter = ON
    ◆Control Switches:#4962 Memory 2 = ON
    ◆
  :When Always there for her friends. 
    ◆Control Switches:#4971 Always there = ON
    ◆Control Switches:#4962 Memory 2 = ON
    ◆
  :End
  ◆
:End
you don't need double checks - nested checks are AND logic, and that is independent of order - sou your first to checks are redundant.


1=on AND 2=on is absolutely the same as 2=on AND 1=on.


So you get the same with only three nested conditions, not six as you have now.
But won't it ignore the entire nest if the first switch in the nest isn't flagged?
of course it would do that - but that doesn't mean that you need to place two checks.


In your code, if two switches are ON, you'll have two of those nested commands executed every time - it would be simpler to place all command from both nests into one area.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-more-effective-way-to-do-this-battle-event.69860/