Skip to content

Material inventory event

Tkael edited this page Nov 25, 2022 · 9 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}

  • {event.inventory[<index>].category}

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

  • {event.inventory[<index>].material}

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

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

  • {event.inventory[<index>].Rarity}

  • {event.inventory[<index>].Rarity.invariantName}

  • {event.inventory[<index>].Rarity.level}

  • {event.inventory[<index>].Rarity.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}

  • {TXT:EDDI material inventory <index> category}

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

  • {TXT:EDDI material inventory <index> material}

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

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

  • {TXT:EDDI material inventory <index> rarity invariant name}

  • {INT:EDDI material inventory <index> rarity level}

  • {TXT:EDDI material inventory <index> rarity name}

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

Clone this wiki locally