Assuming you don't manually turn the followers on in a separate event this should do the trick for you. I tested it in my game quickly for you and it worked no problem.
Open the plugin in your plugin manager. Double click on Options Categories, then double click on Visual, then double click on Options List, then scroll down if needed and double click on the empty bottom entry in the list to create a new option, from there you will want to copy paste the following code into the proper locations, overwrite the default code for the option. This will create a new option under the Visual tab in options menu. you can click and drag the newly created option higher in the list, wherever you'd like it to show in your games options.
Name: Show Followers on map?
Symbol: showFollowers
Draw Options Code:
var rect = this.itemRectForText(index);
var statusWidth = this.statusWidth();
var titleWidth = rect.width - statusWidth;
this.resetTextColor();
this.changePaintOpacity(this.isCommandEnabled(index));
this.drawOptionsName(index);
var value = this.getConfigValue(symbol);
if (value == false) {
$gamePlayer.hideFollowers();
$gamePlayer.refresh();
}
if (value == true) {
$gamePlayer.showFollowers();
$gamePlayer.refresh();
}
this.drawOptionsOnOff(index, "Yes", "No");
Process OK Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, !value);
Cursor Right Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, true);
Cursor Left Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, false);
Default Config Code:
ConfigManager[symbol] = true;
set the default to true if you want it to default to true or false if you want it to default to false lol.
i ran another test and found that if you set the value to false before you start a game it messes up and leaves it true if you have it set to true in your database, to avoid this you would likely need to throw a conditional branch in your games initial autorun sequence which checks for this.
if (ConfigManager.showFollowers == true) {
$gamePlayer.showFollowers();
$gamePlayer.refresh();
} else {
$gamePlayer.hideFollowers();
$gamePlayer.refresh();
}
In eventing form it would look like this:
◆If:Script:ConfigManager.showFollowers == true
◆Script:$gamePlayer.showFollowers();
: :$gamePlayer.refresh();
◆
:Else
◆Script:$gamePlayer.hideFollowers();
: :$gamePlayer.refresh();
◆
:End
on a final note this would also be the method you'd use if you wanted to hide/show followers throughout your game, you would want to check if ConfigManager.showFollowers == true before you show followers, this way if the player has it set to false you just don't show the followers, but if its set to true then you can show/hide the followers throughout your game as needed.
