Is there a way to recreate the moon phases system from FFIV: The After Years?

In FFIV: The After Years, there's a display on the start menu that shows what the current moon phase is, and what effect it has on your abilities. Black magic, White magic, ninjutsu, and physical attacks can be made stronger or weaker by the moon phases, so you can use different strategies according to what the current phase is. Is there a way to recreate this system in RPG Maker MV?

misc details about FFVI:TAY's system:
* If a battle command is affected by the moon phase, it's color reflects it. It's green if it's strengthened by the moon, red if it's weakened, and white if it's unaffected.
* The moon phase advances every time you rest at an inn or use a tent. It also advances as time passes, but I didn't like that feature, tbh. I wish it was only when you sleep at an inn / use a tent.
You can use variables in the damage formula, so if you have a variable that will store a number depending on the moon phase (which you can change whenever you sleep at the inn) you can then call that to change how much damage is done - say, if your damage formula was a.atk - b.def + v[1] , then you make v[1] change between 5, 0 and -5. Maybe something like that as a starting point?
You can use variables in the damage formula, so if you have a variable that will store a number depending on the moon phase (which you can change whenever you sleep at the inn) you can then call that to change how much damage is done - say, if your damage formula was a.atk - b.def + v[1] , then you make v[1] change between 5, 0 and -5. Maybe something like that as a starting point?
ooo I didn't know variables could be used that way! That's a cool idea, I'll try that later.

EDIT: Got a really simple version set up:
1732844437634.png
1732844466708.png
1732844575694.png

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-recreate-the-moon-phases-system-from-ffiv-the-after-years.173511/