Skip to content

Module swapped event

T'kael edited this page Aug 2, 2026 · 10 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} - only for weapons, this defines the amount of ammunition present in the clip during the last Loadout event

  • {event.frommodule.ammoinhopper} - only for weapons, this defines the amount of ammunition present in the hopper during the last Loadout event

  • {event.frommodule.class} - numeric class of the module

  • {event.frommodule.clipcapacity} - only for weapons, this defines the maximum amount of ammunition the clip can hold

  • {event.frommodule.enabled} - whether the module is enabled

  • {event.frommodule.engineerlevel} - the level of the engineering modification

  • {event.frommodule.engineerquality} - the percent quality of the engineering modification

  • {event.frommodule.grade} - letter grade of the module

  • {event.frommodule.health} - the last reported health of the module, as a percentage

  • {event.frommodule.hoppercapacity} - only for weapons, this defines the maximum amount of ammunition the hopper can store

  • {event.frommodule.hot} - whether the module is legally 'hot'

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

  • {event.frommodule.mercPrice} - the price paid for the module, in merc coins

  • {event.frommodule.modification} - the localized name of the engineering modification

  • {event.frommodule.modified} - whether the module has been modified

  • {event.frommodule.mount} - only for weapons, this defines the type of mount (fixed, gimballed, turreted)

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

  • {event.frommodule.position} - the position of the module in the Modules panel, sorted according to power usage

  • {event.frommodule.power} - the power consumption of the module, measured in MegaWatts (MW)

  • {event.frommodule.price} - the price paid for the module, in credits

  • {event.frommodule.priority} - the power priority of the module

  • {event.frommodule.value} - base value of the module, in credits

  • {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} - only for weapons, this defines the amount of ammunition present in the clip during the last Loadout event

  • {event.tomodule.ammoinhopper} - only for weapons, this defines the amount of ammunition present in the hopper during the last Loadout event

  • {event.tomodule.class} - numeric class of the module

  • {event.tomodule.clipcapacity} - only for weapons, this defines the maximum amount of ammunition the clip can hold

  • {event.tomodule.enabled} - whether the module is enabled

  • {event.tomodule.engineerlevel} - the level of the engineering modification

  • {event.tomodule.engineerquality} - the percent quality of the engineering modification

  • {event.tomodule.grade} - letter grade of the module

  • {event.tomodule.health} - the last reported health of the module, as a percentage

  • {event.tomodule.hoppercapacity} - only for weapons, this defines the maximum amount of ammunition the hopper can store

  • {event.tomodule.hot} - whether the module is legally 'hot'

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

  • {event.tomodule.mercPrice} - the price paid for the module, in merc coins

  • {event.tomodule.modification} - the localized name of the engineering modification

  • {event.tomodule.modified} - whether the module has been modified

  • {event.tomodule.mount} - only for weapons, this defines the type of mount (fixed, gimballed, turreted)

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

  • {event.tomodule.position} - the position of the module in the Modules panel, sorted according to power usage

  • {event.tomodule.power} - the power consumption of the module, measured in MegaWatts (MW)

  • {event.tomodule.price} - the price paid for the module, in credits

  • {event.tomodule.priority} - the power priority of the module

  • {event.tomodule.value} - base value of the module, in credits

  • {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} - only for weapons, this defines the amount of ammunition present in the clip during the last Loadout event

  • {INT:EDDI module swapped frommodule ammoinhopper} - only for weapons, this defines the amount of ammunition present in the hopper during the last Loadout event

  • {INT:EDDI module swapped frommodule class} - numeric class of the module

  • {INT:EDDI module swapped frommodule clipcapacity} - only for weapons, this defines the maximum amount of ammunition the clip can hold

  • {BOOL:EDDI module swapped frommodule enabled} - whether the module is enabled

  • {INT:EDDI module swapped frommodule engineerlevel} - the level of the engineering modification

  • {DEC:EDDI module swapped frommodule engineerquality} - the percent quality of the engineering modification

  • {TXT:EDDI module swapped frommodule grade} - letter grade of the module

  • {DEC:EDDI module swapped frommodule health} - the last reported health of the module, as a percentage

  • {INT:EDDI module swapped frommodule hoppercapacity} - only for weapons, this defines the maximum amount of ammunition the hopper can store

  • {BOOL:EDDI module swapped frommodule hot} - whether the module is legally 'hot'

  • {TXT:EDDI module swapped frommodule invariant name} - The invariant English name.

  • {DEC:EDDI module swapped frommodule merc price} - the price paid for the module, in merc coins

  • {TXT:EDDI module swapped frommodule modification} - the localized name of the engineering modification

  • {BOOL:EDDI module swapped frommodule modified} - whether the module has been modified

  • {TXT:EDDI module swapped frommodule mount} - only for weapons, this defines the type of mount (fixed, gimballed, turreted)

  • {TXT:EDDI module swapped frommodule name} - The localized name.

  • {INT:EDDI module swapped frommodule position} - the position of the module in the Modules panel, sorted according to power usage

  • {DEC:EDDI module swapped frommodule power} - the power consumption of the module, measured in MegaWatts (MW)

  • {DEC:EDDI module swapped frommodule price} - the price paid for the module, in credits

  • {INT:EDDI module swapped frommodule priority} - the power priority of the module

  • {DEC:EDDI module swapped frommodule value} - base value of the module, in credits

  • {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} - only for weapons, this defines the amount of ammunition present in the clip during the last Loadout event

  • {INT:EDDI module swapped tomodule ammoinhopper} - only for weapons, this defines the amount of ammunition present in the hopper during the last Loadout event

  • {INT:EDDI module swapped tomodule class} - numeric class of the module

  • {INT:EDDI module swapped tomodule clipcapacity} - only for weapons, this defines the maximum amount of ammunition the clip can hold

  • {BOOL:EDDI module swapped tomodule enabled} - whether the module is enabled

  • {INT:EDDI module swapped tomodule engineerlevel} - the level of the engineering modification

  • {DEC:EDDI module swapped tomodule engineerquality} - the percent quality of the engineering modification

  • {TXT:EDDI module swapped tomodule grade} - letter grade of the module

  • {DEC:EDDI module swapped tomodule health} - the last reported health of the module, as a percentage

  • {INT:EDDI module swapped tomodule hoppercapacity} - only for weapons, this defines the maximum amount of ammunition the hopper can store

  • {BOOL:EDDI module swapped tomodule hot} - whether the module is legally 'hot'

  • {TXT:EDDI module swapped tomodule invariant name} - The invariant English name.

  • {DEC:EDDI module swapped tomodule merc price} - the price paid for the module, in merc coins

  • {TXT:EDDI module swapped tomodule modification} - the localized name of the engineering modification

  • {BOOL:EDDI module swapped tomodule modified} - whether the module has been modified

  • {TXT:EDDI module swapped tomodule mount} - only for weapons, this defines the type of mount (fixed, gimballed, turreted)

  • {TXT:EDDI module swapped tomodule name} - The localized name.

  • {INT:EDDI module swapped tomodule position} - the position of the module in the Modules panel, sorted according to power usage

  • {DEC:EDDI module swapped tomodule power} - the power consumption of the module, measured in MegaWatts (MW)

  • {DEC:EDDI module swapped tomodule price} - the price paid for the module, in credits

  • {INT:EDDI module swapped tomodule priority} - the power priority of the module

  • {DEC:EDDI module swapped tomodule value} - base value of the module, in credits

  • {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