Implementing a needs-based system in the game

Hello!


I'll try to be as straight-forward as I possibly can with this, because the faster I can get back to work, the better - and so far Google searches have led me nowhere.


I've had this idea for a Needs-based system, where every "day" in the game would drain the player's statistics by some amount and they would have to be raised back up by using items. If that is not done, the stats will eventually reach 0 and apply a state (Death, Starvation, Dehydration etcetera). Basically speaking, I thought of turning the default stats (ATK, DEF, MAT, MDF, AGI and LUK) into what would be essentially six more status bars, like the ones for HP and MP.


Now, my idea was to have the game run a Conditional Branch check for the player's statistics - but unfortunately that is not an option. I can only check for an actor's presence in the party, their skills, their equipment and so on - but not their stats.


Is there any way to implement such a system? If so, then is it possible in the engine or does it require scripts?


Thanks in advance!
It depends on how you want to do it.


You can implement a time system by events and have it reduce the values by event commands, that alone should be no problem.


A script is only neccessary if you want to display the numbers as bars (or to change any in the way the values are displayed on screen), or if you want the time system more complex and handling more than just that option.
What I have in mind is a Common Event that starts upon a new day (as an example, interacting with a bed would mark the end of a day and proceed to the next one). The CE would lower the statistics (which can be done). To keep actors healthy, players would have to use stat-changing items (which can be done) to keep them at a good number.


My problem is that I want the game/CE to also apply a state to actors once a statistic reaches the critical level (for example, Death if the Warmth stat runs out, Starvation if the Hunger stat runs out etc.). As far as I know, this cannot be done, because apparently the Conditional Branch doesn't allow "if [statistic] of [actor] is at [certain number]".


Basically speaking, what I'm looking for, but what doesn't exist: this


Is there any way to circumvent this restriction?
You can still do it without a script. First, use control variables to store the value of the actor's stats (select game data -> Actor's stat). Then, use the conditional branch to compare with the variable you stored your value in.
You can still do it without a script. First, use control variables to store the value of the actor's stats (select game data -> Actor's stat). Then, use the conditional branch to compare with the variable you stored your value in.



This is precisely what I was looking for! I completely forgot that variables could store actor data, stupid me :V


Thank you very much! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/implementing-a-needs-based-system-in-the-game.59491/