# Difference between revisions of "MV Formula Library"

From HimeWorks

Line 2: | Line 2: | ||

A formula may contain special [[formula variables]] that you can use to craft your formulas. | A formula may contain special [[formula variables]] that you can use to craft your formulas. | ||

− | |||

− | |||

− | |||

− | |||

− | |||

==Damage Formulas== | ==Damage Formulas== | ||

Line 18: | Line 13: | ||

* v - game variables (equivalent to $gameVariables) | * v - game variables (equivalent to $gameVariables) | ||

− | === | + | ===Common MV Formulas=== |

+ | |||

+ | ... | ||

+ | |||

+ | ==Related Topics== | ||

+ | * [[Dungeons and Dragons Engine/D&D Damage Formulas||D&D Damage Formulas]] | ||

+ | * [[XP Formula Library]] |

## Revision as of 15:58, 19 February 2016

Formulas are Javascript expressions that are evaluated at run-time. You can use them in damage formulas to determine how much damage you inflict with a skill, or you can use them in script calls to perform certain functions that aren't provided through the event interface by default.

A formula may contain special formula variables that you can use to craft your formulas.

## Damage Formulas

Damage formulas by default are used in Skills and Items, and are primarily used to determine how much base damage the action will inflict.

The following formula variables are available:

- a - user of the action
- b - target of the action
- v - game variables (equivalent to $gameVariables)

### Common MV Formulas

...