Convert Code: Eval

convertCode_eval

This script adds a new convert code to your project called “eval”. You can use this to evaluate arbitrary formulas inside your show text commands.

Download

Script: download here

Installation

Place this script below Materials and above Main

Usage

In your show text command, use the convert code

eval<{FORMULA}>

The formula will be evaluated when the message is being processed and the
appropriate value will be displayed.

The following formula variables are available

p - game party
t - game troop
s - game switches
v - game variables

Note that the text is not automatically re-positioned to fill in the gaps.

You may also like...

4 Responses

  1. Alan says:

    But what if by chance I do not want to use the leader, what options do I have?

  2. RogueDeus says:

    This is a very convenient and exceptionally easy way to add any variable data to in game text. I am now using it to refer to database object names, and things likely to change in the future, without needing to hunt down every instance of old use.

    Also, there is a typo in the example eval. There is a ‘}’ instead of a ‘]’ at the end.

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax