Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Auto-Close Messages, Something that every game should have!
miget man12
post Nov 8 2009, 02:01 PM
Post #1


Making a Comeback
Group Icon

Group: Revolutionary
Posts: 393
Type: Musician
RM Skill: Intermediate




Auto-Close Messages

Version 1.0
By Miget man12
November 8, 2009


Introduction
I made this script for my game and decided I ought to post it here. It makes messages automatically close after a set amount of frames. Good for intros, etc.

Features
-Automatically close messages after set amount of time
-Turn on switch to disable

Script
[Show/Hide] The Script
CODE
#==============================================================================
# * Miget man12 Auto-Close Messages 1.0
#-----------------------------------------------------------------------------
#  This script automatically closes messages after a set amount of time if they
# are set to close after input.
#==============================================================================
class Window_Message < Window_Selectable # don't touch this
  # How many frames to wait until it automatically closes  (60frames/1second)
  WAIT_TIME = 150
  # Switch that, when on, disables auto-closing
  OFF_SWITCH = 1
############ END CUSTOMIZATION ############
  alias mm12autoclose_init initialize
  def initialize
    mm12autoclose_init
    @time_passed = 0
  end
  alias mm12autoclose_input_pause input_pause
  def input_pause
    @time_passed += 1
    mm12autoclose_input_pause
    if @time_passed == WAIT_TIME and !$game_switches[OFF_SWITCH]
      @time_passed = 0
      self.pause = false
      if @text != nil and not @text.empty?
        new_page if @line_count >= MAX_LINE
      else
        terminate_message
      end
    end
  end
end
OR
Script @ Script Central


Customization
QUOTE
CODE
  # How many frames to wait until it automatically closes  (60frames/1second)
  WAIT_TIME = 150
  # Switch that, when on, disables auto-closing
  OFF_SWITCH = 1
Also, to change wait amount in game, put:
CODE
Window_Message::WAIT_TIME = number


Compatibility
Should have really good compatibility, as it hardly modifies anything, and I doubt many scripts would modify them.

Screenshot
Not applicable.

DEMO
Not really needed, but I'll put one up if anyone asks.

Installation
Place script in editor in Materials section, above Main and edit customization.

FAQ
Not available.

Terms and Conditions
-Credits in your game
-Don't post this anywhere without permission
-Feel free to edit for personal use, but don't post edited versions without permission

Credits
Miget man12

~Miget man12


__________________________
By the way:


I'm bored because it's summer so I decided to drop by for a bit.
Go to the top of the page
 
+Quote Post
   
SuperMega
post Nov 8 2009, 02:16 PM
Post #2


Public memberTitle(String n)
Group Icon

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled




You know, I never even thought about something like this. What a great idea! I may just need it for something.


__________________________
Translated Scripts:
Diagonal Movement (Eight Direction) and Smooth Jumping
Attack Party, Heal Enemies
Display Party Status On Map (DQ Style)
Display Maps Under Maps
Save Screen Customization
Subtitled Menus

If you want to suggest a translation for something, PM me, and I'll take a look. I AM TRYING TO GIVE AWAY LOCKERZ.com INVITES, SO PLEASE LET ME KNOW IF YOU WANT ONE.
Currently Working on 2 RPG Maker VX Projects. They are very unique, and have a different kind of style then the usual RPGs. So don't think of them as just another RPG. Did that sound rude? :D Not sure if I want them to go public yet, but we'll see how it goes.
Need a script translated? Come talk to me, and I'll see what I can do.
Go to the top of the page
 
+Quote Post
   
Sparrowsmith
post Nov 8 2009, 02:48 PM
Post #3


ROROW was here, went for beer
Group Icon

Group: Global Mod
Posts: 4,600
Type: Writer
RM Skill: Intermediate
Rev Points: 5




can't you just write \^ in the message box?

well, more like \|\|\|\.\^ 3.25 seconds

which allows more perfect music syncing if your into that stuff.

but still, thumbsup.gif interesting script

edit- oh I get it better now, it's for precise framing.... same reaction, but slightly more impressed tongue.gif


__________________________
Warning! this post may contain sarcasm, please re-read it in a funny voice
The old spoiler was out of control, it had to be stopped.
Go to the top of the page
 
+Quote Post
   
miget man12
post Nov 8 2009, 02:51 PM
Post #4


Making a Comeback
Group Icon

Group: Revolutionary
Posts: 393
Type: Musician
RM Skill: Intermediate




But pressing Enter/Space/Z (input::C) doesn't work if you do that happy.gif
Thanks to that both of you anyhow smile.gif

~Miget man12


__________________________
By the way:


I'm bored because it's summer so I decided to drop by for a bit.
Go to the top of the page
 
+Quote Post
   
Shanghai
post Nov 8 2009, 03:15 PM
Post #5


Level 31
Group Icon

Group: Revolutionary
Posts: 747
Type: Developer
RM Skill: Skilled




I feel somewhat mixed about this. I'm a pretty slow reader and I don't particularly feel happy playing through a game where I know the messages would close on me if I wait too long. Some games that did that usually ended up forcing me to reset the game just to read through that one part again and they left a pretty bad aftertaste...


__________________________
Go to the top of the page
 
+Quote Post
   
SuperMega
post Nov 8 2009, 03:51 PM
Post #6


Public memberTitle(String n)
Group Icon

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled




QUOTE (Shanghai @ Nov 8 2009, 05:15 PM) *
I feel somewhat mixed about this. I'm a pretty slow reader and I don't particularly feel happy playing through a game where I know the messages would close on me if I wait too long. Some games that did that usually ended up forcing me to reset the game just to read through that one part again and they left a pretty bad aftertaste...

Though it could be used for things that require little reading, or even give the player plenty of time for the auto close.


__________________________
Translated Scripts:
Diagonal Movement (Eight Direction) and Smooth Jumping
Attack Party, Heal Enemies
Display Party Status On Map (DQ Style)
Display Maps Under Maps
Save Screen Customization
Subtitled Menus

If you want to suggest a translation for something, PM me, and I'll take a look. I AM TRYING TO GIVE AWAY LOCKERZ.com INVITES, SO PLEASE LET ME KNOW IF YOU WANT ONE.
Currently Working on 2 RPG Maker VX Projects. They are very unique, and have a different kind of style then the usual RPGs. So don't think of them as just another RPG. Did that sound rude? :D Not sure if I want them to go public yet, but we'll see how it goes.
Need a script translated? Come talk to me, and I'll see what I can do.
Go to the top of the page
 
+Quote Post
   
miget man12
post Nov 8 2009, 04:45 PM
Post #7


Making a Comeback
Group Icon

Group: Revolutionary
Posts: 393
Type: Musician
RM Skill: Intermediate




Keep in mind that you can turn it off. It's more for things with stuff you already no and are too lazy to hit enter after every message. Intros, for example; if you want to start a new game and it has a really long intro *coughMetroidFusioncough* you don't want to waste 10 minutes pressing enter after every message even though you know what it's going to say. On the other hand, as SuperMega said, you can make it a good amount of time, or even have it a different amount for the intro from the rest of the game by putting:
CODE
Window_Message::WAIT_TIME = 240


Also: added Script Central link

~Miget man12


__________________________
By the way:


I'm bored because it's summer so I decided to drop by for a bit.
Go to the top of the page
 
+Quote Post
   
SuperMega
post Nov 8 2009, 07:51 PM
Post #8


Public memberTitle(String n)
Group Icon

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled




This script would work quite well with a storybook idea too... That's actually a great idea! A storybook, where it would automatically read you the story and move on by itself. biggrin.gif


__________________________
Translated Scripts:
Diagonal Movement (Eight Direction) and Smooth Jumping
Attack Party, Heal Enemies
Display Party Status On Map (DQ Style)
Display Maps Under Maps
Save Screen Customization
Subtitled Menus

If you want to suggest a translation for something, PM me, and I'll take a look. I AM TRYING TO GIVE AWAY LOCKERZ.com INVITES, SO PLEASE LET ME KNOW IF YOU WANT ONE.
Currently Working on 2 RPG Maker VX Projects. They are very unique, and have a different kind of style then the usual RPGs. So don't think of them as just another RPG. Did that sound rude? :D Not sure if I want them to go public yet, but we'll see how it goes.
Need a script translated? Come talk to me, and I'll see what I can do.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 05:22 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker