Pre-made (Yanfly's) Action Sequence Sharing and Discussions

Discussion in 'Javascript/Plugin Support' started by Blue001, Oct 24, 2015.

  1. Lionheart_84

    Lionheart_84 Veteran Veteran

    Messages:
    463
    Likes Received:
    42
    First Language:
    Italian


    Ah, ok, Thanks !!! so ... both have only the "flash" effect ???


    And for the animation 122 ???
     
    Last edited by a moderator: Jun 21, 2016
  2. MrPurpleDreadlocks

    MrPurpleDreadlocks Veteran Veteran

    Messages:
    159
    Likes Received:
    19
    First Language:
    English
    It's custom.
     
  3. Lionheart_84

    Lionheart_84 Veteran Veteran

    Messages:
    463
    Likes Received:
    42
    First Language:
    Italian


    Ah, ok !!! Does nothing!!! ;) again congratulations !!! :D
     
  4. Servidion

    Servidion Last Soul Keeper Veteran

    Messages:
    233
    Likes Received:
    26
    Location:
    Alberta, Canada
    First Language:
    English
    Primarily Uses:
    RMMV
    So I have a skill, Storm of Blades, that strikes 12 random targets, though in intervals of 4. For some reason it strikes an additional 4 times after the entire sequence is completed.


    The timing of the skill needs work, but you'll get the idea from this video.








    <targets: 4 random foes>


    <whole action>


    move user: all opponents, front center, 20


    wait for movement


    action effect


    animation 150: user


    attack animation: target


    move user: all opponents, head, 5


    wait for movement


    animation 150: user


    attack animation: target


    move user: all opponents, back center, 5


    wait for movement


    animation 150: user


    attack animation: target


    move user: all opponents, base, 5


    animation 150: user


    attack animation: target


    move user: all opponents, front center, 5


    wait for movement


    action effect


    animation 150: user


    attack animation: target


    move user: all opponents, head, 5


    wait for movement


    animation 150: user


    attack animation: target


    move user: all opponents, back center, 5


    wait for movement


    animation 150: user


    attack animation: target


    move user: all opponents, base, 5


    wait for movement


    animation 150: user


    attack animation: target


    move user: all opponents, front center, 5


    wait for movement


    action effect


    animation 150: user


    attack animation: target


    move user: all opponents, head, 5


    wait for movement


    animation 150: user


    attack animation: target


    move user: all opponents, back center, 5


    wait for movement


    animation 150: user


    attack animation: target


    move user: all opponents, base, 5


    wait for movement


    animation 150: user


    attack animation: target


    move user: all opponents, front center, 5


    wait for movement


    animation 154: targets


    </whole action>


    <follow action>


    wait for animation


    </follow action>
     
  5. emelian65

    emelian65 Veteran Veteran

    Messages:
    190
    Likes Received:
    50
    First Language:
    Spanish


    try add,


    <target action>


    </target action>


    and check what is the target in the skill database.
     
  6. Servidion

    Servidion Last Soul Keeper Veteran

    Messages:
    233
    Likes Received:
    26
    Location:
    Alberta, Canada
    First Language:
    English
    Primarily Uses:
    RMMV
    Target action fixed the problem. Thank you very much!
     
  7. guyhi

    guyhi Villager Member

    Messages:
    13
    Likes Received:
    1
    First Language:
    English
    I made one for the "Strong Attack" skill, but it could be used for any attack.


    <setup action>
    display action
    cast animation
    wait for animation
    hide battle hud
    opacity not focus: 0, 20
    wait for opacity
    immortal: targets, true
    </setup action>

    <target action>
    fade out: 30
    wait: 30
    camera focus: user
    zoom: 500%, 10
    wait for zoom
    wait: 30
    fade in: 7
    wait: 60
    move user: forward, 1000, 10
    wait: 10
    fade out: 30
    wait: 31
    move user: backwards, 1000, 10
    camera focus: target
    zoom: 500%, 10
    wait: 50
    fade in: 10
    wait: 100
    move user: target, front, 3
    wait for movement
    motion swing: user
    wait: 5
    action animation
    wait: 5
    action effect
    shake screen: 6, 6, 30
    wait: 5
    move target: backwards, 3000, 20
    wait: 20
    fade out: 40
    wait: 40
    camera focus: user
    move user: home, 100
    fade in: 10
    wait: 30
    motion evade: user
    opacity user: 0%, 30
    wait for opacity
    wait: 20
    opacity user: 50%, 20
    move target: home, 5
    motion evade: user
    wait: 20
    motion victory: user
    wait: 60
    fade out
    wait: 60
    show battle hud
    opacity not focus: 100%, 1
    opacity user: 100%, 1
    zoom: 100%, 1
    fade in: 10
    immortal: targets, false
    death break
    </target action>


    So, it zooms into the user, before he dashes forward. Afterwards, it switches over to the enemy ( still zoomed ) and you appear in front of it and hit it with a powerful attack sending it backwards. I made a motion for him coming back, but that part can be removed.
     
  8. PandaPoru

    PandaPoru Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    Spanish
    Hi, I´ve started using action sequences and I suck soooooo much...


    I just want to create a really simple sequence where the character jumps really high (you know, float 1000%) and then that character lands on top of the enemy, bounces on top of him once and then goes back to where that character originally was.


    I just can´t do this and I think that this should be really easy to do, please, can someone lend me a hand?
     
  9. cekobico

    cekobico Veteran Veteran

    Messages:
    343
    Likes Received:
    138
    Location:
    Indonesia
    First Language:
    Indonesian


    <target action> 


    move user: target, head base, 30


    jump user: 1000%, 30


    wait for movement


    action animation


    action effect


    wait: 5 // remove this line if you want your actor to immediately jump back to home position after landing damage


    move user: home, 30


    jump user: 130%, 30


    wait for movement 


    wait for animation


    </target action> 


    @guyhi did you learn that from Vibrato? :p
     
    Last edited by a moderator: Jun 24, 2016
    guyhi likes this.
  10. guyhi

    guyhi Villager Member

    Messages:
    13
    Likes Received:
    1
    First Language:
    English
    Yeah, kinda :p
     
  11. Aurawhisperer

    Aurawhisperer Veteran Veteran

    Messages:
    400
    Likes Received:
    16
    First Language:
    English
    Question. So I have attack setup as this for attacking motion:


    <Target Action>


    Move user: target, front center, 5


    wait for movement


    motion swing: user


    perform action


    action animation: target


    wait for animation


    action effect: target


    perform finish


    </Target Action>


    I want to keep this formula, except I don't want the range users to use this exact method. Instead, I want them to use the default method and stay in position while attacking. Is there a way to where I can input in this code that this only applies to melee users and not range?
     
  12. Taemien

    Taemien Veteran Veteran

    Messages:
    79
    Likes Received:
    14
    First Language:
    English


    This might work:


    <Target Action>
    if user.attackMotion() !== 'missile'
    Move user: target, front center, 5
    else
    wait for movement
    motion swing: user
    perform action
    action animation: target
    wait for animation
    action effect: target
    perform finish
    </Target Action>


    I'm using Yanfly's example of the basic attack. Let me know if it does, I'm not currently able to test it myself.
     
  13. Aurawhisperer

    Aurawhisperer Veteran Veteran

    Messages:
    400
    Likes Received:
    16
    First Language:
    English
    I can confirm this does work! Though need to include the rest under the if statement in order for full execution. As such...


    <Target Action>


    if user.attackMotion() !== 'missile'


    Move user: target, front center, 5


    wait for movement


    motion swing: user


    perform action


    action animation: target


    wait for animation


    action effect: target


    perform finish


    else


    wait for movement


    motion swing: user


    perform action


    action animation: target


    wait for animation


    action effect: target


    perform finish


    </Target Action>
     
  14. Taemien

    Taemien Veteran Veteran

    Messages:
    79
    Likes Received:
    14
    First Language:
    English


    Don't give me credit. That's just a modification of Yanfly's code from earlier in the thread (which I think got muddled up after the forums changed) for the basic attack. I figured a modified version would suit your needs. And its outstanding that you posted the full one. That'd help others with similar issues to see how those if/than/else conditions work.
     
  15. Aurawhisperer

    Aurawhisperer Veteran Veteran

    Messages:
    400
    Likes Received:
    16
    First Language:
    English
    Lastly, I want to modify to where it's only the player is able to execute motion attacks and not the enemy AI. User seems like to be a broad term
     
  16. firestalker

    firestalker Veteran Veteran

    Messages:
    326
    Likes Received:
    37
    First Language:
    English
    Primarily Uses:
    RMMV
    Try using


    If user.isActor && user.attackMotion() !== 'missile'


        bla bla


    Else


        bla bla


    End


    Maybe....  I'm pretty new to this.
     
  17. cekobico

    cekobico Veteran Veteran

    Messages:
    343
    Likes Received:
    138
    Location:
    Indonesia
    First Language:
    Indonesian
    ^ yep. WIthout the "End" line, If Else behavior might be ignored on one condition or the other. 
     
  18. PsyenceOG

    PsyenceOG Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    English
    Hoping for a little help here. I'm trying to make a spell that hits one main enemy then 2 random enemies, but with only the one animation on the main enemy as it's kind of a shrapnel-esque explosion type thing. So far, it's working to the extent that it hits one target then 2 randoms, but it's playing the animation on every enemy hit. Anyone know how to fix this? Here is what I have so far:

    <target: target 2 random foes>


    <setup action>


    immortal: targets, true


    </setup action>


    <whole action>


    motion chant: user


    animation 0149: user


    wait for animation


    motion spell: user


    motion wait: user


    animation 0121: target


    wait for animation


    action effect


    wait: 30


    death break


    </whole action>


    <target action>


    </target action>


    <follow action>


    </follow action>


    <finish action>


    perform finish


    </finish action>



    In the skill, I have scope set to 1 Enemy. I have tried many different combinations of action sequences and different skill scopes. Any help is much appreciated!


    Edit: The first animation is a cast animation on the user.
     
    Last edited by a moderator: Jun 25, 2016
  19. Aurawhisperer

    Aurawhisperer Veteran Veteran

    Messages:
    400
    Likes Received:
    16
    First Language:
    English
    I can confirm that:


    <Target Action>


    If user.isActor && user.attackMotion() !== 'missile'


    Move user: target, front center, 5


    wait for movement


    motion swing: user


    perform action


    action animation: target


    wait for animation


    action effect: target


    perform finish


    else


    wait for movement


    motion swing: user


    perform action


    action animation: target


    wait for animation


    action effect: target


    perform finish


    </Target Action>


    Does not work. The Enemy AI still motions
     
  20. Skunk

    Skunk Melody Master Veteran

    Messages:
    1,067
    Likes Received:
    382
    Location:
    The Island
    First Language:
    English/Slavic
    Primarily Uses:
    RMMV
    I have some advice for people trying to understand how this flow works.


    There is a very nice tutorial by Echo607 and she puts all of this into very nice perspective.


    If you follow along with her and code out the animation she has put forth, it really helps to understand what all these commands can do, and even learn a couple that


    aren't listed in the help file.
     

Share This Page