A downloadable tool

Download NowName your own price

This plugin for Rpg Maker MZ and MV allows you to create escape codes for messages (or any text box that escape characters) that changes to X possible options depending on a variable value.

Years ago I was looking for an easier way to use pronouns and correctly treating players than using eternal conditional branches and that stuff.

Although my initial idea was for gender it can serve other purposes.


Instructions

  • You can create as many escape codes as you want. Make sure to not overwrite other existing ones (some info about this in the plugin help section).

Write the escape code you want to use (configured from parameters) and between '{' and '}' write the options you want in order of the variable value, use '|' to separate each option. Make sure to write all options.

\x{option1|option2|option3}

Examples:

For the message "\x{She|He|They} is a cutie":
If the variable value is 0 the output will be => "She is a cutie"
If the variable value is 1 the output will be => "He is a cutie"
If the variable value is 2 the output will be => "They is a cutie"
For the message "Hi \x{potato|cauliflower|lovely chocolate}!":
If the variable value is 0 the output will be => "Hi potato!"
If the variable value is 1 the output will be => "Hi cauliflower!"
If the variable value is 2 the output will be => "Hi lovely chocolate!"


You can also use it directly behind a word and/or putting an empty option. Useful in languages that have differenced nouns for feminine, etc.

(Spanish sentence but you get the point)
For the message "\x{El|La|Le} doctor\x{|a|e}":
If the variable value is 0 the output will be => "El doctor"
If the variable value is 1 the output will be =>; "La doctora"
If the variable value is 2 the output will be => "Le doctore"

You can use other escape codes inside an option, like \v[x] or my other plugin Formula Escape Code:


"It \x{inflicts \c[18]\f{a.mat + 5} fire damage|heals \c[3]\v[5] HP|inflicts \c[17]\f{a.mat + 999} dark damage} \c[0]."



  • Why use '{ }' instead of '[ ]' to wrap the options?

It is easier to handle. Specially if you want to use other escape codes inside the options or it would not work correctly.


Compatibility

Tested and made for Rpg Maker MZ 1.7.0 and MV 1.6.2; this plugin may not work in older versions.

Put this plugin AFTER "FormulaEscapeCode" if it's installed.

Terms of Use

  • These plugins may be used in free or commercial games.
  • Lheku Qhukyaru’ must be given credit in your games.
  • You must link this website https://lhekussanctuary.wordpress.com/.
  • Do NOT change the filename, parameters, and information of the plugin.
  • You are NOT allowed to redistribute these plugins.
  • You may NOT take code for your own released plugins without credit.
  • You are allowed to edit the code as long as it’s for your own project.
  • You CANNOT use any of these resources for NFT or any related or similar type of games.

You can also check them at:

https://lhekussanctuary.wordpress.com/tos


Changelog

V1.11 (21/10/2021) -> Wrap characters '[]' changed to '{}' to fix bugs using other escape codes inside options 
V1.10 (13/09/2021) -> Rewritten version
V1.00 (?) -> Basic version I found in my pc getting dust

Updated 1 day ago
StatusReleased
CategoryTool
Rating
Rated 5.0 out of 5 stars
(2 total ratings)
AuthorLheku Qhukyaru
Tagsasset, plugin, RPG Maker, tool

Download

Download NowName your own price

Click download now to get access to the following files:

Lheku_OptionsEscapeCodes.js 8.4 kB
Lheku_OptionsEscapeCodes_MZ.js 8.3 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.