RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Random messages tutorial

0 Members and 1 Guest are viewing this topic.

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best Game Creator (Non-RM)2013 Best IRC ChatterboxParticipant - GIAW 112012 Most Successful Troll2012 Funniest Member2012 Best Use Of Avatar and Signature space2012 Best IRC ChatterboxSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Most Successful Troll2010 Biggest Forum Couch Potato2010 Best IRC Chatterbox
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 for 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!




*
A Random Custom Title
Rep:
Level 96
wah
Lol nice. But what's wrong with your RMXP? It says "same 0"....

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
different translation. PK maybe? I'm not sure. This is a usefult tutorial. Good job Irock.

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best Game Creator (Non-RM)2013 Best IRC ChatterboxParticipant - GIAW 112012 Most Successful Troll2012 Funniest Member2012 Best Use Of Avatar and Signature space2012 Best IRC ChatterboxSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Most Successful Troll2010 Biggest Forum Couch Potato2010 Best IRC Chatterbox
I'm pretty sure I'm using legal. ?_?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Odd. I definitely have a different translation.

*
A Random Custom Title
Rep:
Level 96
wah
Same. Maybe it's because he's on Vista (LOL)

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best Game Creator (Non-RM)2013 Best IRC ChatterboxParticipant - GIAW 112012 Most Successful Troll2012 Funniest Member2012 Best Use Of Avatar and Signature space2012 Best IRC ChatterboxSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Most Successful Troll2010 Biggest Forum Couch Potato2010 Best IRC Chatterbox
Oh well, it works.