ATS: Message Options
Version: 1.0.7
Author: modern algebra
Date: 28 January 2013
Version History
- <Version 1.0.7> 2013.01.28 - Fixed error where pitch would always be 100 if random range was equal
- <Version 1.0.6> 2013.01.27 - Slight adjustments for greater compatibility with ATS: Choice Options
- <Version 1.0.5> 2013.01.22 - Fixed an error with blank messages when using fit_window_to_text and wait commands.
- <Version 1.0.4> 2012.09.24 - Fixed an error where this script would sometimes break the alignment feature of ATS: Formatting
- <Version 1.0.3> 2012.09.22 - Added message codes to play SEs, MEs, animations and balloons while a message is showing
- <Version 1.0.2> 2012.09.08 - Made it so that the choice window is flush with the message window when the message window is not full sized
- <Version 1.0.1> 2012.09.08 - Fixed a bug where the name window would not dispose
- <Version 1.0.0> 2012.09.08 - Original Release
Description
This script allows you to control a number of things about the message window, such as its size and position. It also provides for scrolling and review, and it includes the option to create a name window to identify the speaker (or for any other use).
Features
- Show a name window to identify the speaker and control its position, border size, and more!
- Smoothly scroll through message windows by line or by page.
- Control the position of the message window directly, and this includes an option to show a message window above a specified character.
- Control the size of the message window, either directly or by fitting it to the longest line of text in a message window.
- Control the graphics of the message window, with the freedom to easily change the windowskin, the size of the border, or to replace the "dim" background with a picture of your choosing.
- Play a letter-by-letter sound effect, with control over the SE, frequency with which the SE is played, and an option to randomize pitch.
- Play chosen SEs on opening a message window, finishing a message window, terminating a message window, or waiting for player input.
- Use message codes to play SEs, MEs, animations and balloons while the message is showing.
If you are looking for other features from my VX script of the same name, then see some of the other scripts in the ATS series (http://rmrk.net/index.php/topic,44525.0.html).
Screenshots
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fs18.postimage.org%2Ffpp3y146d%2Fatsmo1.png&hash=e5ccaff3e0fd6dcea8d3801e6b75c8aab99d6469) (http://postimage.org/image/fpp3y146d/)(https://rmrk.net/proxy.php?request=http%3A%2F%2Fs18.postimage.org%2Fwrhy04j1h%2Fatsmo2.png&hash=93ac35cbb4a387208179dcb485abcf9ec07f69b0) (http://postimage.org/image/wrhy04j1h/)
Instructions
Paste the script into its own slot in the Script Editor, above Main but below Materials. Aside from that, please see the instructions contained in the header, as well as those in the Editable Region beginning at line 125.
Script
Please retrieve the script from Pastebin (http://pastebin.com/yVC7P5yC).
Credit
Thanks
- eschalt, for an error report
- Venetian Gondolier, for an error report
Support
Please post in this topic at RMRK if you have any questions, suggestions, or error reports.
Known Compatibility Issues
No currently known compatibility problems, but there might be issues with other non-ATS message systems.
Demo
See attached (http://rmrk.net/index.php?action=dlattach;topic=46770.0;attach=30456).
Terms of Use
I adopt RMRK's default Terms of Use (http://rmrk.net/index.php/topic,45481.0.html).
Well, it would seem that it is happening because $game_message.show_on_character_id has been set to nil. That should never happen by default in the script. Is it possible that you did it in one of your script calls? Ie. did you do something like:
ats_next(:show_on_character_id, nil)
If so, that's the problem and you need to delete that line.
If not, I will need to see a demo with the error recreated, since it doesn't happen to me.
Oh, well if you mean that you are getting the error when you load a save file from before the script was installed, then yeah, that error makes sense. I thought you meant just any old time you continue.
Anyway, yeah, the script doesn't work with games saved before you added the script to your game. If you want to keep that save file, then put the following in an event you run immediately after loading:
$game_ats.reset
$game_message.clear
After that, see if the error clears up. If so, save the game and you can then remove that event since you won't need it anymore.