Common Event Menu
Last Update: 2009.06.12
By: Yanfly Engine ReDux
Introduction
Similar to the Common Event Shop, the Common Event Menu lets you create your menus to list various common event options. Now, you don't have to use all of those obnoxiously tedious Show Choice branches and conditional branches just to let the player get somewhere in range.
This script lets you create your own generated common event menus with ease. Set the style of the menu, the nature of the menu, and the contents of the menu. Afterwards, set the switches (if required) for the common events to even appear, any pictures to go along with it, and descriptions on what the common event can do for the player.
Screenshots
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_title.jpg&hash=2e22636efb302e3159960977c93103a0b2e3122d)
Script
Click here to view the main script. (http://www.pockethouse.com/rpgvx/scripts/commoneventmenu.txt)
Instructions
There's a few screenshots included to explain functionality.
---------
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_howto1.jpg&hash=6e934ab8de3539c6e626347d2f79364a3d0ff171)
Launching your common event menu is pretty easy (once you've got everything set up). All you have to do is to set the variable you've bound to CE_MENU_VARIABLE to whatever menu ID you wish to launch. From there, everything works on its own.
---------
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_howto2.jpg&hash=622d02f94959bcf607d021ab9404e2bd5269ca19)
Inside the newly appeared menu is a listing of all of the common events the menu will show. The player can then select any of the items and a common event will launch from that. On the side are the optional picture and description you may give the player.
---------
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_howto3.jpg&hash=2e52313fe0e84e3b7a25a112865ebc3f9bb7741a)
Setting up the common events can be done in the CE_MENU_ITEMS hash. To make a common event require a switch, change the "nil" portion to the switch number required. The common events can also have pictures associated with it if the set picture isn't defined as nil. Along with the pictures are descriptions explaining what the common events do (or whatever else you would like the description to say). To make a line break, all you have to do is add a | to the string value.
There are more instructions inside the script regarding CE_MENU_ITEMS.
---------
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_howto4.jpg&hash=ecdde4f7b03d89ac6d3a157cd9d18bbd44b6f8cb)
Setting up your menus is a little different. However, if you've used Common Event Shop, you'll find out that this is very familiar. The menu's contents can be created inside along with a style set, whether or not the player can cancel out of the menu, and the title to go along with the menu itself.
There are more instructions inside the script regarding CE_MENU_HASH.
---------
Of the styles you may choose, here is a small showcase to display the various kinds.
[spoiler="Click here to view styles."]
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles01.jpg&hash=7f45440873f9973aa851330b180f788d980c9f86)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles02.jpg&hash=71b7d8a5939bba4a157cebf606ffa4b82bc766ba)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles03.jpg&hash=e0e6f64b14eb6294082292e1b637f8a96a43d013)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles04.jpg&hash=ed58d71332bcc2256e0373999f7e1dcf4942bd3f)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles05.jpg&hash=600ae060f49b6863b8392d9f09b80b748141917d)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles06.jpg&hash=d5cb2a8c324c3416bc61abc1b146e1db481c6f25)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles07.jpg&hash=6fd303f7a2d4a9e736643b14896f477d1bc61995)
[/spoiler]
---------
I hope all of you eventers out there enjoy what little this script can offer for you!
---------
IF YOU ARE HAVING PROBLEMS WITH THESE SCRIPTS, REVIEW THE TROUBLESHOOTING PAGE FIRST! (http://pockethouse.wordpress.com/vx/toubleshooting/)
Compatibility
- Most likely no compatibility problems.
Please report any compatibility issues and I'll try my best to fix them.
Terms and Conditions
Just give credit where due.
Credits and Thanks
- Just based off of the Common Event Shop.
Originally Found Here: Here (http://pockethouse.wordpress.com/vx/common-event-menu/)
O-M-G
My mind exploded.
I.love.this.
Nice!I may give it a try because I loved your other works. ;D
:epic: Hehe!! It's awesome!! :epic:
Look at this!!
stupid spam video that has nothing to do with ANYTHING
PS I'm Polish!!
sorry for necropost, but the link to the script is broken.
There's nolonger any support for ReDux. However, Yanfly has rewritten most of them as Yanfly Engine Melody (http://wiki.pockethouse.com/index.php?title=Main_Page). I don't know if this was one of them. Take a look.
This script is converted into the Main Menu Melody (http://wiki.pockethouse.com/index.php?title=Main_Menu_Melody), which makes it easy to add other scripts into the menu as well as common events.
thank you guys.
super fast replies here.
First i wanted to use KGC_CustomMenuCommand, but this looks much nicer.
Sadly this script does not work for me.
all standard menu commands and the ones created with this one spit out an error:
QuoteScript 'YEM Main Menu Melody': ArgumentError occured.
wrong number of arguments(0 for 1)
External scenes, that where added with this script work fine though.
Anyway, I just wanted to ask, if there is a way of adding one of this awesome common-event-menu-commands( :o), without
having the script controlling the whole menu stuff.
thanks in advance
I don't know about scripting details, but I can troubleshoot pretty well... First of all, make sure you're aware of what scripts you have that affect the menu scene, next try altering the positions of said scripts in relation to each other. Another possibility is an incorrect configuration. It's probably not forgetting a comma, that'd be a syntax error... M_A made a nice tutorial about it too, found here (http://www.rpgmakervx.net/index.php?showtopic=36565)
I dont know why and it doesnt really make any sense, but putting it below EVERY single script made it work.
However now it is not possible to call external scenes...
Well, it probably is that you have another script that modifies the menu so bad stuff happens. Particularly if you have a script that would normally add itself to the menu and put it below, then it will mess stuff up. So, putting it below is good, then try setting up the other script through YEM Menu's custom command setup.
Link is broken... :'(
Try: http://rmrk.net/index.php/topic,42396.0.html