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?
@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_handlerencyclopedia, methodcsca_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:
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.
finally got this scripted right lol... I was running into a few issues like getting the event to play when all enemies were ko'd, actors going in and out of their victory poses, etc... still need to tweak a bit tho.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.