Main Menu
  • Welcome to The RPG Maker Resource Kit.

Random messages tutorial

Started by Irock, August 22, 2007, 09:09:44 PM

0 Members and 1 Guest are viewing this topic.

Irock

Random Messages Tutorial
Ever wanted to have characters say random messages in your game? Well, in this tutorial, you will learn how to do so. It's very simple. Just follow these simple steps, and your game will have random messages in no time! Remmeber, the wording may be different for different RPG Maker XP versions.

[spoiler=Tutorial]
We're going to start out with the event page. Select your sprite, and it should look something like this.


Let's click on "Change Variable," in the event command list. This is located in the first tab.


We'll need to set up our variable. We can use one variable for all messages. Let's name it 'messages." THe naming doesn't really matter, but it's always good to name your variables according to the purpose.
We need to have a number randomly selected, so set how many different messages you want possible for your event. (it counts zero as a number) I set it to four different numbers, 0, 1, 2, and 3.


Now, under the variable, let's click on "forks condition." This is located under the first tab.


We need to have one of these for every random number possible, but let's make one at a time. Select the variable, and the number. We need to start with 0.


Now that our first fork condition has been created, let's put the first possible message right here.


Define what the message is, then hit OK.


Now, under "else case," let's set up another fork condition.


Use the same variable, but increase the number by one.


Continue doing this until you have one for every possible number. In this case we have 0, 1, 2, and 3. Don't forget to put a different message in each fork condition.

Now we have random messages!



[/spoiler]

Kokowam

Lol nice. But what's wrong with your RMXP? It says "same 0"....

modern algebra

different translation. PK maybe? I'm not sure. This is a usefult tutorial. Good job Irock.

Irock

I'm pretty sure I'm using legal. ?_?

modern algebra

Odd. I definitely have a different translation.

Kokowam

Same. Maybe it's because he's on Vista (LOL)

Irock