Home
The Insurgent's Forge - Modify existing formulas and add entirely new ones to the game via Lua.
Last updated
The Insurgent's Forge - Modify existing formulas and add entirely new ones to the game via Lua.
Last updated
Every action (e.g. Cure) uses a formula which ultimately determines what happens to both the caster and target. This includes:
Modifying stats such as hp, mp, mist, strength, etc.
Adding or removing a status effect or augment.
Adding an item to the player's inventory.
When an action will miss, be countered, etc.
and many many more.
A formula is the combination of one or more functions which are processed in a predetermined order.
Each function does one specific task and is usually unique. For example, one function could check if the target is immune to fire while the other calculates the amount of health the target should lose.
However, these functions are all hardcoded in the executable and cannot be modified or even reordered.
This mod allows modifying existing formulas and adding entirely new ones to the game via Lua.
Every single formula and its functions can be modified to the tiniest detail.
There are 6 modules that provide the ground framework for this mod. This includes:
Formulas: Specify which functions are executed and in what order.
Functions: Contain a series of statements that perform a specific task.
Classes: Simulate object oriented programming to help with creating easily readable and maintainable code in formula functions.
Helpers: Similar to functions, but are only defined once and can then be reused in various formula functions to avoid having to rewrite the same block code more than once.
Assemblies: Strings with a block of assembly code that can call in-game functions and more.
Middlewares: Control which functions are always executed before and after every formula.
These modules allow the creation of entirely new formulas very easily. Afterwards, you can assign it to an action or equipment via -> Battlepack Editor.