MV – Options Escape Codes plugin

This plugin allows you to change switch states, variables and call common events in more ways.

You can get it here:

Options Escape Codes – Rpg Maker MV plugin by Lheku Qhukyaru

This plugin for Rpg Maker 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:

Formula Escape Code – Rpg Maker MV plugin by Lheku Qhukyaru

"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 MV 1.6.2; this plugin may not work in older versions.

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

Leave a comment