-
Notifications
You must be signed in to change notification settings - Fork 91
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}
-
{event.mods[<index>].name}
-
{event.price} - The weapon's sell price
-
{event.weapon} - The weapon, as an object
-
{event.weapon.invariantName}
-
{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}
-
{event.weapon.price} - The weapon's standard grade 1 price
-
{event.weapon.type} - The weapon's type, as an object
-
{event.weapon.type.invariantName}
-
{event.weapon.type.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}
-
{TXT:EDDI hand weapon sold mods <index> name}
-
{INT:EDDI hand weapon sold price} - The weapon's sell price
-
{TXT:EDDI hand weapon sold weapon invariant 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}
-
{INT:EDDI hand weapon sold weapon price} - The weapon's standard grade 1 price
-
{TXT:EDDI hand weapon sold weapon type invariant name}
-
{TXT:EDDI hand weapon sold weapon type name}
For more details on VoiceAttack integration, see https://github.com/EDCD/EDDI/wiki/VoiceAttack-Integration.