Help with Strategic Skill Combos

To start with, I am using RPG Maker XP on Windows 7

Something I would like to do is to create some skills that work better in combination than they do on their own.  For instance, a finishing move that deals extra damage if the target has been tripped, or has a certain state inflicted; a rogue spending a turn hiding so they can deliver a sneak attack for extra damage.  Skills that function if you are working as a team, where somebody else has attacked the target this turn, you get a flanking bonus. 

For skils combos like this, I am uncertain if I need to resort to scriping, common events, or if it can all be done within the database (though I doubt it).  I would appreciate some pointers on this.  If it does require scripting, are any known scripts available for this?
For the most part, you would probably need to use scripts to get these to work exactly the way you want them to - especially for the sneak attack. I have a couple simple ideas for "trip" and "flank," although they might not function exactly as you had envisioned.

For trip, you could create a state that decreases the enemy's DEF and/or MDEF values, and add that state application to any skills that could trip the enemy. You could set it so that it has a 100% chance to release the state upon physical damage, and with the "Can't move" restriction so that they're not able to attack while tripped (if that's how you imagined it working). May want to add the 1 turn release as well, since I would imagine the enemy would get up before too long.

Flank would be a similar state that decreases DEF/MDEF, and just set the state to release after 1 turn. You would need to set every attack skill and weapon to apply the state.

Again, probably not ideal since you would most likely need scripts to achieve exactly what you were looking for, but just some thoughts on how some of it could be done anyways.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-strategic-skill-combos.39718/