Skip to content

Module swapped event

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

Triggered when modules are swapped between slots on the ship.

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.frommodule} - The module (object) from which the swap was initiated

  • {event.frommodule.ammoinclip}

  • {event.frommodule.ammoinhopper}

  • {event.frommodule.class}

  • {event.frommodule.clipcapacity}

  • {event.frommodule.enabled}

  • {event.frommodule.engineerlevel}

  • {event.frommodule.engineerquality}

  • {event.frommodule.grade}

  • {event.frommodule.health}

  • {event.frommodule.hoppercapacity}

  • {event.frommodule.hot}

  • {event.frommodule.invariantName}

  • {event.frommodule.modification}

  • {event.frommodule.modified}

  • {event.frommodule.mount}

  • {event.frommodule.name}

  • {event.frommodule.position}

  • {event.frommodule.power}

  • {event.frommodule.price}

  • {event.frommodule.priority}

  • {event.frommodule.value}

  • {event.fromslot} - The slot from which the swap was initiated

  • {event.ship} - The ship for which the module was swapped

  • {event.shipid} - The ID of the ship for which the module was swapped

  • {event.tomodule} - The module (object) to which the swap was finalised

  • {event.tomodule.ammoinclip}

  • {event.tomodule.ammoinhopper}

  • {event.tomodule.class}

  • {event.tomodule.clipcapacity}

  • {event.tomodule.enabled}

  • {event.tomodule.engineerlevel}

  • {event.tomodule.engineerquality}

  • {event.tomodule.grade}

  • {event.tomodule.health}

  • {event.tomodule.hoppercapacity}

  • {event.tomodule.hot}

  • {event.tomodule.invariantName}

  • {event.tomodule.modification}

  • {event.tomodule.modified}

  • {event.tomodule.mount}

  • {event.tomodule.name}

  • {event.tomodule.position}

  • {event.tomodule.power}

  • {event.tomodule.price}

  • {event.tomodule.priority}

  • {event.tomodule.value}

  • {event.toslot} - The slot to which the swap was finalised

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

The following VoiceAttack variables are available for this event:

  • {INT:EDDI module swapped frommodule ammoinclip}

  • {INT:EDDI module swapped frommodule ammoinhopper}

  • {INT:EDDI module swapped frommodule class}

  • {INT:EDDI module swapped frommodule clipcapacity}

  • {BOOL:EDDI module swapped frommodule enabled}

  • {INT:EDDI module swapped frommodule engineerlevel}

  • {DEC:EDDI module swapped frommodule engineerquality}

  • {TXT:EDDI module swapped frommodule grade}

  • {DEC:EDDI module swapped frommodule health}

  • {INT:EDDI module swapped frommodule hoppercapacity}

  • {BOOL:EDDI module swapped frommodule hot}

  • {TXT:EDDI module swapped frommodule invariant name}

  • {TXT:EDDI module swapped frommodule modification}

  • {BOOL:EDDI module swapped frommodule modified}

  • {TXT:EDDI module swapped frommodule mount}

  • {TXT:EDDI module swapped frommodule name}

  • {INT:EDDI module swapped frommodule position}

  • {DEC:EDDI module swapped frommodule power}

  • {DEC:EDDI module swapped frommodule price}

  • {INT:EDDI module swapped frommodule priority}

  • {DEC:EDDI module swapped frommodule value}

  • {TXT:EDDI module swapped fromslot} - The slot from which the swap was initiated

  • {TXT:EDDI module swapped ship} - The ship for which the module was swapped

  • {INT:EDDI module swapped shipid} - The ID of the ship for which the module was swapped

  • {INT:EDDI module swapped tomodule ammoinclip}

  • {INT:EDDI module swapped tomodule ammoinhopper}

  • {INT:EDDI module swapped tomodule class}

  • {INT:EDDI module swapped tomodule clipcapacity}

  • {BOOL:EDDI module swapped tomodule enabled}

  • {INT:EDDI module swapped tomodule engineerlevel}

  • {DEC:EDDI module swapped tomodule engineerquality}

  • {TXT:EDDI module swapped tomodule grade}

  • {DEC:EDDI module swapped tomodule health}

  • {INT:EDDI module swapped tomodule hoppercapacity}

  • {BOOL:EDDI module swapped tomodule hot}

  • {TXT:EDDI module swapped tomodule invariant name}

  • {TXT:EDDI module swapped tomodule modification}

  • {BOOL:EDDI module swapped tomodule modified}

  • {TXT:EDDI module swapped tomodule mount}

  • {TXT:EDDI module swapped tomodule name}

  • {INT:EDDI module swapped tomodule position}

  • {DEC:EDDI module swapped tomodule power}

  • {DEC:EDDI module swapped tomodule price}

  • {INT:EDDI module swapped tomodule priority}

  • {DEC:EDDI module swapped tomodule value}

  • {TXT:EDDI module swapped toslot} - The slot to which the swap was finalised

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

Clone this wiki locally