Need a radiation-ish script

So currently in the RPG I'm working on, I've hit an impasse. I would like to implement a script or something that acts sort of like radiation from Fallout. Instead of mana, I am using "mutagen" and would like for characters to die if they get a certain amount, like 1000 or some other number. I have items that increase and decrease it, since a chunk of skills will require it for use. So, to put the idea more simply:

  • "Mutagen" is used as an alternative to mana
  • Characters die if they accumulate past a certain amount (this is the part I need help with)
  • Skills can use it
  • Items can increase and decrease it  for managment
Does your game use MP?

If not you can just repurpose the MP bar. There are some snippets that take care of the death check based on MP. Here is a topic:

http://forums.rpgmakerweb.com/index.php?/topic/11721-add-death-state-when-mp-0-rpg-maker-vx-ace/

If you are using your MP bar, you can try it with your TP bar as well and just change the way TP works.

~ Dinhbat
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
Does your game use MP?

If not you can just repurpose the MP bar. There are some snippets that take care of the death check based on MP. Here is a topic:

http://forums.rpgmakerweb.com/index.php?/topic/11721-add-death-state-when-mp-0-rpg-maker-vx-ace/

If you are using your MP bar, you can try it with your TP bar as well and just change the way TP works.

~ Dinhbat
I am repurposing the MP bar. I looked at that link, and it seems that there is a lot of confusion as to what actually works.

Original thread: https://forums.rpgmakerweb.com/threads/need-a-radiation-ish-script.26848/