Need help with something similar to the "Erase" command.

What I'm trying to do here is make the illumination turn on/off along with the event lamps according to the Plugin commands (as shown in the screenshots below the gifs).​
​
In the gifs; the left lamp event has no "Erase Event" command, but the right one does. That is why you see the illumination on the right one is turning off, but I want it to turn on again.​
The "Erase" command is not the right command as far as I know since it temporarily erases the events until the Player goes off the map, and that is not what I want.​
​
The problem is that the illumination can either be done in-game or via the Event Notes, and that is why I experimented with the "Erase Event" command and I have no other method to make commands to the illumination than in the Event Notes only... which kinda sucks.​
​
(I'm using the LNM_LightingTool Plugin.)​
​
The lights turning off is no issue, but it is the illumination that I want to be turned on and off according to the Plugin commands. Is there another method for this rather than the frustrating "Erase Event" command?​
​
​
A ) Morning; the lamps get turned off according to the in-game time, the illumination on the right is erased by the "Erase Event" command at the same moment.​
gif 1.gif



B ) Night; the right lamp and its illumination does not start after the erase command has been executed.​
gif 2.gif

​
​
Pg 1.png


Pg 2.png
in case you want it to turn off and on, you an erase event wont work.
but if you can place numbers of the light, you can use "wait" command
to turn it on, and next page to turn it off, (switch A on, wait x frames, switch A off)
to switch page on and off constantly.

I dont know the plugin, but I know it is possible with another plugin though.
Yeah, what ShadowDragon said is the right way to go - instead of erasing anything, turn it off and on by switching pages.
​
Alright, I've done as instructed, but it doesn't work, guys.​
Maybe you have not noticed, but the switch pages do not have any effect on the "Note:" in the Event, only the pages. No matter how many page switches there are (as in the screenshots below), the "Note:" is not affected because it seems to carry the whole event itself. This is why the Lamp sprite sheet does get turned on and off by page switches as shown in the gif, but the illumination in "Note:" of the event is still on, and it doesn't get turned off no matter the pages.​
I think in order to make this truly work is to turn off the whole Event itself, that's why I wondered if there's something similar method to the "Erase Event" command that temporarily erases the Event time-based.​

gif 1.gif


​
A1.png
​
A2.png
Looking at the plugin's page, there should be plugin commands to turn the light for individual events on and off, either with Light LIMIT time_begin time_end light_id or Light ON/OFF light_id. Have you already tried using those?
either with Light LIMIT time_begin time_end light_id or Light ON/OFF light_id. Have you already tried using those?
I've tried using these, but no success. I don't know what I'm doing wrong.​
May I have a visual/sample of how it's done?​
​
Never mind, I got it to work. Thanks a lot, @LadyBaskerville.​
the switch pages do not have any effect on the "Note:" in the Event​
I'm aware of that, but I thought the same as LadyBaskerville, that you were actually controlling the light via the commands on the event page.

I'm glad you got it working!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-something-similar-to-the-erase-command.141943/