Yanfly action sequence help

Discussion in 'Javascript/Plugin Support' started by PhxFire, Sep 6, 2019.

Thread Status:
Not open for further replies.
  1. PhxFire

    PhxFire The Eternal Flame Veteran

    Messages:
    122
    Likes Received:
    64
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm trying to just do a basic attack where the character/ enemy goes up to the target, attacks and shows the attack animation, then goes back to their starting position... I've searched for the right code and I've found these two but neither seems to be working

    Code:
    <setup action>
    MOTION STANDBY: target
    </setup action>
    <whole action>
    MOTION STANDBY: target
    </whole action>
    <finish action>
    Perform finish
    </finish action>

    and

    Code:
    <setup action>
    clear battle log
    display action
    immortal: targets, true
    </setup action>
    
    <whole action>
    move user: targets, front, 20
    motion standby: user
    wait for movement
    face user: target
    </whole action>
    
    <target action>
    motion attack: user
    wait: 10
    attack animation: target
    wait for animation
    action effect
    </target action>
    

    The first code works correctly for skill 1 but not for the rest, what am I doing wrong?

    Thanks!
     
    #1
  2. JGreene

    JGreene Veteran Veteran

    Messages:
    375
    Likes Received:
    284
    First Language:
    English
    Primarily Uses:
    RMMV
    Using whole action and target action is redundant and can cause issues sometimes. See if this sequence works for you.

    <setup action>
    clear battle log
    display action
    immortal: targets, true
    </setup action>

    <target action>
    move user: target, front, 20
    motion standby: user
    wait for movement
    face user: target
    motion attack: user
    wait: 10
    action animation: target
    wait for animation
    action effect
    </target action>

    <finish action>
    wait for effect
    perform finish
    </finish action>
     
    #2
    PhxFire likes this.
  3. PhxFire

    PhxFire The Eternal Flame Veteran

    Messages:
    122
    Likes Received:
    64
    First Language:
    English
    Primarily Uses:
    RMMV
    #3
    JGreene likes this.
  4. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    13,804
    Likes Received:
    7,618
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

     
    #4
Thread Status:
Not open for further replies.

Share This Page