-
Notifications
You must be signed in to change notification settings - Fork 82
Micro resources purchased event
Triggered when you buy micro resources.
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.price} - The total price paid for all micro resources
-
{event.resourceamounts} - A list of purchased micro resources with name, category, and amount for each
-
{event.resourceamounts[<index>].amount} - The amount of the micro resource
-
{event.resourceamounts[<index>].category} - The localized category of the micro resource
-
{event.resourceamounts[<index>].invariantCategory} - The invariant category of the micro resource
-
{event.resourceamounts[<index>].invariantName} - The invariant name of the micro resource
-
{event.resourceamounts[<index>].name} - The localized name of the micro resource
-
{event.totalamount} - The total count of micro resources purchased
To respond to this event in VoiceAttack, create a command entitled ((EDDI micro resources purchased)). VoiceAttack variables will be generated to allow you to access the event information.
The following VoiceAttack variables are available for this event:
-
{INT:EDDI micro resources purchased price} - The total price paid for all micro resources
-
{INT:EDDI micro resources purchased resourceamounts} - A list of purchased micro resources with name, category, and amount for each
-
{INT:EDDI micro resources purchased resourceamounts <index> amount} - The amount of the micro resource
-
{TXT:EDDI micro resources purchased resourceamounts <index> category} - The localized category of the micro resource
-
{TXT:EDDI micro resources purchased resourceamounts <index> invariant category} - The invariant category of the micro resource
-
{TXT:EDDI micro resources purchased resourceamounts <index> invariant name} - The invariant name of the micro resource
-
{TXT:EDDI micro resources purchased resourceamounts <index> name} - The localized name of the micro resource
-
{INT:EDDI micro resources purchased totalamount} - The total count of micro resources purchased
For more details on VoiceAttack integration, see https://github.com/EDCD/EDDI/wiki/VoiceAttack-Integration.