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

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

  1. Krakaz

    Krakaz Forever Krakaz Veteran

    Messages:
    79
    Likes Received:
    12
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm having a Issue with a custom action sequence essentially its a 6 strike attack, the motions work when i test it without adding an animation or damage calculation. but when i add a base animation and damage it gives me this error.sorry for the length of the action.any clue where I've gone wrong.

    <target action>

    hide battle hud

    opacity not focus: 0, 20

    wait: 1

    move user: target, back base, 5

    wait for movement

    motion attack: user

    face user: target

    action animation: target

    wait for animation

    action effect

    wait: 10

    move user: target, front, 5

    wait for movement

    motion attack: user

    face user: target

    action animation: target

    wait for animation

    action effect

    wait: 10

    move user: target, back center, 5

    face user: target

    action animation: target

    wait for animation

    action effect

    wait: 10

    move user: target, back head, 5

    face user: target

    action animation: target

    wait for animation

    action effect

    wait: 10

    move user: target, front head, 5

    face user: target

    action animation: target

    action effect

    wait: 10

    move user: target, front center, 5

    face user: target

    action animation: target

    wait for animatiom

    action effect

    wait: 10

    reset camera: 10

    move user: home

    face user: forward

    wait for movement

    <follow action>

    opacity not focus: 100%,60

    wait for opacity

    show battle hud

    </follow action>
     

    Attached Files:

  2. KingKraken

    KingKraken Veteran Veteran

    Messages:
    126
    Likes Received:
    29
    Location:
    Colorado, USA
    First Language:
    English
    Primarily Uses:
    RMMV
    You don't have a </target action> ending in there at all, lol. So that might be why.
     
    Krakaz likes this.
  3. Krakaz

    Krakaz Forever Krakaz Veteran

    Messages:
    79
    Likes Received:
    12
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    i slapped a </target action> end into the fray but still came back with the type error height of undefined at sprite_animation.updateSvePosition i'll keep working on it and see what subsection its error'ing at...hmm just tested a base attack and gave the same error so ill try this on a unaltered test and see if that was the issue.

    EDIT: it was the save file not the script,worked fine on the main test
     
    KingKraken likes this.
  4. KingKraken

    KingKraken Veteran Veteran

    Messages:
    126
    Likes Received:
    29
    Location:
    Colorado, USA
    First Language:
    English
    Primarily Uses:
    RMMV

    Yeah it might be an issue with your plugins or files if base attack gives you such an error. Also not sure if you know, but if it's taking too much room in your notebox to edit action sequences, you don't need a blank space in between each command! It'll cut down on some scrolling/reading time.
     
  5. Krakaz

    Krakaz Forever Krakaz Veteran

    Messages:
    79
    Likes Received:
    12
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Sorry bout the epic read, yea the multi action sequences are a mission to scroll through. if i post anymore i'll make sure there condensed as much as possible to save eye time for those who answer. that one was derived from i believe @Jetan omnislash,now that one works how i think it should. Time to alter around with the caster ones from @Fernyfer775 to neaten up my action lists.
    thanks for info I've got a long way to go.
     
  6. SuperMachoMan

    SuperMachoMan Villager Member

    Messages:
    20
    Likes Received:
    1
    First Language:
    English
    Is there any way to have a single sequence use the action effects of different skills? I am wanting to have a double-hit skill where each hit of the two hits has its own element, damage, and possible status infliction.
     
  7. KingKraken

    KingKraken Veteran Veteran

    Messages:
    126
    Likes Received:
    29
    Location:
    Colorado, USA
    First Language:
    English
    Primarily Uses:
    RMMV
    In the instructions for the first action sequence plugin, there are commands you can use like "add state: x" atleast for states. For damage it might get a little bit tricky.

    For adding states though, it would be useful to add if and then statements into the action sequences. Otherwise you'll run into an issue, where whether or not a move hits, the state will always be applied.
     
  8. Craig

    Craig Veteran Veteran

    Messages:
    47
    Likes Received:
    65
    First Language:
    English
    Primarily Uses:
    RMMV
    I have my normal attack skill set up like most people like it. Melee fighters go up to the target and attack, while ranged fighters stay put and attack from afar. I have my action sequence set for the melee fighters to move to the FRONT BASE of the target, because that is what I like the look of best. HOWEVER, my question is this. I have a few very large enemies that the player encounters. For these enemies, the FRONT BASE destination is almost off screen. Is there any way to set a custom target point for specific enemies? Does that make any sense?
     
  9. Krakaz

    Krakaz Forever Krakaz Veteran

    Messages:
    79
    Likes Received:
    12
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    that makes sense I'd suggest changing the offset for the attack to a positive y position but that would make all other melee attacks seem as if they're attacking from front center using some basic script I'd presume ( I'm still a noob with scripting ) attack could have a
    if.targetEnemy =(boss) then move Actor to front center, else move Actor front base. I Doubt that helped any but ill play around with that and see if i can make something work for you.

    Edit: I Cant figure how to specify the exact enemy but that did work for changing the attacking position from my default front to either center or base altho the else didn't work for me either part would move the melee attacker to a different set position.good luck on your project mate if i figure out anything more i'll post again
    <Custom Apply Effect>
    if (target.isEnemy() ) {
    move.Actor() Front Center ;
    else
    if (target.isEnemy() )
    move.Actor() Front Base
    }
    </Custom Apply Effect>
     
    Last edited: Feb 12, 2018
  10. Krakaz

    Krakaz Forever Krakaz Veteran

    Messages:
    79
    Likes Received:
    12
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Ignore that post it wasn't doing any checks.it was just offset from my normal action sequence.
     
  11. Animator111

    Animator111 Veteran Veteran

    Messages:
    30
    Likes Received:
    13
    First Language:
    English
    There is so much information on several matters of the sort you just don't know where to begin. It is true that many times while working on a project unexpected things pop. So good to see people care to share this knowledge, really saves the day! :wink:
     
  12. BloodletterQ

    BloodletterQ Chaotic Neutral Assassin Veteran

    Messages:
    1,451
    Likes Received:
    1,050
    Location:
    My head's in the clouds at least...
    First Language:
    English
    Primarily Uses:
    N/A
    Basically if the first attack kills, the target action should end but it doesn't.
     
  13. HintonR

    HintonR Veteran Veteran

    Messages:
    194
    Likes Received:
    25
    First Language:
    English
    Primarily Uses:
    RMMV
    Hello. I'm using Yanfly's Premade Jump Animation for Dragoon Style Jump.

    I'm running into a bug however, when using it with STB.

    When using DTB the skill(s) work fine but when trying it on STB the game fails to register victory when no enemies are left.
    Is there an incompatibility for STB these days? Since I read it's no longer supported.
     
  14. hyuugacln

    hyuugacln Veteran Veteran

    Messages:
    98
    Likes Received:
    81
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Quick question: Is there any way to use projectiles in a sequence? Like a fire orb flying towards the target?
     
  15. Taemien

    Taemien Veteran Veteran

    Messages:
    79
    Likes Received:
    14
    First Language:
    English
    ANIMATION X: target

    where X is the database number of the animation created of the fire orb. Then you can use:

    ACTION EFFECT: target

    to inflict the effect (damage, ect).

    And if you do this:

    ANIMATION X: target
    ACTION EFFECT: target
    ANIMATION X: target
    ACTION EFFECT: target
    ANIMATION X: target
    ACTION EFFECT: target

    It will fire 3 of those fire orbs and deal the damage three times after each one lands. However I believe it will come out to fast to see all three. So you may need to throw in some wait commands:

    ANIMATION X: target
    WAIT FOR ANIMATION
    ACTION EFFECT: target
    ANIMATION X: target
    WAIT FOR ANIMATION
    ACTION EFFECT: target
    ANIMATION X: target
    WAIT FOR ANIMATION
    ACTION EFFECT: target

    Also note that the damage done will be the damage formula for the skill for each Action Effect. If you have say 5 of them, it will do that damage 5 times. I'm not 100% sure if it calculates hit chance for each one or just the first strike. Someone else might be able to comment on that.
     
  16. hyuugacln

    hyuugacln Veteran Veteran

    Messages:
    98
    Likes Received:
    81
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    But this won't be actually like a projectile, right? By "projectile" I ment the animation starts at the user and then moves towards the target, instead of just showing the hit animation on the target.
     
  17. Taemien

    Taemien Veteran Veteran

    Messages:
    79
    Likes Received:
    14
    First Language:
    English
    I've been trying to figure out how to make it work and best I've come up with is getting the animation to start as far to the 'right' (when used against players it mirrors) as possible and then fly to the center of the target. It looks good, but not 100% what you're asking for.
     
  18. hyuugacln

    hyuugacln Veteran Veteran

    Messages:
    98
    Likes Received:
    81
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Thank you for your help. I'm going to try this. But I think this is something yanfly's plugin lacks. Maybe I'll try writing an extension soon. :)
     
  19. msazako

    msazako "Lie of msazako" Veteran

    Messages:
    68
    Likes Received:
    194
    First Language:
    Japanese
    Primarily Uses:
    RMMV
    Just adding on to the post about projectiles:

    You can also use camera tricks to make the illusion of a projectile being summoned from a user and then hitting a target. Only downside is that you'd have to make your own animations for both the user and the enemy to create the illusion. If you're someone who loves guns/grenades/blowing things up with energy blasts and laser beams, I think this might help. Here's some examples I've done for my game:

    (Let me know if you need any further help setting up your own gun/grenade animations)



    I'm only going to share the bomb since it's relatively closest to being a true projectile:
    Code:
    <setup action>
    ZOOM: 200%, 60
    CAMERA FOCUS: user
    display action
    immortal: targets, true
    perform start
    wait for movement
    SE: shadow_jump, 100, 100, 0
    jump user: 120%, 30
    wait: 15
    FACE user: target
    MOTION ITEM: user
    animation 249: user
    wait: 15
    CAMERA FOCUS: target, FRONT BASE, 20
    wait for movement
    wait: 20
    </setup action>
    
    <target action>
    FACE target: FORWARD
    animation 251: target
    action effect: enemies
    MOVE target: BACKWARD, 10, 2
    FACE target: FORWARD
    wait: 30
    death break
    immortal: targets, false
    wait: 30
    </target action>
    
    <finish action>
    clear battle log
    move user: return, 30
    jump user: 100%, 30
    perform finish
    wait for movement
    </finish action>


    There's also this one who pretty much nailed the illusion by exploiting movement/opacity:
    The projectile is an animation coming from the character. When making the animation, make sure that the projectile is being ejected from the center of the actor to the left of the screen. Having a sideview actor as a test monster in the animations tab will help a lot!


    The code is below: I pretty much edited his line of code to be a bit more polished. Credit goes to Sir Applelot for the original code.
    Code:
    <setup action>
    immortal target: true
    display action
    wait: 30
    <\setup action>
     
    <target action>
    camera focus: user, 1
    zoom: 160%, 20
    wait: 20
    animation 152: user
    opacity target: 0, 1
    wait: 1
    move target: forward, 200, 1
    wait: 20
    motion evade: user
    jump user: 120%, 30
    move user: target, front base, 30
    move target: backward, 200, 1
    face user: forward
    wait: 1
    face target: home
    opacity target: 255, 1
    wait: 30
    zoom: 110%, 10
    motion attack: user
    animation 134: user, mirror
    wait: 20
    camera focus: target, 20
    wait: 40
    animation 135: target
    wait: 40
    action effect
    death break
    wait: 30
    </target action>
     
    <follow action>
    clear battle log
    move user: return, 30
    jump user: 100%, 30
    motion evade: user
    perform finish
    motion evade: user
    wait for movement
    </follow action>
     
    Marquise* likes this.
  20. BloodletterQ

    BloodletterQ Chaotic Neutral Assassin Veteran

    Messages:
    1,451
    Likes Received:
    1,050
    Location:
    My head's in the clouds at least...
    First Language:
    English
    Primarily Uses:
    N/A
    Since Death Break doesn't work. How can I skip part of a two-hit attack if the first one kills the target?
     

Share This Page