sanity system in my game

Hello guys, i just made an account here and im relatively new to rpgmaker mv. So uh, i wanted my game to implement a sanity system, for example, when u interact with an object, the sanity of the player will decrease. For simplicity, i changed the hp stats into sanity. Basically, interacting with certain objects decreases your HP (sanity).

My 2 questions are :-
1) How do i make it so that interacting with an object decreases HP (sanity)?
2) Is it possible to trigger an event when the HP (sanity) stat is decreased to a certain point?

(i originally wanted it to be a fear system instead of sanity but i changed it to sanity just because it sounds easier to make the sanity points decrease instead of making the fear points increasing)

I've moved this thread to MV Support. Thank you.


You can use the 'Change HP' event command to lower the HP every time the player interacts with the event. For your second question, you could use conditional branches to check if the HP is low enough and then trigger the event.

But if you're really new to MV, then I'd suggest looking into how variables work because if you learn how they work then you could set up a fear system like you originally wanted.
Moved to: MV Support
You can use the 'Change HP' event command to lower the HP every time the player interacts with the event. For your second question, you could use conditional branches to check if the HP is low enough and then trigger the event.

But if you're really new to MV, then I'd suggest looking into how variables work because if you learn how they work then you could set up a fear system like you originally wanted.
Thanks for the suggestion! Ive looked up on how variables work, i can say i pretty much understand the concept of how it works, but i need to know how to set the initial hp to 1. (ex: 1/100)
This way, interacting with events will increase the hp instead, but most importantly, i know how to use conditional branches but how do i use it to check if the HP is low/high enough to trigger the event? Sorry for asking too much! >w<


EDIT : oh my god, i actually figured out how to do it, now i have a functioning fear system, along with a fear bar HUD to go with! Thank you so much for helping me out!! >v<

Original thread: https://forums.rpgmakerweb.com/threads/sanity-system-in-my-game.114314/