i just played a bit with rpgmaker and ruby first time
and made this script to make enemies attack party members based on received damage.
Intro: This is a script to improve the AI of Enemies for RPG Maker VX Ace. During a battle, the script lets enemies choose targets based on the accumulated "threat" they feel for each opponent (multiplied by his tgr). This script will maintain a threat table for each enemy, threat rises when an party member hurts an enemy or when he heals another member.