Skip to content

Galnet news published event

Tkael edited this page Jun 20, 2021 · 8 revisions

Triggered when news is published on Galnet.

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.items} - The published news items (as objects)

  • {event.items[<index>].category}

  • {event.items[<index>].content}

  • {event.items[<index>].id}

  • {event.items[<index>].published}

  • {event.items[<index>].read}

  • {event.items[<index>].title}

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

The following VoiceAttack variables are available for this event:

  • {INT:EDDI galnet news published items} - The published news items (as objects)

  • {TXT:EDDI galnet news published items <index> category}

  • {TXT:EDDI galnet news published items <index> content}

  • {TXT:EDDI galnet news published items <index> id}

  • {DATE:EDDI galnet news published items <index> published}

  • {BOOL:EDDI galnet news published items <index> read}

  • {TXT:EDDI galnet news published items <index> title}

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

Clone this wiki locally