DoubleX RMVXA Targeting AI

DoubleX

Just a nameless weakling
Veteran
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)   |#==============================================================================|
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
 

Attachments

Last edited by a moderator:

Euphoria

Veteran
Veteran
Joined
Jun 27, 2013
Messages
378
Reaction score
93
First Language
English
Primarily Uses
I can't get this to work. I tag a skill with <sort param: mat, high> and the enemy uses the skill on my fighter(low mat) instead of my mage(high mat)...

Is this incompatible with anything you know of?

I can't seem to get any AI script to work at all.
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
As this script is a bit complicated(and the most complicated script I've created uptil now) even for myself, I'm afraid that you'll have to give me your project so I may have a reasonable chance to figure out the root causes :)
 
Last edited by a moderator:

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
Updates

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

- Increased this script's efficiency and readability
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top