Hi, I'm trying to implement a "day/night" system so I checked how to do it, however I don't want it to trigger while I'm doing anything or talking with a NPC so I wanted to use the "steps" game data so everytime the character walks a new minute is added to the proper variable.
Well, this is the issue. I made a common event for this and when I was testing the event sadly it still worked as the basic Night/day system (I'm talking with a npc saying to me the actual time without moving and everytime I talk with him it's a different time). The weird thing is that if I apply that script to a map's event via parallel process the script works and the variable change just when I walk.
I'm using the spanish program so I'll add some green comments to the picture.
If the variable is changing without you doing anything, then chances are you have a plugin that uses that variable by default, and you have not modified its parameters to use a different one (or have not named variables/switches used by plugins to ensure you don't use them for something else).
I specifically note that you haven't named the switch that controls the common event either.
While technically a name is not needed, it is a very bad idea to use unnamed switches and variables.
Because the name is also the indicator that you have already used the switch/variable, and without a name you will never remember where and if you might have used that switch or variable already.
add to that the fact that a plugin using a variable will never name it automatically but that you have to do that manually when deciding how to configure the plugin, leaving out names becomes really bad.
Additionally, six frames wait might be a bit high depending on how you set speed for the player.
you only compare if the number of steps is different - if the speed is high enough and some other event commands cause lag, the player might be able to do two steps between the checks of the time event.
and it only counts steps - which means that if the player is idling time does not pass. This might be what you want, but I want to point it out in case you didn't want that - most time systems count waits instead.
I found the bug (kinda), I tested turning off all the plugins but the "community_basic" one and the thing was still happening, i was thinking the only thing different between the map event and the common event was the switch.
The switch was on the 19º place, I changed it to the 2º slot and the timer variable is working as intended now. I'm not sure if that was really causing the conflict but it was solved somehow (although I still don't get why that switch was causing that...), I named the 15-20 switches as "no use" in order to avoid that problem.
All was tested on an empty map, what made the thing weirder.