Battle Auto Selection

Discussion in 'JS Plugin Releases (RMMV)' started by Lecode, Oct 27, 2015.

  1. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    490
    Likes Received:
    646
    First Language:
    French
    Primarily Uses:
    N/A
    Battle Auto Selection 1.06
    By Lecode

    Introduction
    This plugin allows to skip the selection window when there is only one available enemy or one available ally.

    I'm talking about that window that let you select who to target after attack/skill/item command.

    How to Use

    -Plug & play

    -Make sure to save the plugin as LeBattleAutoSelection.js.

    -I suggest you to insert it bellow battle core/hud plugins

    Plugin

    Download it from my google drive.

    Credit and Thanks
    - Lecode

    - Requested from Fisherolol

    Author's Notes
    Feel free to suggest anything.
     
    Last edited by a moderator: Nov 3, 2015
    #1
    Luzbhel, RMVNex, markp80nj and 8 others like this.
  2. JohnnyR

    JohnnyR Dungeon Master Restaff

    Messages:
    275
    Likes Received:
    135
    Location:
    My very own private hell!
    First Language:
    English
    Primarily Uses:
    RMMV
    I've been looking for this for sooooo long! 

    Just tested it and it feels great! Can't thank you enough! :D
     
    #2
    Polysquid and Lecode like this.
  3. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    490
    Likes Received:
    646
    First Language:
    French
    Primarily Uses:
    N/A
    Thanks ! I'm glad you like it :) .
     
    #3
    JohnnyR likes this.
  4. Polysquid

    Polysquid Villager Member

    Messages:
    7
    Likes Received:
    3
    First Language:
    English
    Brilliant! Just what I was after.

    Could I make a request?

    Skills that target the user also ask you to select a target. Would it be possible to add a skip to that, too? (Maybe as a changeable option though, some players might want to keep it for clarity)

    Thanks for the great plugin! :)

    Screen Shot 2015-10-28 at 12.28.24.png
     
    Last edited by a moderator: Oct 28, 2015
    #4
    Lecode likes this.
  5. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    490
    Likes Received:
    646
    First Language:
    French
    Primarily Uses:
    N/A
    Thanks :)

    However,

    That's strange. By default, the selection window is skipped in that case. What battle plugins are you using ?
     
    #5
    Polysquid likes this.
  6. Polysquid

    Polysquid Villager Member

    Messages:
    7
    Likes Received:
    3
    First Language:
    English
    I'm using Bobstah's Custom Battle Commands & Yanfly's plugins.

    It works fine when there's only one character in the party, but add in a 2nd member and it's back to asking for confirmation again. Not the end of the world as the 'solo' class in my game has the most self-casts. :)

    Screen Shot 2015-10-28 at 17.27.16.png
     
    Last edited by a moderator: Oct 29, 2015
    #6
  7. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    490
    Likes Received:
    646
    First Language:
    French
    Primarily Uses:
    N/A
    Updated. Try the new version and let me know if it works.
     
    #7
    Polysquid likes this.
  8. Polysquid

    Polysquid Villager Member

    Messages:
    7
    Likes Received:
    3
    First Language:
    English
    Fixed! Many thanks. Battles flow much more smoothly now.  :)
     
    #8
    Lecode likes this.
  9. Michael Dionne

    Michael Dionne Indie Games Developer Veteran

    Messages:
    70
    Likes Received:
    60
    Location:
    Acton Vale, Quebec
    First Language:
    French
    Thanks! Keep it up! Plugins are so useful, especially since MV is so young.
     
    #9
    Lecode likes this.
  10. JohnnyR

    JohnnyR Dungeon Master Restaff

    Messages:
    275
    Likes Received:
    135
    Location:
    My very own private hell!
    First Language:
    English
    Primarily Uses:
    RMMV
    Since you added the "self-target" skills' skip option, could you maybe also add a skip to the skills that target all allies?

    I just tested it and it looks kinda stupid selecting a character to cast a multi heal on, since it's going to heal everyone in the party. :p
     
    #10
    Michael Dionne and Lecode like this.
  11. Michael Dionne

    Michael Dionne Indie Games Developer Veteran

    Messages:
    70
    Likes Received:
    60
    Location:
    Acton Vale, Quebec
    First Language:
    French
    I agree with JohnnyR, that would be very useful.
     
    Last edited by a moderator: Oct 31, 2015
    #11
    Lecode likes this.
  12. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    490
    Likes Received:
    646
    First Language:
    French
    Primarily Uses:
    N/A
    So, that behavior is due to Yanfly's plugins ? Because I don't notice it on my side, with defaults plugins.

    Strange...Anyway I fixed it. :)
     
    #12
    JohnnyR likes this.
  13. VHStapes

    VHStapes Game Designer Veteran

    Messages:
    57
    Likes Received:
    7
    Location:
    Vashon, Wa
    First Language:
    English
    Greatly improves the flow and feel of battle! Thank you so much!!!

    Also, free for commercial/non-commercial use? With credit of course :)
     
    #13
    Lecode likes this.
  14. Dinamic Creates

    Dinamic Creates Project Stealth | Project Dungeon Trios Veteran

    Messages:
    69
    Likes Received:
    24
    Location:
    México
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    This is just amazing. Thank you very mucho.
     
    #14
    Lecode likes this.
  15. Lunesis

    Lunesis Veteran Veteran

    Messages:
    34
    Likes Received:
    6
    First Language:
    English
    Seems like there is a bug where my single target heal will autocast on the person casting it.
     
    #15
    Michael Dionne likes this.
  16. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    490
    Likes Received:
    646
    First Language:
    French
    Primarily Uses:
    N/A
    Yes, it's free for commercial use.

    On my side with just the base plugins I don't notice that issue. I bet it's also due to yanfly's plugins.

    I suggest someone using them to report the previous strange behaviours to Yanfly.

    Currently I don't have much time to fix someone else's plugin ^^
     
    Last edited by a moderator: Oct 31, 2015
    #16
  17. Polysquid

    Polysquid Villager Member

    Messages:
    7
    Likes Received:
    3
    First Language:
    English
    Strange. Using Yanfly's plugins with this and no issues with self healing here! (Tested on both Items and Skills, 'Certain Hit' and 'Magic Types')

    Try making sure the LeBattleAutoSelection script is directly under the Yanfly Battle core in the plugin manager.

    Update: attached my plugin order for reference.

    Screen Shot 2015-10-31 at 13.30.29.png
     
    Last edited by a moderator: Oct 31, 2015
    #17
    Lecode likes this.
  18. Lecode

    Lecode (─‿‿─) Veteran

    Messages:
    490
    Likes Received:
    646
    First Language:
    French
    Primarily Uses:
    N/A
    I think it'll be even better to insert it below bob's command plugin.
     
    #18
  19. VHStapes

    VHStapes Game Designer Veteran

    Messages:
    57
    Likes Received:
    7
    Location:
    Vashon, Wa
    First Language:
    English
    I just tried it in a brand new project and had the same problem. Maybe I don't have the newest version, I will double check.

    EDIT: Double checked by redownloading the plugin and still having the same issue in a fresh project.

    EDIT: Figured it out.

    Line 49 was:

        if (action.isForUser() || (action.isForFriend && action.isForAll)) {and it should be

       if (action.isForUser() || (action.isForFriend() && action.isForAll())) {The parenthesis after action.isForFriend and action.isForAll was missing.

    Now it's working perfectly, thanks for an awesome plugin!
     
    Last edited by a moderator: Nov 2, 2015
    #19
    Lecode likes this.
  20. Dinamic Creates

    Dinamic Creates Project Stealth | Project Dungeon Trios Veteran

    Messages:
    69
    Likes Received:
    24
    Location:
    México
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    I had this problem. Thanks!
     
    #20
    VHStapes likes this.

Share This Page