RPG Maker Forums

DoubleX RMVXA Targeting AI  v1.01c​
by DoubleX​

Introduction
Allows users to have greater control on single non random target selections of skills used by enemies or autobattle or confused actors

#==============================================================================|#  ** Resisting notetags for skills                                            |#------------------------------------------------------------------------------|#  * Note                                                                      |#    - Resisting notetags work on all targets and are checked first            |#    - If there's any of these notetags, working targets not included by any of|#      them will be excluded                                                   |#    - If all working targets are excluded, those excluded by this check will  |#      be included back                                                        |#------------------------------------------------------------------------------|#  * Notetag <resist state: a1, a2, a3, ..., an>                               |#    Includes targets not resisting any state with respective id in this       |#    notetag                                                                   |#------------------------------------------------------------------------------|#  * Notetag <resist debuff: param, param, param, ..., param>                  |#    Includes targets not resisting any debuff with respective param in this   |#    notetag                                                                   |#==============================================================================|#  ** Filtering notetags for skills                                            |#------------------------------------------------------------------------------|#  * Note                                                                      |#    - Filtering notetags only work on non-excluded targets and are checked    |#      second                                                                  |#    - If there's any of these notetags, working targets not included by any of|#      them will be excluded                                                   |#    - If all working targets are excluded, those excluded by this check will  |#      be included back                                                        |#------------------------------------------------------------------------------|#  * Notetag <target state: a1, a2, a3, ..., an>                               |#    Includes targets having all states with respective id in this notetag     |#------------------------------------------------------------------------------|#  * Notetag <avoid state: a1, a2, a3, ..., an>                                |#    Includes targets not having any state with respective id in this notetag  |#------------------------------------------------------------------------------|#  * Notetag <target buff: param, lv, param, lv, param, lv, ..., param, lv>    |#    Includes targets having all buffs with respective param and level(or      |#    above) in this notetag                                                    |#------------------------------------------------------------------------------|#  * Notetag <avoid buff: param, lv, param, lv, param, lv, ..., param, lv>     |#    Includes targets not having any buff with respective param and level(or   |#    above) in this notetag                                                    |#------------------------------------------------------------------------------|#  * Notetag <target debuff: param, lv, param, lv, param, lv, ..., param, lv>  |#    Includes targets having all debuffs with respective param and level(or    |#    above) in this notetag                                                    |#------------------------------------------------------------------------------|#  * Notetag <avoid debuff: param, lv, param, lv, param, lv, ..., param, lv>   |#    Includes targets not having any debuff with respective param and level(or |#    above) in this notetag                                                    |#==============================================================================|#  ** Sorting notetags for skills                                              |#------------------------------------------------------------------------------|#  * Note                                                                      |#    - Sorting notetags only work on non-excluded targets and are checked last |#    - If there's any of these notetags, working targets not included by any of|#      them will be excluded                                                   |#    - If all working targets are excluded, those excluded by this check will  |#      be included back                                                        |#------------------------------------------------------------------------------|#  * Notetag <sort param: param, ord, param, ord, param, ord, ..., param, ord> |#    - param can be Parameter, Ex-Parameter, Sp-Parameter, hp, mp, tp, level,  |#      hp_rate, mp_rate, tp_rate, element_rate(element_id),                    |#      debuff_rate(param_id) or state_rate(state_id)                           |#    - (Needs scripting knowledge)param can also be some other methods under   |#      class Game_BattlerBase, Game_Battler, Game_Actor or Game_Enemy          |#      These methods need to be comparable                                     |#    - ord can be high or low(pick the highest or lowest param respectively)   |#==============================================================================|
Features

Use of notetags and boolean logic(some scripting knowledge is required to use them to their full potential)

How to use
Open the script editor and put this script into an open slot between Materials and Main. Save to take effect.

FAQ
None

Credit and Thanks
DoubleX(Giving me credit is completely optional)
No terms of use other than not claiming this script as created by anyone except DoubleX or his alias

Compatibility

Scripts aliasing method:

- self.load_database under module DataManager

- targets_for_opponents or targets_for_friends under class Game_Action

may have compatibility issues with this script

Place this script above those aliasing any of these methods if possible

Changelog

v1.01c(GMT 1500 14-7-2015):

- Increased this script's efficiency and readability

v1.01b(GMT 0200 23-3-2014):

- Compatible with DoubleX RMVXA Confusion Edit v1.02b+

v1.01a(GMT 0200 13-3-2014):

- Added resisting notetags

- Changed the hierarchy of different types of notetags

- Changed the definition of the avoid filtering notetags

v1.00a(GMT 1100 12-3-2014):

- 1st version of this script finished

(DoubleX)Targeting AI v1.01c.rar

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,469
Members
137,821
Latest member
Capterson
Top