Message Eval Text (YEP)
Jump to navigation
Jump to search
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.
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.
Download
System
This is a plugin created for RPG Maker MV.
For help on how to install plugins, click here.
For help on how to update plugins, click here.
Got errors with your RPG Maker MV plugin? Click here.
Required Plugins
The following plugins are required in order to use this plugin.
Place the following plugins above this plugin located in the Plugin Manager.
Yanfly Engine Plugins
This plugin is a part of the Yanfly Engine Plugins library.
Introduction
This plugin requires YEP_MessageCore. Make sure this plugin is located under YEP_MessageCore in the plugin list. This is a small plugin that adds in a \evalText<<code>> text code for messages so that people can run JavaScript code and display it as text. This can be used to make calculations on the fly without needing to use Change Variable events prior to displaying the amount or to determine what kind of string would be displayed without making a plethora of Conditional Branch events.
Text Codes
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.
\evalText<<code>> - Replace 'code' with JavaScript code. It will run the code inside, then return whatever is the last line of the code that's ran. Here are some examples of what you could do this with: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Examples: --- \evalText<<$gameActors.actor(1).atk + $gameActors.actor(2).atk>> - Displays the sum of actor 1's ATK and actor 2's ATK. --- \evalText<<Math.min(1000, $gameParty.gold())>> - Displays either '1000' or the party's gold count, depending on which one is currently smaller. --- \evalText<<['His','Her','Its'][\v[123]]>> - Depending on the value of Variable 123, this will display 'His' if the Variable 123 value is equal to 0, 'Her' if the value is equal to 1, or 'Its' if the value is equal to 2. --- \evalText<<['Abel','Brandon','Chris'][$gameVariables.value(456)]>> - Depending on the value of Variable 456, this will display 'Abel' if the Variable 456 value is equal to 0, 'Brandon' if the value is equal to 1, or 'Chris' if the value is equal to 2.
Changelog
Version 1.00: - Finished Plugin!