Difference between revisions of "Category:Text Codes (MV)"

From Yanfly.moe Wiki
Jump to navigation Jump to search
Line 24: Line 24:
 
\^ Do not wait for input after displaying the next.
 
\^ Do not wait for input after displaying the next.
 
</pre>
 
</pre>
 +
 +
For all the text codes shown below, you will require their respective plugins to be able to use them.
  
 
== [[Visual Novel Busts (Irina)|Visual Novel Busts]] ==
 
== [[Visual Novel Busts (Irina)|Visual Novel Busts]] ==

Revision as of 20:52, 24 June 2019

Welcome to the wiki! This is where you can find resources from Yanfly.moe, Ækashics.moe,
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.


ShowTextWindow.png

Text Codes are used in the Show Text event command. They are used to display things that text normally can't produce on its own, such as colors, get the name of a specific actor, change icons, and more.

RPG Maker MV already comes with text codes of its own:

\V[n]	Will be replaced with the value of the nth variable.
\N[n]	Will be replaced with the name of the nth actor.
\P[n]	Will be replaced by the name of the nth (arranged order) party member.
\G	Will be replaced by the currency unit.
\C[n]	Draw the subsequent text in the nth color. Text color conforms to the contents of the [Window.png] system image.
\I[n]	Draws the nth icon.
\{	Increases the text by 1 step.
\}	Decreases the text by 1 step.
\\	Replaced with the backslash character.
\$	Open the gold window.
\.	Wait for 1/4 second.
\|	Wait for 1 second.
\!	Wait for button input.
\>	Display remaining text on same line all at once.
\<	Cancel the effect that displays text all at once.
\^	Do not wait for input after displaying the next.

For all the text codes shown below, you will require their respective plugins to be able to use them.

Visual Novel Busts

Displaying a Bust

Does exactly what it means, display a bust. There are 11 busts that can be controlled. 0 is the Message Window's bust graphic. 1 through 10 are the busts that are shown on the screen behind the Message Window.

Insert [BUST] into the filenames of face graphics and they will be setup automatically to change as the bust graphic. Harold.png will become Harold[BUST].png. This makes it unnecessary for you to use \bust[0] every time you want to set a bust to the message window itself. This only works for images in the img/faces/ folder.

Text Code:
     \bust[id]
     - Requirement: Select a face graphic.
     - Replace id with the bust ID you want to implant the face graphic on.
       - 0 if you want to use the message bust.
       - 1 through 10 if you want to use the screen busts.
     - Examples:
       - \bust[0]
       - \bust[1]
Clear

Clearing a bust removes it from view and resets it to the default settings so that the next time it's used, it will be a fresh slate. This is done automatically for message busts after the Message Window closes. A plugin parameter setting can be turned on to make all busts clear after an event finishes running.

Text Codes:
     \bustClear[id, duration]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - (Optional) Replace duration with how long it takes to clear.
       - If no duration is used, then use the value in the plugin parameters
     - Examples:
       - \bustClear[0]
       - \bustClear[2, 20]
Expressions

If you have set up a bust to use expressions, you can use this text code to change the expression of the bust. Please refer to the "Expression List" part of the help section up above to learn how to set up busts to make an expression sheet.

Text Codes:
     \bustExp[id, expression]
     \bustExpression[id, expression]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - Replace expression with either a number index or the string that is
       associated with that expression to display the wanted expression.
     - Examples:
       - \bustExp[0, 1]
       - \bustExpression[2, Angry]
Battle Animations

You can play battle animations on the busts to depict actions, emotions, whatever you want them to do. These will play the battle animation only once before closing out.

Text Codes:
     \bustAni[id, ani, mirror, delay]
     \bustAnimation[id, ani, mirror, delay]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - Replace ani with the ID of the battle animation
       - Alternatively, you can type out the battle animation's name, too.
     - (Optional) Replace mirror with true/face to mirror the animation.
     - (Optional) Replace delay with the frames to wait before playing.
     - Examples:
       - \bustAni[0, 5]
       - \bustAnimation[2, Healing One 2, true, 20]
Repeating Battle Animations

Play battle animations repeatedly instead of one time. Otherwise, this is the same as playing regular battle animations. Repeating animations will stop automatically for message busts when the window closes. For screen busts, they will vanish once the event terminates.

Text Codes:
     \bustRepAni[id, ani, mirror, delay]
     \bustRepeatAnimation[id, ani, mirror, delay]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - Replace ani with the ID of the battle animation
       - Alternatively, you can type out the battle animation's name, too.
     - (Optional) Replace mirror with true/face to mirror the animation.
     - (Optional) Replace delay with the frames to wait before playing.
     - Examples:
       - \bustRepAni[0, 5]
       - \bustRepeatingAnimation[2, Healing One 2, true, 20]
Clear Repeating Battle Animation

Put an end to a repeating battle animation because otherwise that is going to go on forever until the currently running event fully terminates.

Text Codes:
     \bustClearAni[id]
     \bustClearAnimation[id]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - Examples:
       - \bustClearAni[0]
       - \bustClearAnimation[3]
Move To

Allows bust sprites to move to specific x and y coordinates. This does not work for message busts as they're locked to the Message Window.

Text Code:
     \bustMoveTo[id, x, y, duration]
     - Replace id with the bust ID you want to affect.
       - 1 through 10 if you want to affect the screen busts.
     - Replace x with the x coordinate on the screen to move to.
     - Replace y with the y coordinate on the screen to move to.
     - (Optional) Replace duration with how long it takes to move there.
       - If no duration is used, then use the value in the plugin parameters
     - Examples:
       - \bustMoveTo[1, 640, 720]
       - \bustMoveTo[5, 100, 360, 60]
Move By

Allows bust sprites to move relative to their current position. This does not work for message busts as they're locked to the Message Window.

Text Codes:
     \bustMoveBy[id, +x, +y, duration]
     \bustMoveBy[id, -x, -y, duration]
     - Replace id with the bust ID you want to affect.
       - 1 through 10 if you want to affect the screen busts.
     - Replace x with how far left(-) or right(+) to move by.
     - Replace y with how far up(-) or down(+) to move by.
     - (Optional) Replace duration with how long it takes to move there.
       - If no duration is used, then use the value in the plugin parameters
     - Examples:
       - \bustMoveBy[1, -100, +0]
       - \bustMoveBy[5, +200, -50, 60]
Move Home

Returns a bust sprite back to the home position. For those moments you're too confused, lazy, or both to figure out how to bring a bust sprite back to the original coordinates it was in. This does not work for message busts as they're locked to the Message Window.

Text Code:
     \bustMoveHome[id, duration]
     - Replace id with the bust ID you want to affect.
       - 1 through 10 if you want to affect the screen busts.
     - (Optional) Replace duration with how long it takes to move there.
       - If no duration is used, then use the value in the plugin parameters
     - Examples:
       - \bustMoveHome[1]
       - \bustMoveHome[4, 60]
Move Type

Allows you to adjust the rate, acceleration, and easing when a bust moves.

Text Code:
     \bustMoveType[id, type]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - Replace type with the movement type. Look below for a list.
     - Examples:
       - \bustMoveType[0, Linear]
       - \bustMoveType[3, OutBounce]

Types:
     Linear ......... No easing, no acceleration

     InSine ......... Slight acceleration from zero to full speed
     OutSine ........ Slight deceleration at the end
     InOutSine ...... Slight accel. at beginning and slight decel. at end

     InQuad ......... LV2 Accelerating from zero velocity
     OutQuad ........ LV2 Decelerating to zero velocity
     InOutQuad ...... LV2 Acceleration until halfway, then deceleration

     InCubic ........ LV3 Accelerating from zero velocity
     OutCubic ....... LV3 Decelerating to zero velocity
     InOutCubic ..... LV3 Acceleration until halfway, then deceleration

     InQuart ........ LV4 Accelerating from zero velocity
     OutQuart ....... LV4 Decelerating to zero velocity
     InOutQuart ..... LV4 Acceleration until halfway, then deceleration

     InQuint ........ LV5 Accelerating from zero velocity
     OutQuint ....... LV5 Decelerating to zero velocity
     InOutQuint ..... LV5 Acceleration until halfway, then deceleration

     InExpo ......... Accelerate exponentially until finish
     OutExpo ........ Initial exponential acceleration slowing to stop
     InOutExpo ...... Exponential acceleration and deceleration

     InCirc ......... Increasing velocity until stop
     OutCirc ........ Start fast, decreasing velocity until stop
     InOutCirc ...... Fast increase in velocity, fast decrease in velocity

     InBack ......... Slow movement backwards then fast snap to finish
     OutBack ........ Fast snap to backwards point then slow to finish
     InOutBack ...... Back In, then Back Out

     InElastic ...... Bounces slowly then quickly to finish
     OutElastic ..... Fast acceleration, bounces to zero
     InOutElastic ... Slow start and end, two bounces sandwich a fast motion

     InBounce ....... Bounce increasing in velocity until completion
     OutBounce ...... Bounce to completion
     InOutBounce .... Bounce in and bounce out
Fade In, Fade Out

Fade in to 255 opacity or fade out 0 opacity. This can affect any bust and you can also declare the duration of the fading process.

Text Code:
     \bustFadeIn[id, duration]
     \bustFadeOut[id, duration]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - (Optional) Replace duration with how long it takes to fade in or out.
       - If no duration is used, then use the value in the plugin parameters
     - Examples:
       - \bustFadeIn[1]
       - \bustFadeOut[6, 40]
Opacity To

If you don't want to fully change a bust's opacity to either 0 or 255, set it to whatever opacity level you want instead.

Text Code:
     \bustOpacityTo[id, opacity, duration]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - Replace opacity with a number between 0 and 255 for how opaque it is.
     - (Optional) Replace duration with how long it takes to fade in or out.
       - If no duration is used, then use the value in the plugin parameters
     - Examples:
       - \bustOpacityTo[0, 128]
       - \bustOpacityTo[7, 64]
Opacity By

This changes the opacity level of a bust relative to its current opacity instead of needing to put in an exact value.

Text Code:
     \bustOpacityBy[id, +opacity, duration]
     \bustOpacityBy[id, -opacity, duration]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - Replace opacity with how much you wish to adjust the opacity by.
     - (Optional) Replace duration with how long it takes to change opacity.
       - If no duration is used, then use the value in the plugin parameters
     - Examples:
       - \bustOpacityBy[0, +32]
       - \bustOpacityBy[8, -64]
Slide In, Slide Out

Sliding In and Sliding Out is a small move and fade in/out combo that is based around the bust's home position. This makes busts look like they're fading into the scene or fading out of them.

Text Code:
     \bustSlideIn[id, duration]
     \bustSlideInFromLeft[id, duration]
     \bustSlideInFromRight[id, duration]
     \bustSlideOut[id, duration]
     \bustSlideOutToLeft[id, duration]
     \bustSlideOutToRight[id, duration]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - Use the FromLeft, FromRight, ToLeft, ToRight versions to control the
       direction the busts are going or leave it up to the plugin.
     - (Optional) Replace duration with how long it takes to slide in/out.
       - If no duration is used, then use the value in the plugin parameters
     - Examples:
       - \bustSlideIn[0]
       - \bustSlideOut[9, 20]
Mirror, Unmirror, MirrorToggle

Lets you set the bust sprite to mirror, unmirror, or toggle the mirror setting it currently has.

Text Code:
     \bustMirror[id]
     \bustUnmirror[id]
     \bustMirrorToggle[id]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - Examples:
       - \bustMirror[0]
       - \bustUnmirror[1]
       - \bustMirrorToggle[1]
Scale To

This lets you change the scale of the bust sprite to an exact amount. Now, I know that sprites with a negative value for scale flip over, but these text codes and script calls will disable that. If you want to mirror something, use the mirror text codes for it.

Text Code:
     \bustScaleTo[id, scale, duration]
     \bustScaleToX[id, scale, duration]
     \bustScaleToY[id, scale, duration]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - Replace scale with a number value on how to scale it.
       - 0.5 is 50%. 1.0 is 100%. 1.5 is 150%.
     - (Optional) Replace duration with how long it takes to scale.
       - If no duration is used, then use the value in the plugin parameters
     - Use the X and Y variations if you want to adjust those specifically
     - Examples:
       - \bustScaleTo[0, 1.0]
       - \bustScaleToX[2, 0.5, 20]
       - \bustScaleToY[4, 2.5, 60]
Scale By

This lets you change the scale of the bust sprite relative to its current scale value. This will work with an absolute value of the current scale to remove any confusion about how mirrored scaling works, so just treat a bust that is mirrored the same way you'd treat a bust that's not mirrored.

Text Code:
     \bustScaleBy[id, +scale, duration]
     \bustScaleByX[id, -scale, duration]
     \bustScaleByY[id, +scale, duration]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - Replace scale with a number value on how to scale it.
       - 0.5 is 50%. 1.0 is 100%. 1.5 is 150%.
     - (Optional) Replace duration with how long it takes to scale.
       - If no duration is used, then use the value in the plugin parameters
     - Use the X and Y variations if you want to adjust those specifically
     - Examples:
       - \bustScaleBy[0, -1.0]
       - \bustScaleByX[2, +0.5, 20]
       - \bustScaleByY[4, -2.5, 60]
Tone

Give busts a tone! Tones will tint the colors on a bust. The bust will then change its tint towards that tone over time.

Text Code:
     \bustTone[id, red, green, blue, gray, duration]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - Replace red with a number between -255 and 255.
     - Replace green with a number between -255 and 255.
     - Replace blue with a number between -255 and 255.
     - Replace gray with a number between 0 and 255.
     - (Optional) Replace duration with how long it takes to change tone.
       - If no duration is used, then use the value in the plugin parameters
     - Examples:
       - \bustTone[0, -68, -68, 0, 68]
       - \bustTone[5, -68, -68, -68, 0, 60]
Dim, Light

Dim and Light are preset tones that are primarily used for tinting busts. Usually visual novels will dim busts that aren't talking and light the busts that are. This is to speed up the process so that you don't have to type out a tone code every time. You can set the dim and light values in the plugin parameters. They'll also use the duration for tones if no duration is used to specify that specific dim or light tone change.

Text Code:
     \bustDim[id, duration]
     \bustLight[id, duration]
     - Replace id with the bust ID you want to affect.
       - 0 if you want to affect the message bust.
       - 1 through 10 if you want to affect the screen busts.
     - (Optional) Replace duration with how long it takes to change tone.
       - If no duration is used, then use the value in the plugin parameters
     - Examples:
       - \bustDim[0]
       - \bustLight[5, 60]