Event Editor check against variable =

Hi

Could you please add an option to the event editor where you can check if a variable = value, rather than variable >/= value?
That would in a lot of circumstances save may a ton of switches and controlling said switches.

Quick example: I have a building with several rooms. Each time the player enters the building the other characters in that building will spawn in a random room. I can do this with switches, but that means making a switch for each character for each room and controlling which switch is on or off. This could be solved much easier by using a single variable for each character where a value of 1 = diningroom, 2 = bedroom, etc.

Keep up the good work!🙂
I assume you are talking about the "Conditions" block on the upper-left of map event pages.

One way around this is to use Hime's Page Conditions plugin, which will allow you to use any condition that can be placed in a Conditional Branch as your Page Condition. I highly recommend using this plugin as it's one of the most useful tools out there for MV!

A second way around this which does not require plugins is to have an extra event page that handles the case if the variable is above the desired value. For example, if you want an event to show a building only if the Variable equals 5, then you could have 3 pages for this event:
  • The first page has no conditions, is invisible, and has no event commands.
  • The second page has a condition of Variable >= 5, has an event graphic of a building, and has event commands to be interacted with.
  • The third page has a condition of Variable >= 6, is invisible, and has no event commands.
If this does not solve your issue, or if it does solve your issue but you still feel the need to make this thread as an Editor Suggestion, then you need to follow the template exactly, including the poll. (Editor Suggestions is the only subforum we're very strict about this, because if the suggestion is extremely popular then it needs to be in a familiar format so we can pass it on to the dev team.) Here is a well-done post you can use as an example. Edit your post to follow that and we can approve it for public view.

Or, if you're happy with one of the two solutions I just gave you, just post here to say you no longer need this as an Editor Suggestion, and I'll simply move it over to MV Support so that people with the same issue can see the solutions. 🙂
@Tinkerer since you haven't responded, I'm going to assume this solved your issue and I've moved this thread to RPG Maker MV Support. If you need it moved back to MV Suggestions, or you need further support with your question, please just @ me and we'll take care of it.
<removed> because I hadn't read Wavelength's response fully and it's already covered.

Original thread: https://forums.rpgmakerweb.com/threads/event-editor-check-against-variable.114624/