Skip to content

Material inventory event

T'kael edited this page Aug 2, 2026 · 10 revisions

Triggered when you obtain an inventory of your current materials.

Where values are indexed (the compartments on a ship for example), the index will be represented by '<index>'. For VoiceAttack, a variable with the root name of the indexed array shall identify the total number of entries in the array. For example, if compartments 1 and 2 are available then the value of the corresponding 'compartments' variable will be 2.

When using this event in the Speech responder the information about this event is available under the event object. The available variables are as follows:

  • {event.inventory} - The materials in your inventory (as objects)

  • {event.inventory[<index>].amount} - the amount

  • {event.inventory[<index>].category} - the material's localized category

  • {event.inventory[<index>].desired} - your desired amount

  • {event.inventory[<index>].material} - the material's localized name

  • {event.inventory[<index>].maximum} - your maximum amount

  • {event.inventory[<index>].minimum} - your minimum amount

  • {event.inventory[<index>].Rarity} - the material's rarity, as an object

  • {event.inventory[<index>].Rarity.invariantName} - The invariant English name.

  • {event.inventory[<index>].Rarity.level} - the level of the rarity (0 == Very common, 5 == Very rare)

  • {event.inventory[<index>].Rarity.name} - The localized name.

To respond to this event in VoiceAttack, create a command entitled ((EDDI material inventory)). VoiceAttack variables will be generated to allow you to access the event information.

The following VoiceAttack variables are available for this event:

  • {INT:EDDI material inventory} - The materials in your inventory (as objects)

  • {INT:EDDI material inventory <index> amount} - the amount

  • {TXT:EDDI material inventory <index> category} - the material's localized category

  • {INT:EDDI material inventory <index> desired} - your desired amount

  • {TXT:EDDI material inventory <index> material} - the material's localized name

  • {INT:EDDI material inventory <index> maximum} - your maximum amount

  • {INT:EDDI material inventory <index> minimum} - your minimum amount

  • {TXT:EDDI material inventory <index> rarity invariant name} - The invariant English name.

  • {INT:EDDI material inventory <index> rarity level} - the level of the rarity (0 == Very common, 5 == Very rare)

  • {TXT:EDDI material inventory <index> rarity name} - The localized name.

For more details on VoiceAttack integration, see https://github.com/EDCD/EDDI/wiki/VoiceAttack-Integration.

Clone this wiki locally