Skip to content

Commodity sold event

Tkael edited this page Jun 20, 2021 · 10 revisions

Triggered when you sell a commodity to 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:

  • {event.amount} - The amount of the commodity sold

  • {event.blackmarket} - True if the commodity was sold to a black market

  • {event.commodity} - The name of the commodity sold

  • {event.illegal} - True if the commodity is illegal at the place of sale

  • {event.marketid} - The market ID of the commodity sold

  • {event.price} - The price obtained per unit of the commodity sold

  • {event.profit} - The number of credits profit per unit of the commodity sold

  • {event.stolen} - True if the commodity was stolen

To respond to this event in VoiceAttack, create a command entitled ((EDDI commodity sold)). VoiceAttack variables will be generated to allow you to access the event information.

The following VoiceAttack variables are available for this event:

  • {INT:EDDI commodity sold amount} - The amount of the commodity sold

  • {BOOL:EDDI commodity sold blackmarket} - True if the commodity was sold to a black market

  • {TXT:EDDI commodity sold commodity} - The name of the commodity sold

  • {BOOL:EDDI commodity sold illegal} - True if the commodity is illegal at the place of sale

  • {DEC:EDDI commodity sold marketid} - The market ID of the commodity sold

  • {DEC:EDDI commodity sold price} - The price obtained per unit of the commodity sold

  • {DEC:EDDI commodity sold profit} - The number of credits profit per unit of the commodity sold

  • {BOOL:EDDI commodity sold stolen} - True if the commodity was stolen

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

Clone this wiki locally