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

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,960
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'
Regular
Joined
May 15, 2012
Messages
14,693
Reaction score
3,034
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

Regular
Regular
Joined
Aug 3, 2012
Messages
23,808
Reaction score
13,729
First Language
English
Primarily Uses
RMMZ
@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'
Regular
Joined
May 15, 2012
Messages
14,693
Reaction score
3,034
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

Regular
Regular
Joined
Jul 4, 2014
Messages
2,207
Reaction score
877
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.
 

Latest Threads

Latest Profile Posts

image.png

The main cast...
Gears Of Phantasm Act I & II, on Steam!
store.steampowered.com/app/1810220
Followhttps://twitter.com/ShellPhantom
Contact Me:phantasygears@gmail.com
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.
Which version should I get? 2000, 2003, XP, VX, VX Ace, or MV. I'm a beginner and have no coding knowledge and also I wanna be able to add voices.

Forum statistics

Threads
134,920
Messages
1,251,937
Members
177,763
Latest member
Derpete
Top