Need Help With Menu Script Compatabiity

AdamGrayson

Villager
Member
Joined
Jun 26, 2015
Messages
8
Reaction score
0
First Language
English
Primarily Uses
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? 
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
The 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 ;)
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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
 

AdamGrayson

Villager
Member
Joined
Jun 26, 2015
Messages
8
Reaction score
0
First Language
English
Primarily Uses
but I don't know how to do that, I'm not a scripter so I;m not sure how to set that up
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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?
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
Yanfly's scripts were made to be really user-friendly and allows non scripters to do a lot of stuff... 


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

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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top