Help - Search - Members - Calendar
Full Version: Attract Mode v1.10
RPG RPG Revolution Forums > Scripting > Script Tutorials > RGSS
Glitchfinder
Attract Mode
Version 1.10
By: Glitchfinder


Glitchfinder's Attract Mode is a script that allows you to mimic a classic feature of both arcade and console games. This script will modify the title screen so that, when left idle, it will take the game to a map. While on the map, the game will function normally, with the exception that any input from the player takes you back to the title screen. It is recommended that you set up an autorun or parallel process event on the map, to provide some sort of cinematic while the game is idle.

Screenshots

While this script is too dynamic to properly show through screenshots, I do have a video I can show:

The video is here.

Demo Link

The demo can be found here.

Script Link

The script can be found here.

Instructions

Place this script above Main, and below the default scripts. (I realize this is obvious to most, but some people don't get it.)

There is a Scriptastic class immediately following this header. Just change the settings found there to your liking. This script is very simple to use. Note that map is specified by ID. This is the number displayed on the status bar of RPG Maker XP while editing a map, to the left of the map name.

For example, 001: MAP001 (20x15)

1 would be the ID of this map, although 001 could technically be used. This number can also be found in the title of the Map Properties window.

Terms and Conditions
  • This script is free to use in any noncommercial project. If you wish to use this script in a commercial (paid) project, please contact Glitchfinder at his website.
  • This script may only be hosted at the following domains:
http://www.glitchkey.com
http://www.hbgames.org
  • If you wish to host this script elsewhere, please contact Glitchfinder.
  • If you wish to translate this script, please contact Glitchfinder. He will need the web address that you plan to host the script at, as well as the language this script is being translated to.
  • The script header must remain intact at all times.
  • Glitchfinder remains the sole owner of this code. He may modify or revoke this license at any time, for any reason.
  • Any code derived from code within this script is owned by Glitchfinder, and you must have his permission to publish, host, or distribute his code.
  • This license applies to all code derived from the code within this script.
  • If you use this script within your project, you must include visible credit to Glitchfinder and theory, within reason.
Author's Note

I would like to ask that you do not upload or post this code to this or any other site without my permission. It would be much appreciated. Thank you.
majority
Nice script !
im gonna use it for my game !
Zackwell
U'z'd
This is a class script...
And you can modify it to play a scripted cutscene, no?
Glitchfinder
QUOTE (Greigh @ Aug 2 2010, 01:43 PM) *
U'z'd
This is a class script...
And you can modify it to play a scripted cutscene, no?


That shouldn't be too hard to accomplish. You could easily make it take you to a map with an evented cutscene, or, if you were actually going to script, it would only require slight modifications to the script.
FlippedSided
Okay I've got the script set up but one problem. How does it know when to end? For example in the demo it fades out after the character does the animation which is the end. So how does it do this?

Edit: Lol just figured it out. Just found the event saying return to title screen immediately after I posted this tongue.gif.
Glitchfinder
Hey, no problem. It's always better to ask, if you don't know the answer. And if you figure it out before someone can tell you, then kudos to you.
Hirei
I was wondering how hard it would be to make it play an .avi movie or something similar instead? Or possibly even random events/movies?
stripe103
With a video script and some eventing, that would be quite easy. All this script does is waits for 10 seconds and then go to a map. The rest is evented so a call script from a video script wouldn't be to hard to make. Neither the random thing.
Locke
O_O Sounds really nice, use it right away
mattfriends
Very nice, thanks. wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.