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

X[ oh gawd.... I dropped my super expensive laptop on my hard tile floor! It still comes on and all, but now Im worried its gunna start screwing up in the near future.... I hope not, cant afford to replace stuff like that. :(
I wrote a nice animated preloading system for mv+mz today. It only supports graphic assets atm, should it support audio too? See it in action in my recent minigame @
I posted my first commercial game on the forums, and now waiting for approval.
fingers crossed.
TMW the air quality is so bad, your hair changes color every time you wash it. :LZYyuck:
Finished two animations today. :kaojoy:

Forum statistics

Threads
103,002
Messages
996,645
Members
134,484
Latest member
Gesonel
Top