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.
Script: download here
Place this script below Materials and above Main
In your show text command, use the convert code
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.