Announcement
Announcement
| Crystal Fantasy takes 1st as the 2013 2nd Quarter Contest Winner!!! See the Community Announcements section. |
New threads (complete scripts) here will go into a moderation queue. You will not see your thread appear when you create it. A moderator will decide if it will be approved or denied.
![]() ![]() |
Oct 2 2011, 03:38 AM
Post
#1
|
|
![]() ![]() Type: Designer Alignment: Chaotic Neutral |
Text Alignment and Face Control Script V2.0 Created by Neon Black What is it? This script allows you to change the default alignment of the text as well as the default position of a face displayed in the textbox. It also includes several textbox codes that allow you to change these settings on the fly as well as align the lines in the textbox differently. I created this script because the I could only find one other script that would allow the user to change the alignment of text and I didn't want all the extra baggage that script came with or any potential compatibility issues. What are its features? This script now has the ability to change how facesets are used by the program. You can now use facesets different sizes than the standard 96x96 pixels. Facesets must still contain 8 faces total (4 horizontal and 2 vertical) but you are no longer restricted by size. You may also use a single graphic for a face by adding "$" to the image name, similar to what you would do with character sets. These features are always available in the text box, but to use these features anywhere else, you must enable them in the advanced options. How can I use it? Place this script anywhere in the materials section above main. If you notice incompatibility with another script, place this script above that script. If you still experience incompatibility issues, please post what scripts you are using as well as what kind of error you are getting. Configuration: Spoiler: Codes: Spoiler: What does it look like? Spoiler: What does it work with? This script was made to work alongside the Yanfly Custom Message System. To use these scripts together, place this script ABOVE the Yanfly CMS. This script overwrites a few of the class objects in order to work and will most likely be incompatible with scripts that use them differently. Below are the changes this script makes. Alias Spoiler: Overwrites Spoiler: New Objects Spoiler: How can I get the code? Version 2.0 (second revision, 3.18.2012) is available only by clicking this link here. I would like to use this code. You are free to use, modify, copy and distribute this code at your own leisure and you do not need to credit me directly, however if you use this code or modify it in any way, please leave the names in the credits box at the top of the code and do not remove that section. Author's Disclaimer: This is the first script I created from scratch and I am sort of proud of it, though I am sure there are bugs and errors or better ways of doing things. Due to errors I created while taking time adjusting to a new language there is a certain amount of redundancy in the code. There are also some things split apart because I plan to add more features to the code at a later date. The code should work for now. Any problems you may encounter please post here or PM me and I will certainly help resolve them. This post has been edited by Neon Black: Mar 21 2012, 12:37 PM -------------------- My scripts. Feel free to use and abuse. - Slo-mo Script / Frame Rate Script - - Animated Battler Graphics Script - - Lock Picking Script - - Simple Text Alignment and Face Control Script - |
|
|
|
Oct 2 2011, 03:57 AM
Post
#2
|
|
![]() Type: Undisclosed Alignment: Unaligned |
I changed the codebox tags to just code tags. Scripts copied from codeboxes lose tabs when pasted.
-------------------- I no longer support Tankentai.
|
|
|
|
Oct 25 2011, 04:56 AM
Post
#3
|
|
![]() ![]() Type: Designer Alignment: Chaotic Neutral |
Modified the script to fix several bugs involving selection boxes and the battle messages. Also added 2 new message codes for use as explained below. For screenshots of the new features, check the main post. Current version is now 1.1.
\trans[x] - This code allows you to set the opacity of the face by changing "x" to a value from 0 to 255. Setting it to 255 will make it fully visible (default) while setting it 0 makes it fully transparent. \keep - This saves the face, position, flipping, and transparency of the current message box for the next message box or selection screen. The main use of this is to allow you to display a face in a choice box with 4 choices. This post has been edited by Neon Black: Oct 25 2011, 05:06 AM -------------------- My scripts. Feel free to use and abuse. - Slo-mo Script / Frame Rate Script - - Animated Battler Graphics Script - - Lock Picking Script - - Simple Text Alignment and Face Control Script - |
|
|
|
Mar 18 2012, 07:09 AM
Post
#4
|
|
![]() ![]() Type: Designer Alignment: Chaotic Neutral |
I feel like I'm almost breaking a rule, but I've updated this script quite a bit with several new features (see the pictures in the main post for reference).
First of all, for the simple additions, I've added several commands to work the same as the old commands. For alignment, \al, \ac, and \ar may be used. For flipping the face, \f> may be used to flip it and \f< may be used to "unflip" it, or return it to it's normal direction. For "swapping" the face, or changing which side it's on, \s> may be used and \s< will return it to the default position. For transparency, \t[x] may now be used. For saving the face settings and using it in the next textbox, \k may be used. One important change to note is that the old \ali[x:y] command had to be changed. It is now \pos[x:y]. You can now use larger and smaller sized face sets in the text box. They follow the same 8 panel restriction as the default facesets unless you add "$" to the graphic name, similar to character sets. In order to use differently sized faces in other places, advanced mode must be enabled (see below). Advanced Mode: There are several other changes that require advanced mode to be enabled before they take effect. These are grouped into 3 categories and can be individually turned on and off. Turning them on may cause the script to lose some compatibility. First of all, there are 4 new text based commands that add features to the text box. \icon[x] can be used to display an icon in the text box. \b can be used to bold all following text and used again to cancel bold text. \i can be used to make text italic or return it to normal. \fi[x] is a bit of an odd command. This will cause the face displayed to change in the text box. This will allow you to change a face's emotions in the middle of a sentence. To use any of these command, the Text Mod option must be enabled. Second, you have the option to change how a text's shadow is displayed. You must first choose a display type (1 for dynamic shadow, 2 for outlined text, 0 turns this option off completely). If dynamic shadow is selected, you can move the position of the shadow around to display more or less as you please. The shadow color option will change the color of text's shadow or border. Finally, you have the option to use the new and improved faces system. This system changes how facesets are handled and you will honestly probably not see any difference with the default face sets. This option will allow you to use facesets larger and smaller than the default values, though you are still restricted to 8 faces per set. As with the text box faces, you can also use "$" in the graphic name to use a single graphic for a single face. I also feel the need to point out that one of the added pictures shows a portrait style face and a smaller than normal text box. To do this, change the "DEFAULT_FACE_LAY" option to false and set the "TEXT_OFFSET" to a positive number. The textbox will automatically be shortened by that number of pixels. As far as I can tell, alignment and other features are adjusted accordingly, but it is still worth being careful how you use this feature. Advanced mode does NOT have to be enabled to do this. -------------------- My scripts. Feel free to use and abuse. - Slo-mo Script / Frame Rate Script - - Animated Battler Graphics Script - - Lock Picking Script - - Simple Text Alignment and Face Control Script - |
|
|
|
Apr 8 2012, 09:05 PM
Post
#5
|
|
|
...now loading... ![]() Type: Designer Alignment: Unaligned |
I am going to try this out but why did you not include the link to Yanfly's CMS too since it is required for this?
-------------------- |
|
|
|
Apr 8 2012, 10:14 PM
Post
#6
|
|
![]() ![]() Type: Designer Alignment: Chaotic Neutral |
It's not required. It's completely optional. That and Yanfly's CMS will not work with this script while advanced mode is enabled.
-------------------- My scripts. Feel free to use and abuse. - Slo-mo Script / Frame Rate Script - - Animated Battler Graphics Script - - Lock Picking Script - - Simple Text Alignment and Face Control Script - |
|
|
|
May 16 2013, 01:18 PM
Post
#7
|
|
![]() Type: Undisclosed |
I used your script and a error message appears.
![]() It appeared when i tryed to test my game. Just before the game starts. |
|
|
|
May 16 2013, 11:35 PM
Post
#8
|
|
![]() If you're reading THIS, you're not reading THIS. ![]() Type: Undisclosed Alignment: Neutral Good |
You're using Ace, and this script is incompatible with Ace.
You can ask it to be converted to RGSS3 in this forum. -------------------- My Works:
I have to make another support bar for my VX project, but while there isn't one, come here. ![]() ![]() My script, Improved Window_Status. I should make a bar for it too! I support: ![]() - I ORDER you to play this!![]() ![]() Open the spoiler if you're new to the forum: Spoiler: |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 18th June 2013 - 08:32 PM |
|
|