Action Sequence Target Extension

● ARCHIVED · READ-ONLY
Started by ATT_Turan 7 posts View original ↗
  1. Action Sequence Targets
    ATT_Turan

    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.

    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).

    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.
  2. Updated to 1.2 with a fix for targetnum functionality.
  3. does this plugin require anything other than action sequences? not workin for me - not even with target core too.
  4. amptcat said:
    does this plugin require anything other than action sequences? not workin for me - not even with target core too.
    No, there are no other prerequisites.

    To get any more detailed help, you'd have to show what you're trying to do in the action sequence and describe how it isn't working.
  5. ty for the reply! i have


    <target action>

    move user: randomopponent, front base, 10

    wait: 20

    animation 136: user

    perform action

    wait: 10

    action animation

    action effect

    TP +1: user, show

    </target action>




    in my action sequence, and it just skips over the move action unless i use something from base yanfly. i have ur plugin below everything in my list, so thats not the issue ;/

    and actually when i run it in the game and not just the troop test, i get all this
    1733412198214.png
  6. Please show a screenshot of the entire skill from the database.

    That error message is indicating your skill is executing with no targets specified, so there may be some use case I didn't think of.
  7. i changed the skill to fill a random target list with target core and then used targetnum and that serves my purpose way better anyway - works perfect!
    i'm not sure why there would be no targets... i changed everything now and it works so i'm not 100% sure what the state was before ;/ thanks anyway tho!