-
Notifications
You must be signed in to change notification settings - Fork 82
Trade voucher redeemed event
Triggered when you redeem a trade voucher.
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.amount} - The amount rewarded (after any broker fees)
-
{event.brokerpercentage} - Broker precentage fee (if paid via a Broker)
-
{event.rewards} - The rewards obtained broken down by faction (as a list of Rewards objects)
-
{event.rewards[<index>].amount}
-
{event.rewards[<index>].faction}
To respond to this event in VoiceAttack, create a command entitled ((EDDI trade voucher redeemed)). VoiceAttack variables will be generated to allow you to access the event information.
The following VoiceAttack variables are available for this event:
-
{DEC:EDDI trade voucher redeemed amount} - The amount rewarded (after any broker fees)
-
{DEC:EDDI trade voucher redeemed brokerpercentage} - Broker precentage fee (if paid via a Broker)
-
{INT:EDDI trade voucher redeemed rewards} - The rewards obtained broken down by faction (as a list of Rewards objects)
-
{DEC:EDDI trade voucher redeemed rewards <index> amount}
-
{TXT:EDDI trade voucher redeemed rewards <index> faction}
For more details on VoiceAttack integration, see https://github.com/EDCD/EDDI/wiki/VoiceAttack-Integration.