The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Scripts Database => Topic started by: Adon on July 28, 2011, 12:41:21 PM

Title: Adon's Code Snippets- Before Title Screen Message.
Post by: Adon on July 28, 2011, 12:41:21 PM
Adon's Code Snippets- Before Title Screen Message
Version: 1.1
Author: Adon (No credit is needed. This is simple.)
Date: 7/28/11

Version History

7/28/11- Started and finished snippet. (Total time: 30 seconds)
7/28/11- Upgraded to version 1.1.(Total time: 5 minutes)

Planned Future Versions
1.2- Allow special text codes.


Description

This is an extremely simple script, it took no brainpower at all to make, though I haven't seen one around here, so I might as well would post it. This script creates a popup upon starting your game, before the titlescreen. Exactly like if you get an error message as the game starts. It's simple. and I don't even consider this a script, but it could be useful. Like if you make a game demo, and you want a message to popup out of game, you can do so.
Version 1.1 added description: Now if you are in test play mode, you can choose if you would like to display a message or not.



Features


Screenshots

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi1235.photobucket.com%2Falbums%2Fff434%2Fstormsds%2FTitleScreenMessage.png&hash=eee4d74ce838038ba8fdb4177f63a4ad97975ed9)

Instructions
To use, just simply edit the text inside the ""'s. To make more than one message appear, just type in
print ""
on a new line. Simple!

Script


Code: [Select]
Storm's Title Message Script- Version 1.2
# This is an extremely simple snippet, and I don't even consider this a script.
# You may use this script, especially since anyone could have though up of it in seconds.
# The purpose of the script is to display a simple message before the title screen appears.
#Simple, right?
#VERSION HISTORY
#7/25/11- Started and completed snippet. (5 seconds.)
# Version 1.0 - Only tested features are the displaying of text.
# Version 1.1 - Now you can display a message or not depending if they are in test play mode or not.
if $TEST
  #THESE MESSAGES WILL APPEAR IF YOU ARE IN TEST PLAY MODE.
  print "You are in test play mode"
 $Scene_Title 
else
  # THESE MESSAGES WILL APPEAR IF YOU ARE NOT IN TEST MODE!
  # Inside the ""'s you put what you would want to popup. Text only. No special text codes or anything obviously. Yet...
  print "You are not in test play mode! Marvelous!"
  # Now if you don't want a wall of text to show at once, you can simply do another print command and there you go.
  print "See, it loads up before the title screen is displayed!"
  print "You can even do multiple messages! This script should be compatible with everything, basically because
it doesn't overwrite anything, it just displays it before the title screen loads up and is done.
It would be optimal if you put this script below all other scripts, just in case.
If any compatibillity errors arise, be sure to notify me! Just PM me at RMN,RRR,or RMRK.
Remember, this script was easy, and it took 30 seconds to make."
 end
# It would actually be a great idea if you were to put this below all scripts, so it will be loaded last.
# It could be possible that if you are in test mode, it will load up scene title instead of
#finishing loading up all of your scripts.
#Free for commercial use, no credit is needed. Etc.

Credit

None needed, this took 30 seconds and anyone could have done it.


Support

I can be found at RMN(Adon237), RRR, and RMRK.

Known Compatibility Issues

No known compatibility issues as of now, version 1.1. Will be testing some custom title scripts with this one.
It should be compatible with everything, besides scripts that do the same thing as this one. Though I am sure it won't be incompatible. If you put multiple copies of the script in your game, it will print the messages multiple times.

Demo

Demo can be found here: Version 1.0
http://www.mediafire.com/?pfyyly1lzi8c623
Version 1.1: http://www.mediafire.com/?zyaq0atoldi3vl2


Restrictions
None.
Title: Re: Adon's Code Snippets- Before Title Screen Message.
Post by: Adon on July 28, 2011, 12:55:59 PM
Ahh! Upgrading to version 1.1 already.
Title: Re: Adon's Code Snippets- Before Title Screen Message.
Post by: pacdiggity on July 28, 2011, 01:02:48 PM
You really didn't do anything, did you? XD
The print or p command is built in to RGSS, for anyone who wants to know the magic behind this script, and because the code isn't contained within a class and it runs before Main in the script editor, it will pop up.

It is good to spread the word of this magic command, and there is virtually no conceivable way any script could ruin it.
Title: Re: Adon's Code Snippets- Before Title Screen Message.
Post by: Adon on July 28, 2011, 01:11:45 PM
I upgraded it a little. :3 And no, I virtually did nothing for the first version. This is a petty script. :D
Though Version 1.1 did require the slightest amount of thought. Though the next version will have text codes from Custom Message Melody, and will require that to use the text codes feature. Don't worry, I am just starting out ridiculously simple.
Title: Re: Adon's Code Snippets- Before Title Screen Message.
Post by: pacdiggity on July 28, 2011, 01:22:11 PM
Clever.
Just checking, you seem new to RGSS, yes? Do you know that when working in string (""), you can use #{} to represent a predetermined value? For example:
Code: [Select]
NUMBER = 4
print "My favourite number is #{NUMBER}."
Will print out a pop up that says "My favourite number is 4."
Title: Re: Adon's Code Snippets- Before Title Screen Message.
Post by: Adon on July 28, 2011, 01:23:04 PM
Ahh, that's a brilliant idea, I will add that to version 1.2