I came up with an idea about running a common event after every single skill or item that may cause damage or add states.
It is an after action check that looks for dead allies, if there is a party member dead, a skill is called for reveive an ally consuming an item instantly.
I also use this whenever an ally or enemy has the same parameter being buffed up and down to remove both of them.
If the skill needs a common event fot itself, it call the After action check when it's done with its own common event.
Can you come up with better ideas to improve this common event system.
I'm not entirely clear what exactly happens from your description.
You say after every skill or action - is that enemy skill/action, actor skill/action, both?
It sounds as if this does not require the use of an actor's turn. Is that correct?
What happens at the moment if the player doesn't have a revive item?
If there has been multiple deaths e.g. from an all-party skill, do all of them get revived?
If so, would this prevent the player ever getting a Game Over?
Aside from these, my real concern is with the idea itself. An important strategic choice for the player is whether to use a turn to revive someone, heal up someone else, or try and finish off an enemy before it deals damage you might not be able to recover from. On the face of it, as long as I have revive items, I can play really badly, with an inadequate strategy and this mechanic will save me every time.
Also, if I have understood correctly, you are going to use this to remove buffs if the enemy has the same parameter. I'm not entirely clear what you mean here, but I think that as a player I would be seriously hacked off if I had just applied e.g. an agility buff so that I'm faster than this evenly matched enemy and then saw that buff taken away. I've wasted a turn because how do I know that this enemy has the same parameter as me? Do I have to use someone's turn to scan, and carefully examine every different enemy in this mob? That is going to slow things down a lot.
I strongly suggest you learn to script (or, if you already know how to script, using scripting to do this kind of stuff). Not only can you time things more precisely (for example, you could have an item be lost instead of the character dying, rather than consuming an item and forcing a skill to revive the character), but you'll save yourself a lot of time by being able to look for (as an example) every buff/debuff on every character using just 10-20 lines of code, rather than hundreds of lines of eventing.
@ksjp17
The action check is made to run after any action, and yes, it requires the actor or enemy to act to run this, because if someone does not make a move, it's useless to run the check.
About the revive items, I have an event to correctly check whether the party does not have such items, an item that cures one or the whole party, I was working on it for hours to debug it and it's fully functional. The auto-revive items are meant to be very rare, think on Mementos from Mother 3, you may have some, but never enough to ever lose the game.
And the stat check it's because I don't get the idea about having the same stat up/down because it's like nothing, so I decided to implement the mechanic of removing both.
@Wavelength
I took your advice, and you were right, I did in, like, 40 code lines what I did in a event with 200 commands, thanks!