Skip to content

Commodity purchased event

Tkael edited this page Dec 28, 2020 · 10 revisions

Triggered when you buy a commodity from the markets. 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

  • marketid The market ID of the purchased commodity

  • commodity The name of the purchased commodity

  • amount The amount of the purchased commodity

  • price The price paid per unit of the purchased commodity

To respond to this event in VoiceAttack, create a command entitled ((EDDI commodity purchased)). The event information can be accessed using the following VoiceAttack variables

  • {INT:EDDI commodity purchased amount} The amount of the purchased commodity
  • {TXT:EDDI commodity purchased commodity} The name of the purchased commodity
  • {DEC:EDDI commodity purchased marketid} The market ID of the purchased commodity
  • {INT:EDDI commodity purchased price} The price paid per unit of the purchased commodity

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

Clone this wiki locally