Skip to content

Commodity sold event

Richard Buckle edited this page Nov 9, 2018 · 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

  • marketid The market ID of the commodity sold

  • commodity The name of the commodity sold

  • amount The amount of the commodity sold

  • price The price obtained per unit of the commodity sold

  • profit The number of credits profit per unit of the commodity sold

  • illegal True if the commodity is illegal at the place of sale

  • stolen True if the commodity was stolen

  • blackmarket True if the commodity was sold to a black market

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

  • {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
Clone this wiki locally