Template String (${[JavaScript Literal]} in a text message)

hajimehoshi

メンバー
Veteran
Joined
Oct 27, 2015
Messages
35
Reaction score
33
First Language
Japanese
Hi all,

I've created a 'Template String' plugin.

Source: https://github.com/hajimehoshi/rpgmmv/blob/master/HajimeHoshi_TemplateString.js

Screen Shot 1 (editor):



Screen Shot 2 (result):



You can use ${[JavaScript literal]} at a text message. Template Strings are evaluated ahead of resolving escape characters (like \N[...]).

 

This template string is NOT compatible with ES6 template literal. For example, in this template string, braces ('{' and '}') must be paired, but ES6 doesn't require that.

 

Enjoy!
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

buinguyenhoangtho wrote on fizzly's profile.
Hello @fizzly, i would like to use your asset/ resource for my project ( is maybe commercial ). May i have your permission? Thanks you !
Working on breaking the limits of RPGMaker! :cool:
I have 470+ hours on RMMV but have only made a demo game, is this normal? :kaoswt: (I lose motivation a lot plus I use a 32gb laptop, so..)
I like Iron Maiden.
Benku wrote on Magnus0808's profile.
Hey man you helped me out a long time ago with a plugin i was wondering if you can help me out one more time since its literally the last thing i need help with if not is cool but id figured id ask you one more soild.

Forum statistics

Threads
95,427
Messages
929,082
Members
125,659
Latest member
AphoticAmaranth
Top