Follower and Battle Member Options

Discussion in 'JS Plugin Releases (RMMV)' started by DreamX, Jan 8, 2016.

  1. DreamX

    DreamX Veteran Veteran

    Messages:
    816
    Likes Received:
    817
    First Language:
    English
    Follower and Battle Member Options
    By DreamX

     
    Introduction/Features
    With notetags, you can choose which party members can appear as a follower or participate in battle.


    Patch Notes


    v1.08 - Now compatible with and requires YEP Party System


    How to Use


    * ============================================================================
    * How To Use
    * ============================================================================
    * Place this plugin BELOW Yanfly's Party System plugin.
    *
    * Use <no_follow:1> in an actor's notetag to permanently prevent them from
    * appearing as a follower.
    * Use <no_follow_switch:x> in an actor's notetag to designate a switch as what
    * determines whether they're a follower. Change x to the switch number.
    *
    * * Do not use both follower notetags at the same time for the same actor,
    * choose one or the other.
    *
    * To quickly alter follower visibiity, you can use these plugin commands.
    *
    * ToggleFollower 2 - Toggles the visiblity of an actor as a follower.
    * Use the actor id. In this case, it is actor #2.
    * ShowFollower 4 - Shows actor as follower
    * Use the actor id. In this case, it is actor #4.
    * HideFollower 6 - Hides actor as follower
    * Use the actor id. In this case, it is actor #6.
    *
    * Alternatively, you can use just change the associated switch while having
    * the parameter "Automatic Refresh" on.
    *
    * Use <no_battle:1> in an actor's notetag to permanently prevent them from
    * appearing in battle. Use <no_battle_switch:x> in an actor's notetag to
    * designate a switch as what determines whether they appear in battle. Change x
    * to the switch number. If the switch is true, the actor won't appear in battle.
    * If it's false, they will. Do not use both notetags at the same time for the
    * same actor, choose one or the other. You don't need to use plugin commands
    * when using the switch notetag for battle.
    *
    * Use <no_menu:1> in an actor's notetag to permanently prevent them from
    * appearing in menus. Use <no_menu_switch:x> in an actor's notetag to
    * designate a switch as what determines whether they appear in menus. Change x
    * to the switch number. If the switch is true, the actor won't appear in menus.
    * If it's false, they will. Do not use both notetags at the same time for the
    * same actor, choose one or the other. You don't need to use plugin commands
    * when using the switch notetag for menus.
    * ============================================================================
    * Terms Of Use
    * ============================================================================
    * Free to use and modify for commercial and noncommercial games, with credit.
    * ============================================================================
    * Compatibility
    * ============================================================================
    * To use Hime's Custom Party Leader, make sure to place it under this plugin.
    * ============================================================================
    * Credits
    * ============================================================================
    * DreamX
    * Thanks to Shaz and Liquidize on the Rpg Maker forum for assistance.
    * Thanks to Gilles on Rpg Maker Forum for assistance.
    * Thanks to Yanfly for YEP Party System.


    Screenshot


    screenie.png


    Script
     
    Last edited by a moderator: Jul 23, 2016
    #1
    gothicvoid, Kenode, Dope and 14 others like this.
  2. gRaViJa

    gRaViJa Veteran Veteran

    Messages:
    743
    Likes Received:
    269
    Location:
    Belgium
    First Language:
    Dutch
    Thx,

    I might use this since my main characters are, except one, not part of the battle party. The battlers will consist of a Kings Guard with different characters than the main characters.
     
    #2
    DreamX likes this.
  3. DreamX

    DreamX Veteran Veteran

    Messages:
    816
    Likes Received:
    817
    First Language:
    English
    V1.01 - Fixed bug that caused the first actor in the party (the leader/player character) to not appear if they were set not to be in battle, when "Battle Members Only" is false.


    Script
     
    #3
  4. ATT_Turan

    ATT_Turan Villager Member

    Messages:
    14
    Likes Received:
    1
    First Language:
    English
    Just to mention it, easier download instructions might be to right-click the script link and select "Save As" or "Save Link As" - I don't know of any browsers that will rename the file type if you do that.
     
    #4
    DreamX likes this.
  5. DreamX

    DreamX Veteran Veteran

    Messages:
    816
    Likes Received:
    817
    First Language:
    English
    Thank you, that is better.
     
    #5
  6. DreamX

    DreamX Veteran Veteran

    Messages:
    816
    Likes Received:
    817
    First Language:
    English
    v1.02 - Party members that have <no_menu:1> (or <no_menu_switch:x> if switch x is on) will not appear in menus.
     
    #6
  7. NeoPGX

    NeoPGX ~ King of Cuteness ~ Veteran

    Messages:
    774
    Likes Received:
    88
    Location:
    Shreveport, LA, United States
    First Language:
    English (US)
    Primarily Uses:
    N/A
    OK I don't know what I am doing wrong. I set up 4 more actors and added them to the starting party to test this plugin out. Unfortunately this plugin just doesn't work for me. I set the index to 8.

    and then put following to an autorun event:

    Plugin Command:  ShowFollower 5
    Plugin Command:  ShowFollower 6
    Plugin Command:  ShowFollower 7
    Plugin Command:  ShowFollower 8

    Which are immediately followed by a self switch to end the autorun event. The only purpose of the autorun event is to get the additional followers to show on the map. 

    But they still do not appear on the map, only in the main menu.
     
    #7
  8. DreamX

    DreamX Veteran Veteran

    Messages:
    816
    Likes Received:
    817
    First Language:
    English
    To get more than 3 followers you need to make sure to edit the parameter for max number of followers.
     
    Last edited by a moderator: Feb 12, 2016
    #8
  9. NeoPGX

    NeoPGX ~ King of Cuteness ~ Veteran

    Messages:
    774
    Likes Received:
    88
    Location:
    Shreveport, LA, United States
    First Language:
    English (US)
    Primarily Uses:
    N/A

    I did set the parameter. I mentioned that in my post.

    In the quote below I bold and underlined where I specifically stated this.
     

     
    #9
  10. DreamX

    DreamX Veteran Veteran

    Messages:
    816
    Likes Received:
    817
    First Language:
    English
    The index and the max followers parameters are not the same.
     
    #10
  11. NeoPGX

    NeoPGX ~ King of Cuteness ~ Veteran

    Messages:
    774
    Likes Received:
    88
    Location:
    Shreveport, LA, United States
    First Language:
    English (US)
    Primarily Uses:
    N/A


    OK I see what you are talking about now. I don't know this is tho:
     


    Am I supposed to simply change all that to 8?
     
    #11
  12. DreamX

    DreamX Veteran Veteran

    Messages:
    816
    Likes Received:
    817
    First Language:
    English
    That is the equation for the max number of followers. You can set it to just a single number like 8, yes.
     
    #12
  13. NeoPGX

    NeoPGX ~ King of Cuteness ~ Veteran

    Messages:
    774
    Likes Received:
    88
    Location:
    Shreveport, LA, United States
    First Language:
    English (US)
    Primarily Uses:
    N/A
    Well that did the trick, thanks! :D
     
    #13
  14. Veralisa

    Veralisa Villager Member

    Messages:
    16
    Likes Received:
    8
    First Language:
    English
    I love this addon! Simple enough to use, and works really well. I made a chain of animals following me, so that was cute.


    Perhaps a suggestion is to have a toggle for the default showing/hiding of all actors, since having to use showfollower plugin commands for 100 actors can be a little troublesome :p


    On another note, I had to disable this plugin in the end because it seems to conflict with some of Yanfly's. I was getting some errors along the lines of typeerror: cannot read property 'meta' of undefined.


    I haven't done a lot of experimentation yet, but I'm suspecting that there are compatibility issues with Yanfly's Actor Variables plugin, since the game would run fine until one of his plugin commands was called. 


    But in any case, thanks for the great resource! :D


    Edit: In case it helps, this is the log I'm getting when I call an Actor Variable's plugin command. 
     
    Last edited by a moderator: Feb 26, 2016
    #14
  15. DreamX

    DreamX Veteran Veteran

    Messages:
    816
    Likes Received:
    817
    First Language:
    English
    Thank you very much for bringing up this issue. I believe I may have fixed it with the latest update, let me know if it works for you.


    Script


    I'll work on the toggle too, but first I'll fix this bug
     
    Last edited by a moderator: Feb 27, 2016
    #15
    Veralisa likes this.
  16. Veralisa

    Veralisa Villager Member

    Messages:
    16
    Likes Received:
    8
    First Language:
    English


    You're AMAZING, the update works perfectly for me! I'm not longer getting errors / crashes with everything enabled. I'll let you know if anything else happens!


    Thank you so much for the seriously fast response, I'm really happy to get to use this addon now :D  
     
    #16
    DreamX likes this.
  17. DreamX

    DreamX Veteran Veteran

    Messages:
    816
    Likes Received:
    817
    First Language:
    English
    @Gilles made a fix for actors that aren't in menus being unable to appear in battle. It's in the latest version. I haven't tested it but it should work. Thanks Gilles!

    No problem and thanks!
     
    #17
  18. doranikofu

    doranikofu Veteran Veteran

    Messages:
    113
    Likes Received:
    31
    Location:
    United States
    First Language:
    Chinese
    this is great, I have been using harsh ways to do this and had some issues earlier. So glad that there is a plugin for this now :))
     
    #18
    DreamX likes this.
  19. doranikofu

    doranikofu Veteran Veteran

    Messages:
    113
    Likes Received:
    31
    Location:
    United States
    First Language:
    Chinese
    one thing I want to mention is that there will be some compatibility issues with Yanfly's party plugin. An easier way to fix it is simply try to lock the actors and restrict customization when necessary if using Yanfly's party plugin.


    I found one place to change in Yanfly's to hide the followers in the list window:


    Window_PartyList.prototype.createActorOrder


    still not sure what is the best way to skip the hidden actors in Window_PartySelect  :S
     
    #19
  20. DreamX

    DreamX Veteran Veteran

    Messages:
    816
    Likes Received:
    817
    First Language:
    English
    Thanks for pointing that out, the latest version now disallows actors from appearing in the battle formation window if they are not menu enabled or they are not battle enabled.
     
    #20
    Chaos17 and doranikofu like this.

Share This Page