🌱
The Insurgent's Forge
  • Home
  • Getting Started
    • Setup
    • Resources
  • Overview
    • Configuration
      • Formulas
      • Functions
      • Classes
      • Helpers
      • Assemblies
      • Middlewares
      • Dependencies
      • Options
      • Errors
    • Improvements & Additions
    • Structures & Parameters
    • Formula Workflow
      • Combo
      • Counter
      • Area of Effect
      • Reserve Party Member
      • Reflect
      • Mist
      • Trap
      • Chain Benefit
      • Summon
      • Spawn
      • Gambit
    • Limitations
      • Animations
      • Status Effects & Augments
    • Notes
      • Flags
      • Loops
      • Function in a Function
    • Helpers
      • Add Augment
      • Add Status Effect
      • Apply Knockback
      • Get Active Party Member
      • Get Action Status Effects
      • Get Augment Duration
      • Get Battle Unit Keep
      • Get Battle Unit Keep By Focus
      • Get Battle Unit Work
      • Get Character Max Hp
      • Get Character Max Mp
      • Get Character Type
      • Get Elemental Affinities Match
      • Get Equipment Status Effects
      • Get Forced Poach Rarity
      • Get Forced Steal Rarity
      • Get Formula Proc Keep
      • Get Knockback Range
      • Get Location Mist Strength
      • Get Model Evade Types
      • Get One Hit Kill State
      • Get Random Number
      • Get Reflect Target
      • Get Remedy Status Effects
      • Get Status Effect Duration
      • Get Status Effect Tick Duration
      • Get Status Effects Match
      • Get Terrain Type
      • Get Weather
      • Is Interactable
      • Modify Content
      • Modify Gil
      • Modify Hp
      • Modify Mist Charges
      • Modify Mp
      • Modify Sky Pirates Den Stats
      • Refresh Stats
      • Remove Augment
      • Remove Status Effect
      • Set Level
      • Shift Elements
      • Show Combat Log
      • Show Number Text
      • Teleport Location
  • Support & Updates
    • Changelogs
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
    • Known Issues
    • FAQ
Powered by GitBook
On this page
  • Description
  • Features

Home

The Insurgent's Forge - Modify existing formulas and add entirely new ones to the game via Lua.

NextSetup

Last updated 5 months ago

Description

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.

Features

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.

The Insurgent's Toolkit