Adding Point System

So, now I have a very strange question.


I am constructing a game where they have the playable characters have something called Sanity Points, meaning, the points they lose, the closer they are to going into Berserk Mode (Fascination State that cannot be cured). Now, it is treated like HP (when you reach 0, you're dead). However, I don't know if they're is a variable available to make it happen. I don't know anything about creating scripts but I really want to figure out how I could this. Right now I am creating a common event to try and work my way around it but I don't have anything happening like it is supposed to.


TL;DR - Is there a way to create a new point system like HP through variables or any other way with scripting?
You could create variables that depict the sanity and use the Actor Variables Plugin by Yanfly. You could make skills or player actions/decisions affect those variables and have common events that trigger an event when a certain amount of sanity "points" has been reached.


I think I've seen a plugin by Soulpour777 called Virtue Metre, but I never tested it out. Maybe it can be useful, too.
You could create variables that depict the sanity and use the Actor Variables Plugin by Yanfly. You could make skills or player actions/decisions affect those variables and have common events that trigger an event when a certain amount of sanity "points" has been reached.


I think I've seen a plugin by Soulpour777 called Virtue Metre, but I never tested it out. Maybe it can be useful, too.



 I am still figuring out how to create the variables for the points because i am trying to make it similar to HP and MP including gauges and stuff. Meaning, I know the available points I can use are HP, MP and TP but simply asking, what if I want to add another point system? That's what I'm looking for. 


0b127301a283737f66e4beb053f2ec63.png
​


i have tested this in battle but isn't working! This is the state I have for insane mode.
​


 
​


99bb339f4bd3427a91c2d4b86e58c614.png
​


I don't know what to do at this point 🙁​
Set the trigger to parallel process and a switch of your choice and make sure it is turned on when entering the battle. Can't help you with the additional gauges though :/ but you could use either MP or TP as an indicator for sanity and modify your skills.

Original thread: https://forums.rpgmakerweb.com/threads/adding-point-system.59249/