(-Scripting-) Adding Title Menu Options
(-Scripting-) Adding Title Menu Options
http://www.rpgmakervx.net/index.php?showtopic=24808
Board Rules
Chat
Dev Blogs
Resources
Scripts
Tutorials
Downloads
Become a Sponsor
Gallery
Members
Search
Calendar
Help
Announcement
OwO Quote of the week: I never got around to submitting my beta testing notes, and I'm the best beta tester, therefor errors
RPG Maker VX Community > RPG Maker VX > RPG Maker VX Tutorials
Filter Your Facebook Feed With LinkNotify SocialDitto Lets You Take the Conversation With You Join Twellow, the Twitter Yellow Pages
New threads (tutorials) here will go into a moderation queue. You will not see your thread appear when you create it. A moderator will decide if it will be approved or denied.
[-Scripting-] Adding Title Menu Options, More Main Script Editing. Epic Ancient
Jan 3 2010, 12:31 AM
Rating
Options
Post #1
This edit was made possible with the help of Mithran. --The Goal: To add extra Title Menu Commands. (You'll notice I did this for someone's script request, but this can be made more applicable than just pictures.) All of these edits are made in the script "Scene_Title".
Type: Coder Alignment: Lawful Neutral
You will need two pictures (for this): -A picture named "Controls". -A picture named "Credits". -Both of these go in Graphics/System. --So, let's begin. Note that your title should look something like this, first:
Now, let's open up Scene_Title in the editor and get working. We'll first be heading down to Frame Update:
1 of 9
9/10/2011 9:16 PM
http://www.rpgmakervx.net/index.php?showtopic=24808
This might make sense to you automatically, but perhaps not. CODE
defines which option is being selected. 0 is the first in the list. 1 is the second. And so on. So, let's add two.
I'm adding in two more options: "Controls" and "Credits". These are not defined yet, nor are they in the menu. Now, let's scroll down to Create Command Window. This tells the game what goes in the actual menu, but not what they do. That's the next step.
This is where some naming comes into play. Right below the s3 = Vocab::shutdown, add these:
What goes inside the quotations is the name of what'll appear on the menu. Feel free to change if desired. Now, inside of CODE
2 of 9
9/10/2011 9:16 PM
http://www.rpgmakervx.net/index.php?showtopic=24808
iPhone App Directory Now, you could save and try this out, but you'll get this:
A bit cut off, right? Well, let's fix that. On this line:
You'll find "288". This is how far from the top the menu actually is. For an ideal height, try 255, or 260. It really all depends on what you want. I'm going to go with 255. This changes your menu to this:
Now it's no longer cut off. It's time for the hard part: Making these new commands actually DO something. To do this, we'll need two new parts of coding. Since these are slightly big, I'll just give you them. CODE
3 of 9
9/10/2011 9:16 PM
http://www.rpgmakervx.net/index.php?showtopic=24808
(Or for simplicity, place on lines 233-268.) Let me explain some of this. CODE
If that's messy, ask me what any of it does in a reply. And that's that. Apply, save, and test. Your menu commands will now display the appropriate pictures. (Good for an introductory game for new-to-vx players, [Controls] or for displaying Credits as a menu option instead of in-game event that takes a while to make. [Credits]) I hope you all enjoy this. Make sure to credit Mithran & Me, if you were to use such a feature. (Mostly his code, my attempt at creation.. He helped me touch it up. [Fix bad code])
This post has been edited by Epic Ancient: Jan 3 2010, 01:31 PM
--------------------
4 of 9
9/10/2011 9:16 PM
http://www.rpgmakervx.net/index.php?showtopic=24808
My Signature:
Spoiler: Show
Denslat
Post #2
Arigato gozaimasu!
dot gifted
When I try to select it from the title screen nothing happens edit: never mind fixed it
This post has been edited by Denslat: Jan 3 2010, 03:20 PM
--------------------
Spoiler:
Show
Spoiler:
Show
Spoiler:
Show
Epic Ancient
Post #3
Arigato gozaimasu! this will be extremely useful edit:erm im having a problem When I try to select it from the title screen nothing happens edit: never mind fixed it
Type: Coder Alignment: Lawful Neutral
Alrighty then. You can do more than fancy pictures, though. Like change music... and fadeout... Probably even go to a map, if you were skilled enough in scripting. All depends on what you want.
--------------------
My Signature:
Spoiler: Show
5 of 9
9/10/2011 9:16 PM
http://www.rpgmakervx.net/index.php?showtopic=24808
iPhone App Directory just curious... when i click either it says "unable to find graphics/system/controls" or "/credits" any help?
NAT_Designer
Post #5
just curious... when i click either it says "unable to find graphics/system/controls" or "/credits" any help?
You have to put a picture in /system for both of those, at least, I think that's what the tutorial says. @Epic_Ancient: This is a great tutorial you posted. It solves my credit's problem almost immediately! I'll make sure to credit you and Mithran for your work.
Never think of yourself as entitled to know how the world works. Your job is to live in it, and follow it's rules. Nothing more.
Cyl
Post #6
I see now...
inactive.
It looks really cool and somehow geeky but actually, "Controls" and "Credits" will just show a picture until you press the X key. lol Nice Work, I learned something new again.
This post has been edited by Cylindrical: Jan 25 2010, 06:42 AM
-------------------One word:
Paradichlorobenzene
(Currently inactive)
jandurek
Post #7
I need to call script instead show image. How I can do it? Im sorry for my english... its bad
Type: Undisclosed
Epic Ancient
Post #8
I need to call script instead show image. How I can do it? Im sorry for my english... its bad and by the way... this tutorial is good
What do you mean, call a script? I'm not much of a scripter, but I'm pretty sure you can call a different script's class & method.
--------------------
6 of 9
9/10/2011 9:16 PM
http://www.rpgmakervx.net/index.php?showtopic=24808
My Signature:
Spoiler: Show
jandurek
Post #9
What do you mean, call a script? I'm not much of a scripter, but I'm pretty sure you can call a different script's class & method.
Type: Undisclosed
I have Credits script and I dont want to show picture but I want to call Credits script I have this Credits script
Epic Ancient
Post #10
I have Credits script and I dont want to show picture but I want to call Credits script I have this Credits script
Where you would add the lines for the picture, use this line instead: CODE
--------------------
My Signature:
Spoiler: Show
NAT_Designer
Post #11
7 of 9
9/10/2011 9:16 PM
http://www.rpgmakervx.net/index.php?showtopic=24808
iPhone App Directory Where you would add the lines for the picture, use this line instead: CODE
I tried doing as you said, and I get the following error: CODE
--------------------
Never think of yourself as entitled to know how the world works. Your job is to live in it, and follow it's rules. Nothing more.
Mithran
Post #12
Spoiler:
Show
Spoiler:
Show
Searching for one of my snippets? Mithran's Snippet Repository My current scripting projects: Mithran's Script Development Thread Who says I'm always idle in the IRC? Spoiler: Show
jandurek
Post #13
Type: Undisclosed
Fireball16
Post #14
--------------------
Warrior Within
coming soon!!!
Type: Designer
Notunknown
Post #15
8 of 9
9/10/2011 9:16 PM
http://www.rpgmakervx.net/index.php?showtopic=24808
Type: Undisclosed
ai1love6
Post #16
thanks a lot
Type: Undisclosed
PohTehToe
Post #17
Im sorry if i sound stupid but i'm wondering for credits how do i put the names of the people that helped make the game into it?
Enter Keywords
Search Topic
1 User(s) are reading this topic (0 Guests and 0 Anonymous Users) 1 Members: Luqman
Go
RMVX v4
English
Lo-Fi Version
Powered By IP.Board 2.3.6 2011 IPS, Inc. Licensed to: RPG Maker VX Community RPGMakerVX.net is an iEntry Network publication - 1998-2011 All Rights Reserved Privacy Policy, Legal.
9 of 9
9/10/2011 9:16 PM