MV Help with Community_lighting plugin

Hi, I'm a bit new here, although I've been messing around with RPG Maker for a while now, but only for small projects. This time I'm trying to make some more serious projects, although it's still something personal.

For the project I'm doing I would like to use the Community_lighting plugin because I think it's very useful and complete. But also, I would like to have a way to make a day counter that matches the day-night cycles of the plugin.

The problem is that I have tried to use the variables that the plugin uses, which I have saved in the values 0001 for seconds, 0002 for minutes and 0003 for hours. As you will see, the names are in spanish as is my first language.

1719337840339.png


What I have done is to create another variable, with another counter for the hours in the variable 0005, so that when the plugin assigned an hour to its variable 0003 my event added an hour to the variable 0005, I also created another event so that when the variable 0006 reached 24 it added a day to the days variable 0007.
1719337811917.png


The problem is that, as you can see in this image, the hour counter I created doesn't work as expected:

1719338010428.png


I would really appreciate help to create a working system, I don't have any javascript knowledge to make my own plugin or even interpret the community_lighting and I'm sure it's something that a person who understands it will know how to solve.
Welcome! Just as a tip, when you're going to post screenshots of your editor, it will be helpful to change your language to English. In Steam, you can right-click MV in your library, go to Preferences, and change the language drop-down.

There have been kind of a lot of threads about how to make time systems that you should be able to find with a search, but...I guess it's been a while, so here you go 😛

What I have done is to create another variable, with another counter for the hours in the variable 0005
Why? Isn't that what minutes do?

All you should need is a parallel event that Waits 60, increments seconds, then does all of the checks. (presuming you want the time to be real-time).

If you want your time to be faster than real-time, like most games do, you probably don't want to get into seconds.

Here's an example. This doesn't use seconds, it makes each real second be one game minute, but you should be able to expand the logic to seconds if you want them.

1719339978008.png
I'm still trying to understand what are you trying to do...
But from the screenshots you took, I'd say you're running your if ("Horas" > 1) only once, or as many times as you run the related event.

What's the purpose of your variable, "Contador horas"?
Do you want to get the difference in hours between a point in ingame time and another?
Do you want to make some kind of clock like the one in your screenshot or time gated events?

Original thread: https://forums.rpgmakerweb.com/threads/help-with-community_lighting-plugin.169785/