Repository navigation
Hand weapon sold event
Triggered when selling a 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 sell 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 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 hand weapon sold grade} - The weapon's grade
-
{INT:EDDI hand weapon sold mods} - The weapon's modifications (as objects)
-
{TXT:EDDI hand weapon sold mods <index> invariant name} - The invariant English name.
-
{TXT:EDDI hand weapon sold mods <index> name} - The localized name.
-
{INT:EDDI hand weapon sold price} - The weapon's sell price
-
{TXT:EDDI hand weapon sold weapon invariant name} - The invariant English name.
-
{TXT:EDDI hand weapon sold weapon manufacturer name} - The manufacturer name
-
{TXT:EDDI hand weapon sold weapon manufacturer phoneticname} - The phonetic name of the manufacturer, if it is known
-
{TXT:EDDI hand weapon sold weapon name} - The localized name.
-
{INT:EDDI hand weapon sold weapon price} - The weapon's standard grade 1 price
-
{TXT:EDDI hand weapon sold weapon type invariant name} - The invariant English name.
-
{TXT:EDDI hand weapon sold weapon type name} - The localized name.
For more details on VoiceAttack integration, see https://github.com/EDCD/EDDI/wiki/VoiceAttack-Integration.