The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Scripts Database => Topic started by: Yanfly on June 07, 2009, 02:55:37 AM

Title: [YERD] Scene Menu ReDux
Post by: Yanfly on June 07, 2009, 02:55:37 AM
Scene Menu ReDux
Last Update: 2009.06.06
By: Yanfly Engine ReDux
 
Introduction
This is more or less a revision of the menu scene. Included in the script are a couple of features. Note that I will NOT take credit for KGC's custom menu command script as all I did was merely import it into this script and finished up the excluded functions that he's left behind. Everything else I did add to the script.

COMMAND CONTROL - by KGC
Add, remove, and re-order commands akin to KGC's CustomMenuCommands. Akin to this feature will include what KGC's original script was missing and that was easy functionality to include custom menu commands without hassling the core script itself. Also added is the ability to launch common events from the main menu itself for those who wish to event unique commands.

REDUX MENUS
The redux menus are completely optional and are mostly nothing other than visual changes to the menu scene. You can add icons to the command window, display more than just gold on the main menu screen, and added experience bars to the party window.

Screenshots
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fmenuredux%2Fmenu_title.jpg&hash=dc9e7c28e5755ad73690f85d2adde74fad0e1c0b)
 
Script
Click here to view the main script. (http://www.pockethouse.com/rpgvx/scripts/scenemenuredux.txt)

Instructions
There's a few things to go through so I'll post some screenshots. But first things first, there's two things you must do:

1. Place all of the non-KGC and non-Yanfly scripts that have new scenes above this script. That way, they will not alter the menu.
2. Place all KGC and Yanfly scripts below this script to develop compatibility amongst all of the scripts.

This is done to enforce compatibility and to actually make this script work.

---------

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

Of the easy things you can edit, you may edit which button needs to be pressed in order to launch the menu. This has always bugged me about RPG Maker (that you have to press the cancel button to launch the menu rather than a dedicated button). Now, you can bind the menu call button to what you desire and dedicate other things to your cancel button (like jumping, but I haven't made a script for that yet). The starting index can also be changed. This is where the cursor starts when the menu is loaded. And finally, you may shift the command window over to the right hand side if you desire without needing to do much other than setting RIGHT_SIDE_COMMAND to true.

MENU_BUTTON
This adjusts the button press to open the said menu.

START_INDEX
This is where the menu cursor starts by default.

RIGHT_SIDE_COMMAND
This will set the command window over to the right hand side.

---------

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

Imported from KGC's CustomMenuCommand is the ability to add, remove, and reorder commands with ease. Just insert the representing number for the command and it'll appear there if you have the script installed. Changing the order around isn't a problem either. They do not have to be in numeric order as indicated by the screenshot above. However, there's a few extra functionalities that the script includes which KGC has not. Note that I will NOT take credit for any of KGC's hard work.

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

Included is the ability to launch common events from the main menu. You can hide and disable these common events in the menu through game switches easily. When a common event launches, it will kick the player out of the main menu to perform the event. For instance, in the screenshot above, when the player selects the Camp option, it will take the player to a little dungeon where Ralph can talk with his party members, rest up, save, and buy items from a wandering vendor. Note that menu commands 101 through 200 are reserved for common events.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.pockethouse.com%2Frpgvx%2Fmenuredux%2Fmenu_howto4.jpg&hash=9eb7918f77a8a6976231e462b47f2f6af51db04a)

And although KGC's script originally had this feature, the method for easily imported scenes did not exist in his public script. Scene Menu ReDux provides and easy and accessible way to open up new scenes with close to little trouble. Just like the common event menu commands, there are switches you can bind to hide and disable the commands. Note that any custom rules the imported scripts had for disabling and appear in the menu will not apply to this method. You will have to understand how those scripts disable and hide menu commands and mimic their methods through switches. Already imported in the script are a few of the popular scripts throughout the RPG Maker VX community to save people some headache in trying to figure this thing out.

---------

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

Of the few new features, you can choose whether or not to use icons in your menu. If you do, go look for COMMAND_ICONS and set it to true. Binding the icons to the commands is pretty easy as well. Just go to ICON_SETS and alter the hash there to reflect the icon ID with the desired command. Note that the way the command is written out matters. If using a script that has varying command text, include icons for all of the variations. Unlisted commands will reveal the "Unlisted" icon.

---------

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

And finally, you may display more than just gold in the command window. Choose a variable or two or three to display by adding it to the VARIABLES_SHOWN, array. The order they appear will determine the order the variables appear. If 0 is inputted into the array, it will return the party's gold amount. Under the VARIABLES_HASH, you can decide the icons and text used for each of the variables.

———
IF YOU ARE HAVING PROBLEMS WITH THESE SCRIPTS, REVIEW THE TROUBLESHOOTING PAGE FIRST! (http://pockethouse.wordpress.com/vx/toubleshooting/)

Compatibility
- Anything that customizes the menu will have issues unless you follow the instructions I've posted.
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
- Credits to KGC for the original CustomMenuCommands. TOMY did the majority of this script.
 
Originally Found Here: Here (http://pockethouse.wordpress.com/vx/scene-menu-redux/)
Title: Re: [YERD] Scene Menu ReDux
Post by: Grafikal on June 07, 2009, 03:03:54 AM
Also added is the ability to launch common events from the main menu itself for those who wish to event unique commands.

That is insanely amazing!
Title: Re: [YERD] Scene Menu ReDux
Post by: modern algebra on June 07, 2009, 05:21:05 PM
Looks like another fantastic script, Yanfly. I will have to give it a try soon.
Title: Re: [YERD] Scene Menu ReDux
Post by: Yanfly on June 07, 2009, 05:26:36 PM
Okie dokie. =D

I'd also like to mention that to make compatibility with the Quest Journal, just gotta change one line:
Go to Modern Algebra's quest journal script, find this part:

Code: [Select]
     if $game_system.quest_menuaccess
        $scene = Scene_Menu.new ('Quest')
      else # Returning to Map
        $scene = Scene_Map.new
      end

change this line:

        $scene = Scene_Menu.new ('Quest')

into
        i = whatever index position quest is at
        $scene = Scene_Menu.new(i)

Title: Re: [YERD] Scene Menu ReDux
Post by: modern algebra on June 07, 2009, 07:25:23 PM
I think both the Quest Journal and the Integrated Reserve Party work without alteration as long as they are beneath this script in the editor. I'm not certain of course; I would need to look at the script more closely since I'm not sure what else might be changed, but that is the way I designed it to work, and it does with other custom menu scripts.

I did a cursory check, without having added any custom scripts, and it seemed to work.
Title: Re: [YERD] Scene Menu ReDux
Post by: Yanfly on June 07, 2009, 08:38:56 PM
Ooh, so they're both position reversible? That's great to know. =O
Title: Re: [YERD] Scene Menu ReDux
Post by: modern algebra on June 08, 2009, 04:58:03 AM
Well, I took a look, and I don't think the Reserve Party script will work without alteration because of the modifications I make in that script to Window_MenuStatus, but the Quest Journal ought to work fine.
Title: Re: [YERD] Scene Menu ReDux
Post by: Yanfly on June 08, 2009, 05:30:38 AM
It should work with the normal party status menu. =]
Set USE_REDUX_STATUS to false and all you lose is a few EXP bars but it'll return the regular party status menu.
Title: Re: [YERD] Scene Menu ReDux
Post by: modern algebra on June 08, 2009, 05:49:58 AM
Oh, that's neat that you built that customizability into it. Nice work! :)
Title: Re: [YERD] Scene Menu ReDux
Post by: Yanfly on June 08, 2009, 06:12:55 AM
Yeah, I'm quite aware that a lot of people tend to customize their own status windows inside the menu. That's why there's the option to keep revert back to the original status window. The hard work people put into their own games shouldn't be lost due to selfish scripters. =]
Title: Re: [YERD] Scene Menu ReDux
Post by: Kokowam on June 08, 2009, 09:20:35 PM
+rep for all your scripts and that comment right dere.
Title: Re: [YERD] Scene Menu ReDux
Post by: Monkii on June 09, 2009, 03:13:12 AM
How would you add more scripts to run from the menu? D:
Sorry, I'm inexperienced, but I want to use this script if I could. 0:
http://rmrk.net/index.php/topic,26799.0.html
Title: Re: [YERD] Scene Menu ReDux
Post by: Yanfly on June 09, 2009, 03:36:15 AM
Add this following line to the IMPORTED_COMMANDS
Code: [Select]
       206 => [   nil,    nil,  true, "Distribute", "Scene_Stat_Dist"],
Then, go to the menu list and add 206 to where you would like it appear. =]
Title: Re: [YERD] Scene Menu ReDux
Post by: Monkii on June 09, 2009, 05:41:54 AM
Thanks :D
Title: Re: [YERD] Scene Menu ReDux
Post by: sinkay101 on June 14, 2009, 03:36:29 PM
OMG you are very good at this Yanfly,anoter good one from you!
Title: Re: [YERD] Scene Menu ReDux
Post by: Grafikal on June 18, 2009, 12:09:08 AM
Is there some place I would be able to change the text for "Status" to something else?
Title: Re: [YERD] Scene Menu ReDux
Post by: Garge on June 18, 2009, 01:19:42 AM
Just go under Terms in the database and you can change it there.
Title: Re: [YERD] Scene Menu ReDux
Post by: Grafikal on June 18, 2009, 01:21:32 AM
:facepalm:

I was so caught up in the scripts I've been looking at that I totally forgot to even look there. lol. Thanks Garge.

Edit:: [offtopic] Whoa mega negative rep... I was at like -15 an hour ago. Hah, wow. Oh well. Good thing it doesn't matter lol. [/offtopic]
Title: Re: [YERD] Scene Menu ReDux
Post by: kitten2021 on August 04, 2009, 05:32:49 AM
I just have one question please... I'm not sure if it is pertaining to your script or not, but please help if you can. I have never scripted before VX came along, so I am just barely figuring out on how to make a brand new window appear in the menu (which I was over joyed to of finally figured out, then found these pages and felt terrible lol). I am trying to get a tiny window in the menu that states not only the gold, which is by default there, but also the map you are in.
If I am reading your scripting examples you have provided up there, basically in my script for the new "Location" window, I just need to inform the script as of to the 'name' of the map you are in am I correct?
If I am right, then how would I go about doing that please? I would think that the appropriate line would need to be:

-1 => [ 120, "Map"]

Where -1 would equal the only object there and the 120 the position of the name of the map in the new window, am I correct? Or am I just confusing myself here... Probably. LOL
Title: Re: [YERD] Scene Menu ReDux
Post by: Gordian on August 20, 2009, 10:44:55 AM
I have installed two scripts: Scene Menu ReDux (this script) and Quest Journal v1.1 by modern algebra. Everything is good. Problem it appears when I want to leave Menu. Then, it is displayed error:

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg13.imageshack.us%2Fimg13%2F8404%2Ferrorqlk.jpg&hash=7ec2ff24398e3413301805d9983f92991bde1f3a)

Please, help me.

PS. I know, my English is terrible. I'm sorry.
Title: Re: [YERD] Scene Menu ReDux
Post by: modern algebra on August 20, 2009, 05:17:19 PM
Try putting the Quest Journal below the Scene Menu Redux in the editor.
Title: Re: [YERD] Scene Menu ReDux
Post by: Gordian on August 21, 2009, 09:47:17 AM
Thank you modern algebra. Now it is working. Now icon in Menu have passed away but it not problem.
Title: Re: [YERD] Scene Menu ReDux
Post by: modern algebra on August 21, 2009, 02:13:53 PM
Well, it's inconvenient to have the icon go away.

You can use Yanfly's setup too. If you don't want the icon to go away, all you'd need to do is put it above the Scene Menu Redux and follow these instructions: http://rmrk.net/index.php/topic,33381.msg404078.html#msg404078
Title: Re: [YERD] Scene Menu ReDux
Post by: Raukue on August 22, 2009, 07:50:51 AM
Haha, I had just noticed this problem as well yesterday. Got help and was told just that about changing that line.

But yes, keep the Quest Journal above Yanfly's Menu ReDux, change that line in the link MA just provided there and be sure in the Quest Journal script to make this change near the top.

Code: [Select]
MENU_ACCESS = false

Needs to be made false otherwise you will still get the error. You make it appear on the menu through Yanfly's Menu ReDux.
Title: Re: [YERD] Scene Menu ReDux
Post by: modern algebra on August 22, 2009, 02:30:23 PM
If MENU_ACCESS is set to false though, then leaving the quest journal will bring you to the map instead of back to the menu.

I had thought, however, that the line Yanfly suggested to change would do the trick (and, in fact, if MENU_ACCESS were set to false then changing that line would do nothing).


EDIT::
I just did a quick check. The fix Yanfly suggested seems to work for me.
Title: Re: [YERD] Scene Menu ReDux
Post by: Raukue on August 22, 2009, 11:21:11 PM
Yes, that Yanfly fix makes it go back to the menu. But even if you have that fix, if on your Quest Journal, if Menu Access is left on True, the same error will be had. I tried it myself. I left it on True after putting Yanfly's fix and I get the same error. But once I change it to False, then I can leave and no error, that Yanfly fix is so that it does go back to the menu.

Hmm I dunno if your edit suggested that it was false in testing it.
Title: Re: [YERD] Scene Menu ReDux
Post by: modern algebra on August 23, 2009, 12:03:36 AM
When I checked, I left MENU_ACCESS as true, had the Quest Journal above the SMR, and did the edit exactly as Yanfly posted it and it worked.
Title: Re: [YERD] Scene Menu ReDux
Post by: Raukue on August 23, 2009, 07:45:50 AM
Well that's odd because I keep getting the error, even on a fresh project, if I leave the MENU_ACCESS as true.
Title: Re: [YERD] Scene Menu ReDux
Post by: modern algebra on August 23, 2009, 02:26:46 PM
maybe you're not changing the right lines? Post what you have about 5 lines before and after the line you're supposed to change.
Title: Re: [YERD] Scene Menu ReDux
Post by: heyoka on May 28, 2010, 05:56:32 PM
Hello,
I try to get this script but the link doesn't work anymore. Please fix it. Thank you
Title: Re: [YERD] Scene Menu ReDux
Post by: user3k on May 29, 2010, 01:24:50 AM
heyoka,
You can get some of the scripts at www.pockethouse.com
Title: Re: [YERD] Scene Menu ReDux
Post by: heyoka on May 29, 2010, 09:16:01 AM
thanks after searching for some minutes I found it. Only now i'm using it and added my own commands(one through the script itself one thorugh another script) but it doesnt come out right. Look at attachment to see what I mean. How do I fix this? Since it doesn't look good at al.

Also I'm not sure if I should post this somewhere else. So I'm sorry if it did had to. I might maby be a member for a long time, but I don't rerally post alot and the site changed since my last visits...
Title: Re: [YERD] Scene Menu ReDux
Post by: modern algebra on May 29, 2010, 11:33:04 AM
err, what's the problem. That looks fine. The only thing I can see is that the Game End command doesn't have an icon. But anyway, you should try to add scripts to that menu through the menu script, rather than automatically. To do that, just put the script that adds itself automatically above the menu script in the editor, then configure it.
Title: Re: [YERD] Scene Menu ReDux
Post by: heyoka on May 29, 2010, 11:36:26 AM
The problem is that the Quests en Upgrade aren't right. I mean they aren't the same as the others that's the problem. Also with the Upgrade(which is the one who adds himself to the menu) gives an error if I do it through this script.
Title: Re: [YERD] Scene Menu ReDux
Post by: modern algebra on May 29, 2010, 12:00:45 PM
They aren't supposed to be disabled you mean? Well, for the one added through the script, look at what switch you've set to disable it and change it if it's inappropriate.

I can't really help you with the other problem though, because I know nothing about that script.
Title: Re: [YERD] Scene Menu ReDux
Post by: heyoka on May 29, 2010, 12:01:47 PM
No I mean they are supposed to be displayed but than just like the other tiems. As you see you don't see them as clear as you see the item command

edit: All the command go through the script now. the only problem left is how do I let the commands appear normal like the Item comand?

esdit: Nevermind after trying out everything I somehow got it right now
Title: Re: [YERD] Scene Menu ReDux
Post by: modern algebra on May 29, 2010, 09:30:47 PM
good to hear :)
Title: Re: [YERD] Scene Menu ReDux
Post by: digdarkevil on August 10, 2011, 02:05:52 AM
Hi I Just Do Not See The Part Of The Codes: :'(


 if $game_system.quest_menuaccess
        $scene = Scene_Menu.new ('Quest')
      else # Returning to Map
        $scene = Scene_Map.new
      end


and


 206 => [   nil,    nil,  true, "Distribute", "Scene_Stat_Dist"],

Can You Please Tell Me What Line It Is? :-\