Introduction
I've run into a number of pitfalls trying to do target manipulation inside of Yanfly's Action Sequences. This plugin adds several new target types that will allow users to more easily work with multiple targets.
I have tested the basic functionality, please let me know if you encounter any errors. I will consider making compatibility patches if the other plugin is free to use (or one I own, such as a Yanfly product) and unobfuscated. Otherwise, other authors are free to modify this code to make it compatible with theirs so long as I am still credited.
Spoiler: Features
Code:
* Target Typing
*
* randomfriend | This will give a random friend. If there aren't any
* | friends outside the skill's scope, it will select target.
* |
* randomopponent | This will give a random opponent. If there aren't any
* | outside the skill's scope, it will select target.
* |
* randomtarget | This will give a random target from within the skill's
* | scope.
* |
* targetnum x | Replace x with a number. This will select the target at
* | index x from the list of targets, starting at 0.
复制代码
@Yuuzal directly inspired one of these commands: the functionality of targetnum x depends on how the target list was created. If using a skill with the scope of All Enemies/Users, the list will be in the order of the troop/party.
If the list was made using Yanfly's Target Core, the selected target will be 0, then the rest will be in the order the notetag code added them.
Providing an index beyond the number of available targets will default to the highest valid index. Ex: targetnum 6 in a skill with only 4 targets will function as targetnum 3 (the 4th target).
Spoiler: How to Use
This plugin is plug 'n' play. Install it below all Yanfly plugins in your plugin manager and you'll be able to use any of the above target options for any action sequence command.
Please feel free to offer any suggestions for further target types you'd find useful.
Terms and Credits
Free for non-commercial and commercial use. Credit ATT_Turan.