[-scripting-] adding title menu options
TRANSCRIPT
Logged in as: Luqman ( Log Out )
Rating Options
Jan 3 2010, 12:31 AM
RPG Maker VX.com Board Rules Chat Dev Blogs Resources Scripts Tutorials Downloads Become a Sponsor
Gallery Members Search Calendar Help
My Controls · View New Posts · My Assistant · My Friends · 0 New Messages
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
Note for Tutorial Threads
New threads (tutorials) here will go into a moderation queue. You will not see your thread appear when you createit. A moderator will decide if it will be approved or denied.
[-Scripting-] Adding Title Menu Options, More Main Script Editing.
Epic Ancient Post #1
If it's a choice between life
and death, I pick
Purgatory.
Type: Coder
Alignment: Lawful Neutral
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 justpictures.)
All of these edits are made in the script "Scene_Title".
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:
iPhone App Directory
[-Scripting-] Adding Title Menu Options - RPG Maker VX Community http://www.rpgmakervx.net/index.php?showtopic=24808
1 of 9 9/10/2011 9:16 PM
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
iPhone App Directory
[-Scripting-] Adding Title Menu Options - RPG Maker VX Community http://www.rpgmakervx.net/index.php?showtopic=24808
2 of 9 9/10/2011 9:16 PM
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
iPhone App Directory
[-Scripting-] Adding Title Menu Options - RPG Maker VX Community http://www.rpgmakervx.net/index.php?showtopic=24808
3 of 9 9/10/2011 9:16 PM
Place that chunk of code directly below
CODE
(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
--------------------
IQ: 134 - According to a professional, paid-for quiz.
iPhone App Directory
[-Scripting-] Adding Title Menu Options - RPG Maker VX Community http://www.rpgmakervx.net/index.php?showtopic=24808
4 of 9 9/10/2011 9:16 PM
Jan 3 2010, 03:18 PM
Jan 3 2010, 03:44 PM
Cheating is Valued - Community Game!
My Signature:Spoiler: Show
Denslat Post #2
dot gifted
Gender: Pokemon
Type: Designer
Alignment: Chaotic Good
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
This post has been edited by Denslat: Jan 3 2010, 03:20 PM
--------------------
Spoiler: Show
Spoiler: Show
Spoiler: Show
Click the spoiler, you get a cookie!!!!
Epic Ancient Post #3
If it's a choice between life
and death, I pick
Purgatory.
Type: Coder
Alignment: Lawful Neutral
QUOTE (Denslat @ Jan 3 2010, 09:18 AM)
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
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.
--------------------
IQ: 134 - According to a professional, paid-for quiz.
Cheating is Valued - Community Game!
My Signature:Spoiler: Show
iPhone App Directory
[-Scripting-] Adding Title Menu Options - RPG Maker VX Community http://www.rpgmakervx.net/index.php?showtopic=24808
5 of 9 9/10/2011 9:16 PM
Jan 25 2010, 03:00 AM
Jan 25 2010, 06:42 AM
Jan 26 2010, 03:42 PM
Jan 26 2010, 08:19 PM
Type: Coder
Alignment: True Neutral
just curious... when i click either it says "unable to find graphics/system/controls" or "/credits"
any help?
NAT_Designer Post #5
Do not expect me to be
nice.
Type: Designer
Alignment: True Neutral
QUOTE (SirFratley @ Jan 24 2010, 07:59 PM)
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 followit's rules. Nothing more.
Cyl Post #6
inactive.
Gender: Vanilla
Type: Coder
Alignment: Neutral Good
I see now...
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
Type: Undisclosed
I need to call script instead show image.
How I can do it?
Im sorry for my english... it´s bad
and by the way... this tutorial is good
This post has been edited by jandurek: Jan 26 2010, 03:46 PM
Epic Ancient Post #8
If it's a choice between life
and death, I pick
Purgatory.
Type: Coder
Alignment: Lawful Neutral
QUOTE (jandurek @ Jan 26 2010, 10:42 AM)
I need to call script instead show image.
How I can do it?
Im sorry for my english... it´s 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.
--------------------
IQ: 134 - According to a professional, paid-for quiz.
iPhone App Directory
[-Scripting-] Adding Title Menu Options - RPG Maker VX Community http://www.rpgmakervx.net/index.php?showtopic=24808
6 of 9 9/10/2011 9:16 PM
Jan 27 2010, 12:54 PM
Jan 27 2010, 06:02 PM
Jan 27 2010, 09:54 PM
Cheating is Valued - Community Game!
My Signature:Spoiler: Show
jandurek Post #9
Type: Undisclosed
QUOTE (Epic Ancient @ Jan 26 2010, 08:19 PM)
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.
I have Credits script and I don´t want to show picture but I want to call Credits script
I have this Credits script
Epic Ancient Post #10
If it's a choice between life
and death, I pick
Purgatory.
Type: Coder
Alignment: Lawful Neutral
QUOTE (jandurek @ Jan 27 2010, 07:54 AM)
I have Credits script and I don´t 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
and this line, to stop playing the credits:
CODE
---
It said that in the OP of the thread.
This post has been edited by Epic Ancient: Jan 27 2010, 06:02 PM
--------------------
IQ: 134 - According to a professional, paid-for quiz.
Cheating is Valued - Community Game!
My Signature:Spoiler: Show
NAT_Designer Post #11
iPhone App Directory
[-Scripting-] Adding Title Menu Options - RPG Maker VX Community http://www.rpgmakervx.net/index.php?showtopic=24808
7 of 9 9/10/2011 9:16 PM
Jan 28 2010, 03:17 AM
Jan 28 2010, 01:37 PM
Feb 28 2010, 08:17 PM
Mar 16 2010, 10:58 PM
Do not expect me to be
nice.
Type: Designer
Alignment: True Neutral
Where you would add the lines for the picture, use this line instead:
CODE
and this line, to stop playing the credits:
CODE
---
It said that in the OP of the thread.
I tried doing as you said, and I get the following error:
CODE
Maybe there's something else you need to do..?
--------------------
Never think of yourself as entitled to know how the world works. Your job is to live in it, and followit's rules. Nothing more.
Mithran Post #12
Scripter
Type: Coder
Alignment: True Neutral
Yes, you forgot to create the credits.
Spoiler: Show
--------------------My scripts:
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
Thanks it´s all I want
Fireball16 Post #14
Type: Designer
sorry but didnt work but its not that important
--------------------
Warrior Withincoming soon!!!
Notunknown Post #15
iPhone App Directory
[-Scripting-] Adding Title Menu Options - RPG Maker VX Community http://www.rpgmakervx.net/index.php?showtopic=24808
8 of 9 9/10/2011 9:16 PM
Mar 23 2010, 07:03 PM
Sep 25 2011, 04:07 AM
« Next Oldest · RPG Maker VX Tutorials · Next Newest »
Type: Undisclosed
only a minor detail)
ai1love6 Post #16
Type: Undisclosed
thanks a lot
PohTehToe Post #17
Gender: Male
Type: Designer
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
|-- RPG Maker VX Tutorials Go
RMVX v4 English Lo-Fi Version Time is now: 2nd October 2011 - 10:46 AM
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.
iPhone App Directory
[-Scripting-] Adding Title Menu Options - RPG Maker VX Community http://www.rpgmakervx.net/index.php?showtopic=24808
9 of 9 9/10/2011 9:16 PM