Difference between revisions of "Message Eval Text (YEP)"

From Yanfly.moe Wiki
Jump to navigation Jump to search
(Created page with "{{MvPlugin |preview=<youtube>https://www.youtube.com/watch?v=OznjiRBwB78</youtube> |link1=<html><iframe src="https://itch.io/embed/398020" height="167" width="552" frameborder...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{MvPlugin
 
{{MvPlugin
|preview=<youtube>https://www.youtube.com/watch?v=OznjiRBwB78</youtube>
+
|preview = <youtube>https://www.youtube.com/watch?v=OznjiRBwB78</youtube>
|link1=<html><iframe src="https://itch.io/embed/398020" height="167" width="552" frameborder="0"></iframe></html>
+
|link2 = <html><iframe src="https://itch.io/embed/508096" height="167" width="552" frameborder="0"></iframe></html>
|link2=[http://yanfly.moe/plugins/en/YEP_X_MessageEvalText.js Mirror]
+
|link3 = <html><iframe src="https://itch.io/embed/398158" height="167" width="552" frameborder="0"></iframe></html>
  
 
}}
 
}}
 
[[Category:RPG Maker MV Core Plugins]]
 
[[Category:RPG Maker MV Core Plugins]]
  
{{ExtensionPluginsMV}}
+
{{RequiredPluginsMV}}
 
* [[ Message Core (YEP)|Message Core]]
 
* [[ Message Core (YEP)|Message Core]]
  
 
{{Yanfly Engine Plugins}}
 
{{Yanfly Engine Plugins}}
  
== Help File ==
+
== Introduction ==
  
  <nowiki>
+
  <nowiki>This plugin requires YEP_MessageCore. Make sure this plugin is located under
============================================================================
 
Introduction
 
============================================================================
 
 
 
This plugin requires YEP_MessageCore. Make sure this plugin is located under
 
 
YEP_MessageCore in the plugin list.
 
YEP_MessageCore in the plugin list.
  
Line 28: Line 23:
 
kind of string would be displayed without making a plethora of Conditional
 
kind of string would be displayed without making a plethora of Conditional
 
Branch events.
 
Branch events.
 +
</nowiki>
  
============================================================================
+
{{Text Codes MV}}
Text Code
 
============================================================================
 
  
\evalText<<code>>
+
<nowiki>\evalText<<code>>
 
- Replace 'code' with JavaScript code. It will run the code inside, then
 
- 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
 
return whatever is the last line of the code that's ran. Here are some
Line 66: Line 60:
 
Variable 456 value is equal to 0, 'Brandon' if the value is equal to 1, or
 
Variable 456 value is equal to 0, 'Brandon' if the value is equal to 1, or
 
'Chris' if the value is equal to 2.
 
'Chris' if the value is equal to 2.
 +
</nowiki>
  
============================================================================
+
== Changelog ==
Changelog
 
============================================================================
 
  
Version 1.00:
+
<nowiki>Version 1.00:
 
- Finished Plugin!
 
- Finished Plugin!
 +
</nowiki>
  
============================================================================
+
<!-- This is a comment, remove the arrows surrounding this for the categories you want to show -->
End of Helpfile
+
<!-- [[Category:RPG Maker MV Core Plugins]] -->
============================================================================
+
<!-- [[Category:RPG Maker MV Battle Plugins]] -->
</nowiki>
+
<!-- [[Category:RPG Maker MV Item Plugins]] -->
 +
<!-- [[Category:RPG Maker MV Skill Plugins]] -->
 +
<!-- [[Category:RPG Maker MV Equip Plugins]] -->
 +
<!-- [[Category:RPG Maker MV Status Menu Plugins]] -->
 +
<!-- [[Category:RPG Maker MV Gameplay Plugins]] -->
 +
<!-- [[Category:RPG Maker MV Movement Plugins]] -->
 +
<!-- [[Category:RPG Maker MV Quest Plugins]] -->
 +
<!-- [[Category:RPG Maker MV Options Plugins]] -->
 +
<!-- [[Category:RPG Maker MV Eventing Plugins]] -->
 +
[[Category:RPG Maker MV Utility Plugins]]
 +
<!-- [[Category:RPG Maker MV Mechanical Plugins]] -->
 +
<!-- [[Category:RPG Maker MV Visual Plugins]] -->
 +
<!-- [[Category:RPG Maker MV Menu Plugins]] -->
 +
[[Category:RPG Maker MV Message Plugins]]
 +
[[Category:RPG Maker MV Quality of Life Plugins]]
 +
<!-- [[Category:RPG Maker MV Plugin Tips & Tricks]] -->
 +
<!-- [[Category:Action Sequences (MV)]] -->
 +
<!-- [[Category:Main Menu Manager Integration (MV)]] -->
 +
<!-- [[Category:Notetags (MV)]] -->
 +
<!-- [[Category:Options Core Integration (MV)]] -->
 +
<!-- [[Category:Plugin Commands (MV)]] -->
 +
<!-- [[Category:Script Calls (MV)]] -->
 +
<!-- [[Category:Text Codes (MV)]] -->

Latest revision as of 10:38, 13 June 2020

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.



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.


Masterarbeit Writer

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

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.

\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!