Skip to content

Modules stored event

T'kael edited this page Jun 9, 2024 · 8 revisions

Triggered when you store multiple modules.

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.modules} - The stored modules (as objects)

  • {event.modules[<index>].ammoinclip}

  • {event.modules[<index>].ammoinhopper}

  • {event.modules[<index>].class}

  • {event.modules[<index>].clipcapacity}

  • {event.modules[<index>].enabled}

  • {event.modules[<index>].engineerlevel}

  • {event.modules[<index>].engineerquality}

  • {event.modules[<index>].grade}

  • {event.modules[<index>].health}

  • {event.modules[<index>].hoppercapacity}

  • {event.modules[<index>].hot}

  • {event.modules[<index>].invariantName}

  • {event.modules[<index>].modification}

  • {event.modules[<index>].modified}

  • {event.modules[<index>].mount}

  • {event.modules[<index>].name}

  • {event.modules[<index>].position}

  • {event.modules[<index>].power}

  • {event.modules[<index>].price}

  • {event.modules[<index>].priority}

  • {event.modules[<index>].value}

  • {event.ship} - The ship from which the modules were stored

  • {event.shipid} - The ID of the ship from which the module were stored

  • {event.slots} - The outfitting slots

  • {event.slots[<index>]}

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

The following VoiceAttack variables are available for this event:

  • {INT:EDDI modules stored modules} - The stored modules (as objects)

  • {INT:EDDI modules stored modules <index> ammoinclip}

  • {INT:EDDI modules stored modules <index> ammoinhopper}

  • {INT:EDDI modules stored modules <index> class}

  • {INT:EDDI modules stored modules <index> clipcapacity}

  • {BOOL:EDDI modules stored modules <index> enabled}

  • {INT:EDDI modules stored modules <index> engineerlevel}

  • {DEC:EDDI modules stored modules <index> engineerquality}

  • {TXT:EDDI modules stored modules <index> grade}

  • {DEC:EDDI modules stored modules <index> health}

  • {INT:EDDI modules stored modules <index> hoppercapacity}

  • {BOOL:EDDI modules stored modules <index> hot}

  • {TXT:EDDI modules stored modules <index> invariant name}

  • {TXT:EDDI modules stored modules <index> modification}

  • {BOOL:EDDI modules stored modules <index> modified}

  • {TXT:EDDI modules stored modules <index> mount}

  • {TXT:EDDI modules stored modules <index> name}

  • {INT:EDDI modules stored modules <index> position}

  • {DEC:EDDI modules stored modules <index> power}

  • {DEC:EDDI modules stored modules <index> price}

  • {INT:EDDI modules stored modules <index> priority}

  • {DEC:EDDI modules stored modules <index> value}

  • {TXT:EDDI modules stored ship} - The ship from which the modules were stored

  • {INT:EDDI modules stored shipid} - The ID of the ship from which the module were stored

  • {INT:EDDI modules stored slots} - The outfitting slots

  • {TXT:EDDI modules stored slots <index>}

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

Clone this wiki locally