- Joined
- Jan 2, 2014
- Messages
- 1,787
- Reaction score
- 939
- First Language
- Chinese
- Primarily Uses
- N/A
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) |#==============================================================================|
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
Attachments
-
323 bytes Views: 30
Last edited by a moderator:

