Obviously RDeus's Condition Links addon to your Skill Links script, which can be found in your blog's requests/issue section. A complete gem.
Sometimes you need to edit the
def check_item_links
section to meet your needs.
Also, TDS' Custom Action AI.
The most dynamic of all enemy ai scripts in my opinion. Especially since it allows for per-instance action decisions and target-based conditions and target must-haves, must-have-nots, and target orders such as "target the opponent with the highest TP".
http://rpgmaker.net/scripts/253/
However, it doesn't use action weights. It will always pick the first valid action.
Therefore it takes a lot of thought and consideration into conditional situations.
However, something you can do is have this setup on your enemy:
Every turn, variable 1 "Enemy Action Random" is set to 1-100.
<Skill_Use_AI: 101>Require: chance = 33; if u.hp / u.mhp <= 0.2 then chance *= 0.5 end; rand(100)+1 <= chance and $game_variables[1] > 50Select_Default</Skill_Use_AI><Skill_Use_AI: 102>Require: chance = 50; rand(100)+1 <= chance and $game_variables[1] <= 50Select_If: chance = 50; if t.def / t.param_base(2) >= 2 then chance = 100 end; rand(100)+1 <= chanceSelect_Default</Skill_Use_AI><Skill_Use_AI: 103>Require: u.level >= 10 and $game_troop.turn_count % 2 == 0Select_Default</Skill_Use_AI><Skill_Use_AI: 104>Select_Default</Skill_Use_AI>With this condition, you have a 33% base chance to use the top action, halved if the user's health is low.
For the 2nd action, you have a 25% base chance to use it, 50% if the target's defense is twice its base.
There is a 50% chance to not even select the top action and only select the bottom action.
If the enemy's level is high enough, they will use a certain spell every even turn.
If none are selected, the bottom action will be used.
(excuse me for any errors)