敵のスキル使用AIを改善するプラグイン – GALV_EnemyAI.js

タイトル
Improves enemy's skill usage AI.
作者名
ヘルプ
Galv's Enemy AI
----------------------------------------------------------------------------
This plugin adds notetags for skills that allow you to control when an enemy
will use the skill and on what target. This is for single-target skills and
I will refer to them as priority skills or prio skills.

The priority type notetag for SKILLS (which will only affect enemies):


<prioType: setting,value>


setting,value - description
------------------------------
hp,x - possible targets have x% or more hp
-hp,x - possible targets have x% or less hp
mp,x - possible targets have x% or more mp
-mp,x - possible targets have x% or less mp
state,x - if a battler has x state - target that battler
-state,x - if a battler doesn't have x state - target that battler
dead - possible targets have the dead state

If there are no possible targets for the above priority type set in a skill
notes, then the skill will not be used by the enemy, even if the enemy's
skill rating enables it to.

EXAMPLE:
If a 'heal' skill has note tag of: <prioType:-hp,50>
And an enemy has these skills:
- Attack - rating 1
- Heal - rating 9
Normally, the enemy would only use Heal as the rating is a lot higher, but
the Heal skill has a prioType so it will only be used if there is an ally
with 50% or less hp. It will also only target those hurt allies.
If no allies are 50% or less hp, it will use its other skills instead, in
the case of this enemy, its only other skill would be to Attack.


HOW STUFF WORKS:
Skills are determined at the start of a battle round. So if nobody is hurt
at this time, enemies will not choose heal in that round, even if their
allies are hurt during it. This is true for all priority skill types.

However, if at the start of the round priority skill conditions are met,
and during the battle round they are no longer met - when it comes to the
enemy's turn to use a priority skill, it will not use that skill and
instead try to use a skill that has NO prioType tag. If the enemy has no
skills without the prioType tag, it will not use any skill in this case.

----------------------------------------------------------------------------
パラメータ
param
desc
default
ライセンス表記
Terms of Use
https://galvs-scripts.com/terms-of-use/

紹介ページ https://galvs-scripts.com/category/rmmv-plugins/mv-battle/#post-1812