Hey there fellow devs! I'm having trouble creating a custom item command with Yanfly's Ace Item Menu. I can get the command to show up on the menu, but I can't seem to figure out how to script out where I can give it <string> categories. As of right now when I click on the command the game freezes (due to the fact that I don't know the next step after creating it). I see the area within the script that shows things like ITEM_TYPES and lists the following connected categories, just don't really know how to write that out for my custom command. So if anyone can help me out, it would be much appreciated!
Help Creating Custom Command With Yanfly's Ace Item Menu
RGSSx Script SupportI've moved this thread to Script Support. Thank you.
These commands usually point to other scenes.
In the script is the example
Code:
:gogototori, # Requires Kread-EX's Go Go Totori Synthesis.
Code:
CUSTOM_ITEM_COMMANDS ={
# :command => ["Display Name", EnableSwitch, ShowSwitch, Handler Method],
:gogototori => [ "Synthesis", 0, 0, :command_totori],
Then at the bottom of the script in the Scene_Item section is
Code:
#--------------------------------------------------------------------------
# new method: command_totori
#--------------------------------------------------------------------------
def command_totori
SceneManager.call(Scene_Alchemy)
end
However if you are trying to add other categories for items, then use the Item_types
Code:
ITEM_TYPES =[
# [ :symbol, "Display"],
[:field, "Field Usable" ], # Shows Menu-usable items.
[:battle, "Battle Usable"], # Shows Battle-usable items.
[:mine, "This stuff"], # Your item
Original thread: https://forums.rpgmakerweb.com/threads/help-creating-custom-command-with-yanflys-ace-item-menu.118126/