The save slots, and starting or reading a saved game.
Which set of save slots a slot belongs to.
trx.savegame.Pool.NORMAL = 0trx.savegame.Pool.QUICK = 1Slot number within the pool. For the quick pool this is the on-screen order. Counted from 1.
trx.savegame.slot_count([pool])
How many slots a pool has. The quick pool counts only the slots that hold a save, which is how it is shown and addressed.
Parameters:
pool (trx.savegame.Pool, optional). Which set of slots to look in. Defaults to NORMAL.Returns:
trx.savegame.is_free(slot_num, [pool])
Whether a slot holds no save.
Parameters:
slot_num (trx.savegame.SlotNum).pool (trx.savegame.Pool, optional). Which set of slots to look in. Defaults to NORMAL.Returns:
trx.savegame.load(slot_num, [pool])
Starts the saved game in a slot. The load happens once the game flow picks it up, not on the call.
Parameters:
slot_num (trx.savegame.SlotNum).pool (trx.savegame.Pool, optional). Which set of slots to look in. Defaults to NORMAL.Example:
trx.savegame.load(1)
trx.savegame.save([slot_num], [pool])
Writes a saved game to a slot. A quick save with no slot number goes to the next slot in the rotation; with one, it saves to the slot named.
Parameters:
slot_num (trx.savegame.SlotNum, optional). The quick pool uses the next slot in its rotation when it is omitted.pool (trx.savegame.Pool, optional). Which set of slots to look in. Defaults to NORMAL.Returns:
false means the quick pool had no slot.Example:
trx.savegame.save(1)