MZ Changing a menu background in game.

@BeanmanBowen I took a look into the plugin and remembered why I didn't add this feature as an option: There is a way for you to achieve that with the current plugin version.

On the plugin parameters, specifically on the Background List, you can setup a condition for a background to show by using javascript:
View attachment 317638
The idea is, that you can create as many backgrounds as you want. And inside game, you just need to fulfill the condition to make the background appear.

For example:

return $gameVariables.value(20) === 3

This would make the background appear if the variable 20 has a value equal to 3.
I believe that could work for you.

If not, let me know that I will add a plugin command so you can create a background by using it.
Thats certainly a solution, i can probably make it work if i know what the code would be for a switch being on. Though a simple command to change background to a specified image with an event would make it more accesible and less recourse demanding from the game. Thansk for sharing this solution though i’ll look into it as soon as i can.
@BeanmanBowen
small addon on Eliaquim on the condition can always work nicely if you
open the menu by event's only is to use:

return $gameVariables.value(20) === "backgroundName"

so if you use the variable => script: "Name of background"
wait 2
open the scene (item, menu, equip etc) it should change.

this is also probably an easy way to control background, but if you can open
the menu by X as normal, than it might be a bit different, but switches can
be annoying, so I don't know what happens if 2 or 3 switches are on, if it take
the latest ID or the first ID for the background.

Original thread: https://forums.rpgmakerweb.com/threads/changing-a-menu-background-in-game.171852/