Settlement approached event - EDCD/EDDI GitHub Wiki
Triggered when you approach a settlement.
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.allegiance} - The superpower allegiance of the settlement the commander is approaching, when applicable
-
{event.bodyId} - The numeric ID of the body containing the settlement
-
{event.bodyname} - The name of the body containing the settlement
-
{event.economy} - The economy of the settlement the commander is approaching, when applicable
-
{event.faction} - The faction controlling the settlement the commander is approaching, when applicable
-
{event.government} - The government of the settlement the commander is approaching, when applicable
-
{event.latitude} - The latitude coordinate of the settlement (if given)
-
{event.longitude} - The longitude coordinate of the settlement (if given)
-
{event.marketId} - The numeric ID of the station, if the settlement is a station
-
{event.name} - The name of the settlement
-
{event.secondeconomy} - The secondary economy of the settlement the commander is approaching, when applicable
-
{event.stationservices} - A list of possible services available at the settlement (when the settlement is a station)
-
{event.stationservices[<index>]}
-
{event.systemAddress} - The numeric system address of the star system
To respond to this event in VoiceAttack, create a command entitled ((EDDI settlement approached)). VoiceAttack variables will be generated to allow you to access the event information.
The following VoiceAttack variables are available for this event:
-
{TXT:EDDI settlement approached allegiance} - The superpower allegiance of the settlement the commander is approaching, when applicable
-
{DEC:EDDI settlement approached body id} - The numeric ID of the body containing the settlement
-
{TXT:EDDI settlement approached bodyname} - The name of the body containing the settlement
-
{TXT:EDDI settlement approached economy} - The economy of the settlement the commander is approaching, when applicable
-
{TXT:EDDI settlement approached faction} - The faction controlling the settlement the commander is approaching, when applicable
-
{TXT:EDDI settlement approached government} - The government of the settlement the commander is approaching, when applicable
-
{DEC:EDDI settlement approached latitude} - The latitude coordinate of the settlement (if given)
-
{DEC:EDDI settlement approached longitude} - The longitude coordinate of the settlement (if given)
-
{DEC:EDDI settlement approached market id} - The numeric ID of the station, if the settlement is a station
-
{TXT:EDDI settlement approached name} - The name of the settlement
-
{TXT:EDDI settlement approached secondeconomy} - The secondary economy of the settlement the commander is approaching, when applicable
-
{INT:EDDI settlement approached stationservices} - A list of possible services available at the settlement (when the settlement is a station)
-
{TXT:EDDI settlement approached stationservices <index>}
-
{DEC:EDDI settlement approached system address} - The numeric system address of the star system
For more details on VoiceAttack integration, see https://github.com/EDCD/EDDI/wiki/VoiceAttack-Integration.