Skip to content

Data voucher redeemed event

Tkael edited this page Jun 20, 2021 · 10 revisions

Triggered when you redeem a data 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

  • {event.rewards[<index>].amount}

  • {event.rewards[<index>].faction}

To respond to this event in VoiceAttack, create a command entitled ((EDDI data 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 data voucher redeemed amount} - The amount rewarded (after any broker fees)

  • {DEC:EDDI data voucher redeemed brokerpercentage} - Broker precentage fee (if paid via a Broker)

  • {INT:EDDI data voucher redeemed rewards} - The rewards obtained broken down by faction

  • {DEC:EDDI data voucher redeemed rewards <index> amount}

  • {TXT:EDDI data voucher redeemed rewards <index> faction}

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

Clone this wiki locally