The mods the game was built with, and which one is loaded.
trx.mod.list (a list of trx.mod.Mod). The mods the game was built with, counted from one. (read-only)trx.mod.current (trx.mod.Mod). The loaded mod. (read-only)What kind of mod it is.
trx.mod.Type.BASE_GAME = 0trx.mod.Type.EXPANSION_PACK = 1trx.mod.Type.MISC = 2trx.mod.Type.DIRECT_LEVEL = 3trx.mod.Type.CUSTOM = 4A mod the game can run. Everything on it is read-only.
Handles are live references: if the underlying object is destroyed, using the handle raises an error rather than silently reading an unrelated one.
Properties:
base_mod: string. The mod this one builds on, or nil if it stands alone. (read-only)engine_version: integer. Which Tomb Raider the mod runs on. (read-only)is_available: boolean. Whether the mod's files are present. (read-only)is_valid: boolean. Whether the mod can be loaded. (read-only)name: string. The mod's identifier, as trx.mod.switch takes it. (read-only)title: string. The mod's name, as shown to the player. (read-only)type: trx.mod.Type. What kind of mod it is. (read-only)trx.mod.switch(mod)
Restarts the game into another mod. The switch happens once the game flow picks it up, not on the call.
Parameters:
mod (any). A trx.mod.Mod or a mod name.Returns:
false leaves the game where it is.Example:
trx.mod.switch("arabian-nights")