MV Money over time

Hi Guys

Is there a way to allow the player to earn 1 Gold per every hour (in-game hour)?

I have been trying

Code:
If $gameSystem.hour()++;
       do A;

Also tried to assign time to variable but does not work

Code:
If $gameVariables.value(10)++;
    do A;


I have a feeling that my code or syntax is incorrect

Would be great if anyone can shed some light on

I use the Moghunter time system (https://atelierrgss.wordpress.com/rmv-time-system/)

Thanks
the syntax is wrong because most if's start with
"if (command here) {
code here
}"

but if it uses variables for the hours, you can make a parallel process,
not exacly sure how, so you can do +1 gold if the hour = +1.

a long road is,

if variable x = 0
gold += 1
end
if variable x = 1
gold += 1
end

and continue like that, but to make it shorter, I'm not exacly sure though.
I am trying to play around with increment

Do you know how to use these syntaxes (++X or X++) in RMMV?
Maybe to late with the awser, I am a bit familair with those,
but I also think, you can do it better for to check for the array,
IF a number match in the array (or day), you can add +1 gold.

but that is my opinion, might not be the best one, but it can be a start.
but while busy in RL and other things, I am unable to help you push
to the correct direction of the better solution you might need.

(you might already have the solution by now if not searched further).
if you have the solution, you can share it, if not, hopefully someone
can help you better 🙂

Original thread: https://forums.rpgmakerweb.com/threads/money-over-time.132087/