Global

Members

MATTIE

Auto-backup system that creates save snapshots before and after each battle encounter.
Stores up to 50 rolling backups per save slot in save/autobackups/file{id}/
Filenames: "{timestamp} - before enemy - {troopName}.rpgsave" / "{timestamp} - after enemy - {troopName}.rpgsave"

MATTIE

Recovery UI for the auto-backup system.
Provides a scene accessible from the multiplayer main menu to browse and restore battle backups.

MATTIE_ModManager

By default mod's cannot load anything outside of their folder, all dependencies must be included within the mods folder.

Yanfly

either the namespace for yanfly or false if it does not exist. This is for comparability changes in other files

constant maxDepthForWidthSplit

the max depth to go to for width/height based splitting

Methods

BattleLog()

log info with the proper conditionals

Window_Honey()

the honey window for silly mode, this can be used for any bar, just override it and do some basic work

createBattleSeed(action, subject, target, callIndex) → {number}

Create a deterministic seed from shared battle state.
Both host and client derive the same seed for the same action invocation.

Parameters:
Name Type Description
action Game_Action
subject Game_Battler
target Game_Battler
callIndex number

per-turn invocation counter

Returns:
number

forceParamValue(target, targetId, val)

force a specific prarm to be a specific value

Parameters:
Name Type Description
target Game_BattlerBase

the target game battler

targetId int

the target paramid

val int

the value to set it to

getRandomColor()

To Do:
  • remove this when done testing

godMode()

set all character parameters to 10,000

mulberry32(seed) → {function}

mulberry32 — a simple, fast 32-bit seeded PRNG.
Returns a function that produces deterministic floats in [0, 1).

Parameters:
Name Type Description
seed number

unsigned 32-bit integer

Returns:
function -

seeded Math.random replacement

onError(e)

the global method that handles all exceptions

Parameters:
Name Type Description
e Error

the error that was thrown

overrideErrorLoggers()

override the scene manager error functions with our own error screen instead

static printLoadingError(url)

Make loading error less obtrusive

Parameters:
Name Type Description
url String

The url of the resource failed to load

static render(stage)

Renders the stage to the game screen.

Parameters:
Name Type Description
stage Stage

The stage object to be rendered

restoreGodMode()

undo god mode and set params back to normal

targetedGodMode(enemy)

turn on god mode for an enemy (set parameters to 10,000)

Parameters:
Name Type Description
enemy Game_BattlerBase

toggleForceDash()

toggle on/off force dash for party

toggleFreeExtraTurn()

toggle on/off toggleFreeExtraTurn for party

toggleHealthLoss()

toggle on/off health loss for party

toggleHunger()

toggle on/off party hunger loss

toggleHyperSpeed()

toggle on/off force dash for party

toggleManaLoss()

toggle on/off mana loss for party

toggleMemberProp(propName, systemSwitchName, newFunc, onCb, offCb)

a generic toggle prop method that applies to all

Parameters:
Name Type Description
propName string

the name of the property to chance

systemSwitchName string

the name of the key in $gameSystem to store the bool of this toggle in

newFunc function

the func to replace the prop with

onCb function
offCb function

Type Definitions

dict