Follower and Battle Member Options

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
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.
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
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.
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.

Thank you, that is better.
v1.02 - Party members that have <no_menu:1> (or <no_menu_switch:x> if switch x is on) will not appear in menus.
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.
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.

To get more than 3 followers you need to make sure to edit the parameter for max number of followers.
To get more than 3 followers you need to make sure to edit the parameter for max number of followers.


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

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

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.
I did set the parameter. I mentioned that in my post.

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

The index and the max followers parameters are not the same.
The index and the max followers parameters are not the same.



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

$gameParty.maxBattleMembers() - 1


Am I supposed to simply change all that to 8?
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?

That is the equation for the max number of followers. You can set it to just a single number like 8, yes.
Well that did the trick, thanks! 😀
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 😛


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! 😀


Edit: In case it helps, this is the log I'm getting when I call an Actor Variable's plugin command. 
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 😛


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! 😀


Edit: In case it helps, this is the log I'm getting when I call an Actor Variable's plugin command. 

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
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



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 😀  
@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!

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 😀  

No problem and thanks!
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 🙂)
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
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

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.

Original thread: https://forums.rpgmakerweb.com/threads/follower-and-battle-member-options.54510/