Skip to content

Hand weapon purchased event

T'kael edited this page Aug 2, 2026 · 2 revisions

Triggered when purchasing a new hand weapon.

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.grade} - The weapon's grade

  • {event.mods} - The weapon's modifications (as objects)

  • {event.mods[<index>].invariantName} - The invariant English name.

  • {event.mods[<index>].name} - The localized name.

  • {event.price} - The weapon's purchase price

  • {event.weapon} - The weapon, as an object

  • {event.weapon.invariantName} - The invariant English name.

  • {event.weapon.manufacturer} - The weapon's manufacturer, as an object

  • {event.weapon.manufacturer.name} - The manufacturer name

  • {event.weapon.manufacturer.phoneticname} - The phonetic name of the manufacturer, if it is known

  • {event.weapon.name} - The localized name.

  • {event.weapon.price} - The weapon's standard grade 1 price

  • {event.weapon.type} - The weapon's type, as an object

  • {event.weapon.type.invariantName} - The invariant English name.

  • {event.weapon.type.name} - The localized name.

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

The following VoiceAttack variables are available for this event:

  • {INT:EDDI hand weapon purchased grade} - The weapon's grade

  • {INT:EDDI hand weapon purchased mods} - The weapon's modifications (as objects)

  • {TXT:EDDI hand weapon purchased mods <index> invariant name} - The invariant English name.

  • {TXT:EDDI hand weapon purchased mods <index> name} - The localized name.

  • {INT:EDDI hand weapon purchased price} - The weapon's purchase price

  • {TXT:EDDI hand weapon purchased weapon invariant name} - The invariant English name.

  • {TXT:EDDI hand weapon purchased weapon manufacturer name} - The manufacturer name

  • {TXT:EDDI hand weapon purchased weapon manufacturer phoneticname} - The phonetic name of the manufacturer, if it is known

  • {TXT:EDDI hand weapon purchased weapon name} - The localized name.

  • {INT:EDDI hand weapon purchased weapon price} - The weapon's standard grade 1 price

  • {TXT:EDDI hand weapon purchased weapon type invariant name} - The invariant English name.

  • {TXT:EDDI hand weapon purchased weapon type name} - The localized name.

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

Clone this wiki locally