MV – Formula Escape Code plugin

This plugin allows you to give item slots to actors.

In battle they will only be able to use equipped items and not every one of the inventory.

You can get it here:

Formula Escape Code – Rpg Maker MV plugin by Lheku Qhukyaru

This plugin for Rpg Maker MV allows you to use formulas in text boxes that are calculated and replaces them with the result.

Useful if you want to show more detailed descriptions for skills.

 

Instructions

Use this escape codes as follow:

  • \f{x}

Where “x” is a formula. It uses “{” and “}” to be able to use \v[x] and other codes inside.

  • \formula

It shows the skill formula directly. It is like putting it inside \f{}. Take note that if the formula uses “b” or other undefined variables in that context, it won’t work.

  • \value or \value[x]

Where “x” is the id in the notetag. This only works using the notetag shown below.

 

Skill, item, weapon and armor notetags

<Value: form> 
It stores "form" formula in the id 0 for that item.
<Value id: form>
It stores "form" formula in the id "id" for that item.

This notetags are used for the code “\value[id]”.

You can just use “\value” to show the formula with id 0.

This helps you to not saturate description box when writting in it.

You can use the following variables in formulas:

  • a -> Actor, either the actor or the party leader if not aplicable.
  • p -> Game party. Equivalent to $gameParty.
  • pa[x] -> Party member with x being the id, it returns the actor  (starts at 1). Equivalent to $gameParty.members()[x-1].

Examples:

 

You can use \c[x] to give some fancy color first.

 

 

Remember that is in fact, code. So you can, for example,  round  that number with javascript functions to not show decimals.

 

Compatibility

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

 

Changelog

V1.02 (08/10/2021) -> Added parameters, error catching and value notetags
V1.01 (01/10/2021) -> Rewritten, basic version

Leave a comment