RPG Maker Forums

As the title said, I have not figured a way to increase a variable value by 1 and only 1 in a specific in-game hour.

What I Want:
The concept is a farming game where the player can choose to not sleep and doing all-nighters as many as they want... until the debuff/passive state makes them a zombie farmer or some sort. While doing all-nighter the player will accumulate fatigue points. If they accumulate enough, at 6 AM in-game time morning a variable will be increased by one. A state then will be applied based on the value of that variable.

The Problem I Got:
The Variable's value increased too many, the player straight up become zombie farmer after one nighter.

What I Did:
I made three parallel Common Events:
1. Counting fatigue points if the player does an all-nighter.
2. Enabling a switch for 6 AM check at 5 AM.
3. Increase a variable and determine which state/passive will be applied to the player at 6 AM,
then disable the check switch. Screen capture included.

Adding and removing the plugin command still didn't give me the desired result. Moving switch-off below the "enable_time" didn't work too.

Plugins Used in This Project:
- Yanfly Core
- DKTools
- DKTools Localization
- Yanfly Auto Passive States
- Yanfly Passive Cases
- MOG Actor HUD
- MOG Time System
- MOG Time System HUD
- Ventiqu Single Actor

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top