Formula Escape Code - Rpg Maker MZ/MV plugin
A downloadable tool
This plugin for Rpg Maker MZ and 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 MZ 1.7.0 and MV 1.6.2; this plugin may not work in older versions.
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.02 (08/10/2021) -> Added parameters, error catching and value notetags V1.01 (01/10/2021) -> Rewritten, basic version
Download
Click download now to get access to the following files:
Development log
- MZ plugin added!Jul 17, 2023
Leave a comment
Log in with itch.io to leave a comment.