This is an old revision of the document!
this.game.includeMod(modName, callFunction = null, args = [])
Includes another mod of the same game. modName
must match the directory name of the mod. You may call a specific function with arguments immediately, or you can interest with the object class as you desire through this.game.mods[modName]
once it executes.
this.updateMapFiles(GNSFile, files = {})
Reads the byte data of a GNS file and replaces the sectors/files in the ModImg of that file to match the ones specified in files
with a format of { "OldMapPathA": "NewMapPathA", "OldMapPathB": "NewMapPathB" }
this.game.bindMapID(mapID, GNSFile)
Sets the link in BATTLE.BIN of a given map ID to point toward a map GNS of your choice. This allows you to use multiple versions of the same base map.