Catalog module

A convenience module for accessing TRX catalog IDs.

Structures

  • trx.catalog.objects

    This table contains each TRX object ID. Names match those defined in catalog_objects.csv, with the O_ prefix stripped and lowercased.
    Examples:

    • if item.object_id == trx.catalog.objects.wolf then ...
  • trx.catalog.flip_effects

    This table contains each TRX flip effect action ID. Names match those defined in catalog_item_actions.csv, with the ITEM_ACTION_ prefix stripped and lowercased.
    Examples:

    • trx.rooms.flip_effect(trx.catalog.flip_effects.floor_shake, 10)
  • trx.catalog.lara_states

    This table contains each TRX Lara state ID. Names match those defined in catalog_lara_states.csv, with the LS_ prefix stripped and lowercased.
    Examples:

    • if lara.state == trx.catalog.lara_states.run then ...
  • trx.catalog.lara_anims

    This table contains each TRX Lara animation ID. Names match those defined in catalog_lara_anims.csv, with the LA_ prefix stripped and lowercased.
    Examples:

    • if anim == trx.catalog.lara_anims.jump_forward then ...
  • trx.catalog.music

    This table contains each TRX music track ID. Names match those defined in catalog_music.csv, with the MX_ prefix stripped and lowercased.
    Examples:

    • trx.music.play(trx.catalog.music.secret)
  • trx.catalog.samples

    This table contains each TRX sample ID. Names match those defined in catalog_samples.csv, with the SFX_ prefix stripped and lowercased.
    Examples:

    • trx.sound.play(trx.catalog.samples.lara_no)