Backpack changed event - EDCD/EDDI GitHub Wiki
Triggered when there is any change to the contents of the suit backpack.
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.added} - The items added to your backpack (as a list of objects)
-
{event.added[<index>].amount} - The amount of the micro resource
-
{event.added[<index>].category} - The localized category of the micro resource
-
{event.added[<index>].invariantCategory} - The invariant category of the micro resource
-
{event.added[<index>].invariantName} - The invariant name of the micro resource
-
{event.added[<index>].name} - The localized name of the micro resource
-
{event.removed} - The items added to your backpack (as a list of objects)
-
{event.removed[<index>].amount} - The amount of the micro resource
-
{event.removed[<index>].category} - The localized category of the micro resource
-
{event.removed[<index>].invariantCategory} - The invariant category of the micro resource
-
{event.removed[<index>].invariantName} - The invariant name of the micro resource
-
{event.removed[<index>].name} - The localized name of the micro resource
To respond to this event in VoiceAttack, create a command entitled ((EDDI backpack changed)). VoiceAttack variables will be generated to allow you to access the event information.
The following VoiceAttack variables are available for this event:
-
{INT:EDDI backpack changed added} - The items added to your backpack (as a list of objects)
-
{INT:EDDI backpack changed added <index> amount} - The amount of the micro resource
-
{TXT:EDDI backpack changed added <index> category} - The localized category of the micro resource
-
{TXT:EDDI backpack changed added <index> invariant category} - The invariant category of the micro resource
-
{TXT:EDDI backpack changed added <index> invariant name} - The invariant name of the micro resource
-
{TXT:EDDI backpack changed added <index> name} - The localized name of the micro resource
-
{INT:EDDI backpack changed removed} - The items added to your backpack (as a list of objects)
-
{INT:EDDI backpack changed removed <index> amount} - The amount of the micro resource
-
{TXT:EDDI backpack changed removed <index> category} - The localized category of the micro resource
-
{TXT:EDDI backpack changed removed <index> invariant category} - The invariant category of the micro resource
-
{TXT:EDDI backpack changed removed <index> invariant name} - The invariant name of the micro resource
-
{TXT:EDDI backpack changed removed <index> name} - The localized name of the micro resource
For more details on VoiceAttack integration, see https://github.com/EDCD/EDDI/wiki/VoiceAttack-Integration.