Purity/Sanity/Corruption Bar

Hello

My request seems common to me but with all my searching I can't find anything like it.

I am co-developing a game where you are trying to resist evil powers, and the more you do certain things, the more your Purity bar depletes, and when it runs out, game over.

I can't seem to find a script that does that.

 

I would like it to be controllable through events and the effects panel in the Skills section (can you do that?). Also if it could have a place to be shown on the menu screen perhaps below the MP bar or something.

 

Thanks in advance

-Smartmax
Heh heh, this is my game.

Basically, the vision I have for the game is rather than random battles, each battle is planned out; while there will be "roaming monsters" (still individually scripted) in each area, the bulk of combat would be storyline events, and this is where Purity comes in.

As you use your powers, they corrupt you into wanting to use them more and embrace your true nature; hence, Purity. I haven't decided if I want it to be persistent yet (My initial plan was to use the mana bar), but if it was, that would open up some out-of-battle events, as well. In my concept, running out of Purity results in one game over, while running out of HP results in another.

Original thread: https://forums.rpgmakerweb.com/threads/purity-sanity-corruption-bar.23150/