Passive, reaction and conditional skill system

I'm looking for plugin or plugins that allows me build a passive reaction skills system casting skills when condition is meet.

 

example idea notetag:

 

<passive skill: subject condition target id>

 

subject: self, ally, enemy, any

condition: becomes_target, becomes_damaged, magical_damaged, physical_damaged, cirtical_hp, hp_is_50%_or_low, has_state_id, death etc

target: self, each, any, team, enemy, random, random_enemy, subject, skill_caster

id: skill_id 

 

and random examples that system:

 

<passive skill: self becomes_damaged self 13>

means when owner of that skill takes damage it cast Heal spell on self

 

<passive skill: ally cirtical_hp all 11>

means when any ally has low hp owner this skill cast ex. Blind on everybody

 

<passive skill: enemy becomes_target subject 12>

means when enemy becomes targeted by skill, owner cast on him\it for example 'punch' skill

 


<passive skill: self becomes_damaged skill_caster 14>

counter attack with skill 14


 

of course skill should be played only if actor.mp >=  mp needed  to cast skill

also it would be great if will be option that skill will be executed before damage from  target skill that causes skill condition but it could be impossible. 

 

 

Any ideas?

Thanks in advance and sorry for bad english

Original thread: https://forums.rpgmakerweb.com/threads/passive-reaction-and-conditional-skill-system.49763/