Change Parallax Background via Event/Script Calls?

Hey all!

Similar to the situation found in this MV Thread - I use mostly Parallax and Overlay maps in my game, because I prefer to have more control over the look and feel of the map. I also use Galv's VXA Script for Layer mapping, and it works perfectly!

What I found however, is since most of my maps are built outside of the engine, when I am setting up events inside the engine I had to keep tabbing in and out and counting squares to make sure the passing squares are setup correctly. Lots of loading into the game, testing, mapping, testing for simply 'placement' purposes.

So, I'm just trying to get more 'Quality of Life' script.

Since my In-game Map, and my Map Image are the same Pixel dimensions in 32px squares, I can set the completed map as a Parallax and check 'show in editor' and it aligns perfectly which allows me to set pathing, event locations, etc etc.

This has greatly improved my ability to setup events and map accordingly.

But-each time I do this, I have to removed it before loading the game so it doesn't place a parallax layer behind the layers while I'm roaming.

My question is - is there a means of calling a script or entering a command that will disable/enable a parallax background in-game? Or even better, once that can also 'change' the parallax image so in the event I actually want to add a parallax layer I can do so through an event?

If there is an easier way to do what I'm doing that I'm unaware of, I'll also take that info as well!
there is one widely used overlay script for Ace that gives this ability - even if most ignore it.
I don't know if it was from yami or yanfly, but it defines four variables for the different overlay layers, and the actual picture loaded always depended on both the name given, plus the number in the variable.

most people had that variable remain constant, but if you had ground-1, ground-2 and ground-3 pictures for a map, you could switch between them by changing the variable between 1, 2 and 3.
there is one widely used overlay script for Ace that gives this ability - even if most ignore it.
I don't know if it was from yami or yanfly, but it defines four variables for the different overlay layers, and the actual picture loaded always depended on both the name given, plus the number in the variable.

most people had that variable remain constant, but if you had ground-1, ground-2 and ground-3 pictures for a map, you could switch between them by changing the variable between 1, 2 and 3.

I actually think that's Yami's - if it's what I'm thinking. It had 4 layers, Parralax, Shadow, Light, and Ground - and I was a bit confused on it so I wasn't sure if it functioned similar to Galv's. But I think I might need to dig into it a bit more and see what it can do. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/change-parallax-background-via-event-script-calls.140419/