Okay, so the other week I posted a question about using an encyclopedia in the menu. I found an encyclopedia to use: CSCA Encyclopedia by Casper Gaming. However, I'm using a bunch of Yanfly scripts and I do not know how to put the Encyclopedia script into the Yanfly Ace Menu Engine. Is there a simple way to do this or will it take actually writing out a code to put it in the script to make them compatible?
Need Help With Menu Script Compatabiity
RGSS3 Script RequestsThe first step would be providing a link to Yanfly's Menu Engine and to the CSCA Encyclopedia, so people don't have to go searching 😉
You will just add a new command to yanfly's window which calls the Encyclopedia menu... Yanfly's menu is made to easily allow adding new menu commands
but I don't know how to do that, I'm not a scripter so I;m not sure how to set that up
@AdamGrayson You have not provided the links that were asked for. While many people might be familiar with Yanfly's script, I can guarantee you that far fewer people will be familiar with Casper's. You cannot expect people to spend time hunting the internet to find something. Please help people to help you by doing what Shaz asked.
Yanfly's scripts were made to be really user-friendly and allows non scripters to do a lot of stuff... but if you really can't then can you at least link us to both scripts (as Shaz and Kes requested) so we can guide you?
It certainly allows to add new menu commands, but still, the user must know the correct method names for calling the specified menus.
Without any scripting knowledge, the user can't really do much in this regard, because he/she most probably have no idea where to find the correct method names in those custom scripts, especially because those names could be anything and the method itself might not be so straightforward to read in some cases.
For the question itself...
You will need to add this little script into your project:
class Scene_Menu < Scene_MenuBase
alias sixth_encyclopedia_menu13211 create_command_window
def create_command_window
sixth_encyclopedia_menu13211
@command_window.set_handler🙂encyclopedia, method🙂csca_encyclopedia))
end
def csca_encyclopedia
SceneManager.call(Scene_CSCA_Encyclopedia)
end
end
alias sixth_encyclopedia_menu13211 create_command_window
def create_command_window
sixth_encyclopedia_menu13211
@command_window.set_handler🙂encyclopedia, method🙂csca_encyclopedia))
end
def csca_encyclopedia
SceneManager.call(Scene_CSCA_Encyclopedia)
end
end
You need this because that encyclopedia script got no built-in method for handling the menu call (you would need to use CSCA Menu Organizer for that - or something similar, not sure about the name of this script -, which would conflict with Yanfly's Menu Engine).
After installing this, head to Yanly's Menu Engine script, search for the CUSTOM_COMMANDS setting area.
You will have to add a new line there inside that setting:
:encyclopedia => ["Encyclopedia", 0, 0, :csca_encyclopedia],
Adjust the settings in this line how you want according to the instructions in Yanfly's script, but do NOT change the :encyclopedia or the :csca_encyclopedia symbols!
And finally, still in the same script, search for the COMMANDS setting area.
In that setting, just add this line anywhere you want:
:encyclopedia,
Note that the place where you put it will determine the place where will it show up on the main menu command list.
If you did everything right, the new command should appear in your game.
Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-menu-script-compatabiity.73099/