Hello everyone!
is it possible to add functionality similar to MOG's time system to control certain times of the day via control switches and variables?
It's nice we can use plugin commands. And we probably can make our own switches based on those. But I rather do not wish to create multiple parallel processes.
So what would work for me is to store certain time hours in switches. For example: 6am until 2pm or something. And then 2pm until 10pm or whatever.
Otherwise I would have to hardcode it into the plugin myself, which I usually hate to do.
And while Community Lighting works fine with MOG's Time System plugin, not only would it be more convenient to just use one plugin for it, but also for performance reasons as well as eliminating the slightest chances for conflicts or issues in the long run.
Thanks for any of your time.
Hey, how can I set an id for a light? In the help file, it shows it as:
light 250 #ffffff on asdf
but when I do it, it doesn't work, and breaks the whole light. It stops working because of "on" and "asdf" (or any other id) But I'm unsure why these two things are actually breaking it, since it was in the help file. Help is appreciated
Edit: I realized the issue wasnt the ID, but instead "on" but now I don't know how to make the light start turned on.
Hello! In case you still need help.
There are multiple ways to solve your issue.
One would be to add a condition, which has to be fulfilled, to turn the lights on at the maps event, which you transfer the player from, to the respective map with your light sources in place.
This also works with a parallel process on the respective map. But for performance reasons, add a wait in the events parallel process page of about 3 frames or even higher, depending on how often it should check for the condition(s) to be met.
This can obviously be done without conditions too. In this case, just put the plugin command: Light on X (in which X is your ID) in the events page of your target map, run it as parallel process and turn a self switch on. (In this example Self Switch A). create a new empty event page and set the self switch to A but do not change anything else. Put this event somewhere out of bounds, maybe top left corner or wherever you would prefer to store your parallel event processes to easier find them again later on. For bigger maps it is also helpful to also give your events a Name.
Second you can also use the plugin commands in a interactive way. Let's say a lamp you wish to turn on or off by walking to a lamp event. Could be something like ''Text: Want to turn on the light'' ''Choices: Yes, No'' If yes, plugin command: light on X. self switch A on with light image. Possibly on walk / step for some animation effect if graphics are set up. Then when interact again. ''Text: Want to turn off light'' ''Choice: Yes, No''. Then just turn plugin command: light off x and self switch A to false.
Third which will get slightly more complex and perhaps a little more performance hungry is to create a function based on a ''timer'' which turns on and off the respective light sources at certain times.
This mostly is done in a parallel process and if having multiple maps using this, even a common event.
Let's say a time system and when it gets dark, the light sources will turn on.
I hope this helps for further usages of this sort of thing.
EDIT: Sorry for double posting. I forgot about those rules, because I am not really active in forums much. Hahaha.