============================================================================
How to Use This Plugin
============================================================================
Each section in the parameters is divided up into various parts. Each of
these parts play a role in how the menu command functions. Here's what each
part does:
Name
- This is how the command will appear visually in the main menu. This is an
eval, which means, it's code driven. If you want the command to appear just
as it is, use 'quotes' around it.
Symbol
- This is the identifier for the command. Each command should have a unique
symbol, so much as to not cause conflicts with each command. However, shared
symbols are perfectly fine as long as you're fine with them performing the
same function when selected.
Show
- This is an eval condition for whether or not the command shows up in the
main menu. If you wish for this to always show up, simply use 'true' without
the quotes.
Enabled
- This is an eval condition for whether or not the command is enabled. The
difference between showing a command and enabling a command is that a
command can show, but it can't be selected because it isn't enabled. If you
wish for this command to always be enabled, use 'true' without the quotes.
Ext
- Stands for extension. This serves as a secondary symbol for the command
and it can be used for pretty much anything. It has no direct impact on the
command unless the command's objective is related to the extension value.
The majority of commands do not need to make use of the Ext value.
Main Bind
- This is an eval function that is to be ran when this command is selected
straight from the main menu. The function that is to be bound to this
command needs to be accessible from Scene_Menu is some way or another. For
commands that are meant to select an actor first, use
'this.commandItem.bind(this)' without the quotes.
Actor Bind
- This is an eval function that is to be ran when an actor is selected after
choosing this command, usually to push a scene. This function isn't needed
for any menu commands that don't require selecting an actor.
============================================================================
Examples
============================================================================
The following are some examples to help you add/alter/change the way
commands appear for your main menu.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name: TextManager.skill
Symbol: skill
Show: this.needsCommand('skill')
Enabled: this.areMainCommandsEnabled()
Ext:
Main Bind: this.commandPersonal.bind(this)
Actor Bind: SceneManager.push(Scene_Skill)
The skill command is made using the above example. 'TextManager.skill' is
how the command name will appear. It draws the name information from the
database Text Manager entry for 'Skill' and uses whatever you put into the
database in here. The symbol 'skill' is used to make the skill command's
unique identifier. In order for the command to show, it will run a line code
'needsCommand' function to check if it will appear. This 'needsCommand'
function is related to your database on whether or not you want the skill
option to appear there. In order for this command to be enabled, it will
check for whether or not the main commands are enabled, which is related to
whether or not there are actors in the current party. This time, the main
bind command is to send the player to the actor selection process using
'this.commandPersonal.bind(this)' instead. Once the player selects an actor,
'SceneManager.push(Scene_Skill)' is then ran to send the player to
Scene_Skill to manage the actor's skills.
This is how it's explained in the plugin and an example.... I look at this and start to go crossed eyed. I have no idea what any of it means. I just can't figure it out at all.... Maybe I'm misunderstanding something.
I'm trying to add this to the menu:
To call the scene for the entire party use SceneManager.partyDistribution()
Press Q/W to swap the party members. You can use SceneManager.partyDistribution(id)
to have the scene start with the actor in position "id" in the party, example:
SceneManager.partyDistribution(2) will start the scene with the third actor in the
party.
I got it to call up the scene and everything...
Name: 'Distribute'
Symbol: distribution
Show: true
Enabled: true
Ext:
Main Bind: this.commandPersonal.bind(this)
Actor Bind: SceneManager.partyDistribution()
no problem there, but it doesn't pull up individual actors scene when you select the actor. It always goes to the default actor. If I change this line:
Actor Bind: SceneManager.partyDistribution()
to this:
Actor Bind: SceneManager.partyDistribution($gameParty.menuActor())
Nothing changes... It still opens at the default actor.
It's not a huge deal or anything, but it's frustrating that it's not doing what I want it to. It wouldn't be that big of a deal if I could get it to just open the Scene WITHOUT selecting an actor, but that's way beyond me... I got as far as I did by copying and pasting and a lot of hopes and luck.