The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Scripts Database => Topic started by: Yanfly on June 12, 2009, 05:40:23 AM

Title: [YERD] Common Event Menu
Post by: Yanfly on June 12, 2009, 05:40:23 AM
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=c48b7c41e3bdc3e23f60d68b97bd2c31688389b2)
 
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=a4646afcec5b44bcabd08339bc260b3b4e107c80)

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=cff8c84b742e5c9dec440268e3dfe9e84a36bab7)

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=e45f69065e3f3be8c02112f5063531a4d5192c63)

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=ca5fdad81d40f1e2570941618ec7fbbc2818e0cc)

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 for "Click here to view styles.":
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles01.jpg&hash=c722da004137a1cfa9c2b02835341aac52901bac)

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles02.jpg&hash=f4966ffbb68f55e7aaa8f815079991ec5be5b06d)

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles03.jpg&hash=43ff3060029101d77b9184b404db47e46eebf3ec)

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles04.jpg&hash=b6e7db4f95511f46726d4e4978cbf18f7a899eee)

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles05.jpg&hash=4aadea479615c16c45d102f2519296d6d4578e8d)

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles06.jpg&hash=d420f41ad6ebe313e339a65c1d14d275c4f731f6)

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fcemenu%2Fcemenu_styles07.jpg&hash=d00b4bb3484af68b01401693febc192dd45225d3)
---------

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/)
Title: Re: [YERD] Common Event Menu
Post by: Grafikal on June 12, 2009, 06:59:06 AM
O-M-G

My mind exploded.

I.love.this.
Title: Re: [YERD] Common Event Menu
Post by: sinkay101 on June 14, 2009, 03:35:00 PM
Nice!I may give it a try because I loved your other works. ;D
Title: Re: [YERD] Common Event Menu
Post by: Sebastian Cool ^-^ on November 10, 2009, 11:18:07 AM
 :epic: Hehe!! It's awesome!! :epic:

Look at this!!

stupid spam video that has nothing to do with ANYTHING

PS I'm Polish!!
Title: Re: [YERD] Common Event Menu
Post by: rofl1337 on October 14, 2010, 11:03:58 AM
sorry for necropost, but the link to the script is broken.
Title: Re: [YERD] Common Event Menu
Post by: modern algebra on October 14, 2010, 12:10:32 PM
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.
Title: Re: [YERD] Common Event Menu
Post by: Terra-chan on October 14, 2010, 04:39:13 PM
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.
Title: Re: [YERD] Common Event Menu
Post by: rofl1337 on October 14, 2010, 05:15:48 PM
thank you guys.
super fast replies here.
Title: Re: [YERD] Common Event Menu
Post by: rofl1337 on October 14, 2010, 06:25:30 PM
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:
Quote
Script '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
Title: Re: [YERD] Common Event Menu
Post by: Terra-chan on October 15, 2010, 04:29:37 AM
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)
Title: Re: [YERD] Common Event Menu
Post by: rofl1337 on October 15, 2010, 08:41:32 AM
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...
Title: Re: [YERD] Common Event Menu
Post by: modern algebra on October 18, 2010, 01:43:10 AM
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.
Title: Re: [YERD] Common Event Menu
Post by: DiabloLuke on October 15, 2011, 07:20:02 PM
Link is broken... :'(
Title: Re: [YERD] Common Event Menu
Post by: modern algebra on October 15, 2011, 07:24:54 PM
Try: http://rmrk.net/index.php/topic,42396.0.html