I had an idea for a stamina mechanic that depletes your stamina (TP) as you move, fight, and take damage. I want to run them through a common event that tests for the character's level (if a random number between 1 and 100 is greater than the character's level, they lose 1 TP) after so many steps, after making an attack, and after taking a hit. The problem is getting the common event to recognize the actor that's attacking and getting hit. I'm not even sure if it's possible without a plugin (or if a plugin exists that will handle it).
also, I'm not great at Javascript so I'm not 100% sure how to phrase the common event either.
also, I'm not great at Javascript so I'm not 100% sure how to phrase the common event either.