Table of Contents
Extra Buttons Plugin
Parameters
Each Button requires a skill ID that determines the skill that executes when the player presses the button. In addition the button needs an “enabled condition” which determines when the button can be pressed. The default is:
$gameParty.canUse(skill)
This is the code that determines if a skill can be used in vanilla RPG Maker so it just checks if the player can afford the skill's cost, if they're holding the right equipment, etc.
The condition parameter is an expression that should evaluate to true or false. If it evaluates to anything else, do not hold me responsible for what happens.
For your convenience, the variable 'skill' has been defined as the skill that the button will execute.
In addition, buttons have an “appear condition” which determines whether the button shows up in the scene at all. This allows you to hide buttons from the player until they've reached a certain point in the game, which can be helpful for tutorialization, or a button the player needs to unlock.
The appear condition is checked at the start of battle. If it evaluates to false, the button will not be added to the scene, and cannot appear mid-battle.
One last parameter that might be curious: Disable During Non-Input This is a purely cosmetic parameter that determines if the button should appear disabled during all parts of the battle that are not the input phase, such as when battlers are taking their actions.
You can't press the button during non-input either way, so it's just a question of which presentation you prefer.
Version History
*v1.0.2* - Added touch input to MV and MZ. Prevented clicking button while peeking at another hand using PartyUI_A. *v1.0.1* - Fixed error if plugin param is empty. *v1.0.0* - Released plugin