The RPG Maker Resource Kit

RMRK RPG Maker Creation => General Tutorials and Eventing => RPG Maker General => Tutorials Database => Topic started by: Arkbennett on August 19, 2007, 05:34:44 AM

Title: Eventing Chapter I - Functions Of Messages
Post by: Arkbennett on August 19, 2007, 05:34:44 AM
"Message" Command
This command is usually used for character speech, but can be used for other things such as telling the player that he or she obtained items when he/she opens up a chest. The Message command has special codes in it which allow you to perform special functions, how to do it and their functions follow.

Code: [Select]
\n[x]- Displays a hero name equivalent to the ID number.
\v[x] - Displays a variable value equivalent to the ID number.
\c[x] - Changes the text to the color equivalent to the ID number.
\g - Displays the amount of gold you have in the top-right window.

I’m sure you notice that the first three codes have the x sign, this of course means that a number goes in place of it. The number for hero name and variable value is it’s ID Number. If you go into the database (The button to the right of the ¼ Scale button)you should see on a hero tab. If you haven’t edited the heroes in the tab yet, there should be a highlighted line saying “001: Arshes” The “001” part is his ID number, take note that you can omit the zeros. The same thing goes for variables, it should have an ID number next to it, but we’ll explain variables in the later chapters.

So as an example let’s say I typed this in a message box:

Code: [Select]
\n[1]:
Hi, my name is \n[1]!

It would show up as:

Quote
Arshes:
Hi, my name is Arshes!
Colors are a little different command wise, the default colors are as follows:

Quote
0 - White
1 - Blue
2 - Red
3 - Green
4 - Teal
5 - Purple
6 - Yellow
7 - Grey

So if you replaced the x with 1 the text following it would appear blue. Don’t forget that if you just want a word a certain color, that you half to change it’s color back.

________________________________________________________________________________


"Show Choices" Command
This command allows user input by text. Before we start, I want you to know that normal message box will only allow 4 lines. Think about this if you'd like the message and it's options to be in the same text. For example:

If I had two sentences and two choices:
Quote
Arshes:
Look here is some candy, what should I do with it?
-Eat it
-I'm not hungry
However, if I had three possible choices it would make another message box like so:
Quote
Arshes:
Look here is some candy, what should I do with it?
Quote
-Eat it
-I'm not hungry
-Throw it at the homeless man
If you've already tried typing a normal message, you might've noticed that it'll stop you after three lines. However, you are more than capable of adding an extra line by simply adjusting the bottom part of the window that you type your text in.

Now basically by using this command you can cause the conversation to move in different paths. I'll use the example above to show you what it looks like in Rpg Maker..

Code: [Select]
<>Message: Arshes:
:  : Look here is some candy, what should I do with it?
<>Show Choices: Eat it, I'm not hungry
: [Eat it]
   <>
: [I'm not hungry]
   <>
End
<>
Notice the "<>"? This indicates a empty command line. Let's add a message under "Eat it":
Code: [Select]
<>Message: Arshes:
:  : Look here is some candy, what should I do with it?
<>Show Choices: Eat it, I'm not hungry
: [Eat it]
   <>Message: Yummy!
   <>
: [I'm not hungry]
   <>
End
<>
Now if you choose the choice "Eat it" another message box will appear and say "Yummy!". Now after the commands under "Eat it" is complete, the event skips over "I'm not hungry" and reads what's after End. This is vital to remember.

Ok, almost done with this command. If you notice when you set up the "Show Choices" command there is blue text to the right that says "Cancel Handler" this means that if you press the Cancel Key (X and Esc) the game will automatically select this option.
Quote
Disallow - The disables the use of the Cancel Key.
Choice 1 - Selects option 1.
Choice 2 - Selects option 2.
Choice 3 - Selects option 3.
Choice 4 - Selects option 4.
Custom Handler - Executes a different option.
I'll give you an example of the Custom Handler.
Code: [Select]
<>Message: Arshes:
:  : Look here is some candy, what should I do with it?
<>Show Choices: Eat it, I'm not hungry
: [Eat it]
   <>Message: Yummy!
   <>
: [I'm not hungry]
   <>
: [Cancel Handler]
   <>Message: Hey look! It's a babe with cotton candy!
   <>
End
<>
If you press the cancel key a message box would appear and say "Hey look! It's a babe with cotton candy!"

________________________________________________________________________________

"Input Number" Command
Allows the player to input numerical values that's stored in a variable. The second part with this goes with conditional branchs or you can display it in a message box with the "\v" command. Inputting a number takes up one line in a message box and you can only input number up to eight digits long.

________________________________________________________________________________

"Message Display Options" Command
Very useful for adding a type of style for message commands, the options to edit a message box position follows:
Quote
Top
Middle
Bottom
The options to affect the the visibility of the message box follows:
Quote
Show
Don't Show
It's very basic and self explanatory, if you want something similer to FFX when Tidus narrates set the options to "Bottom" and "Don't Show. This concludes chapter 1.
Title: Re: Eventing Chapter I - Functions Of Messages
Post by: memekia on August 19, 2007, 05:46:04 AM
very good but isn't their a different color code that works on rpg maker?
i mean can't you use ff:00000# i think thats how it go?

edit:you really are killing with the tut
Title: Re: Eventing Chapter I - Functions Of Messages
Post by: Arkbennett on August 19, 2007, 05:52:05 AM
very good but isn't their a different color code that works on rpg maker?
i mean can't you use ff:00000# i think thats how it go?

edit:you really are killing with the tut

Nope, this was modeled after Rpg Maker Xp.
What your thinking of his HTML. And that's the color black I believe.
Or wait, wasn't black FFFFFF?  ???
Title: Re: Eventing Chapter I - Functions Of Messages
Post by: memekia on August 19, 2007, 06:15:45 AM
very good but isn't their a different color code that works on rpg maker?
i mean can't you use ff:00000# i think thats how it go?

edit:you really are killing with the tut

Nope, this was modeled after Rpg Maker Xp.
What your thinking of his HTML. And that's the color black I believe.
Or wait, wasn't black FFFFFF?  ???
i know its for rpg maker xp.
i was looking for the name of it.(new to xp but i know a little about)
i think so?
Title: Re: Eventing Chapter I - Functions Of Messages
Post by: Falcon on August 19, 2007, 06:27:18 AM
Someone actually bothered to make a tutorial about a default system which all the smart people replace with an AMS?

Other than that, good job :P
Title: Re: Eventing Chapter I - Functions Of Messages
Post by: Arkbennett on August 19, 2007, 06:30:40 AM
Quote
Someone actually bothered to make a tutorial about a default system which all the smart people replace with an AMS?

Other than that, good job

For the newbies, you gotta learn the basics.
As they say,
"Your must learn to crawl before you learn to walk."
Or something like that.
Title: Re: Eventing Chapter I - Functions Of Messages
Post by: ShadowOD on August 19, 2007, 06:56:28 PM
Well I found this usefull  ;D

Good job.

~Be Cool~
Title: Re: Eventing Chapter I - Functions Of Messages
Post by: shaz on August 20, 2007, 01:04:52 AM
nice tute - are you going all the way through the 3 tabs explaining EVERYTHING?
Title: Re: Eventing Chapter I - Functions Of Messages
Post by: Arkbennett on August 20, 2007, 01:09:17 AM
nice tute - are you going all the way through the 3 tabs explaining EVERYTHING?

Thanks!  :D

Originally, yes.
But I may not now.
But I'm leaning torwards a most likely will.
Eventually I'll get bored and want to do something somewhat progressive with my spare time...
Especially since school is to start in a week and a half, so I'll be in a working mood.
Title: Re: Eventing Chapter I - Functions Of Messages
Post by: irish-warrior on September 08, 2007, 10:35:32 PM
great tutorial it really helped me alot  ;8
Title: Re: Eventing Chapter I - Functions Of Messages
Post by: modern algebra on September 09, 2007, 02:56:47 PM
Pretty simple, but some beginners may need it so I will move it to the database