-
Notifications
You must be signed in to change notification settings - Fork 84
Location event
Triggered when the commander's location is reported, usually when they reload their game..
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.bodyId} - The numeric ID of the body nearest to the commander (if any)
-
{event.bodyname} - The nearest body to the commander
-
{event.bodytype} - The type of the nearest body to the commander
-
{event.conflicts} - A list of conflict objects describing any conflicts between factions in the system, if any
-
{event.conflicts[<index>].conflictdays}
-
{event.conflicts[<index>].faction1}
-
{event.conflicts[<index>].faction1dayswon}
-
{event.conflicts[<index>].faction2}
-
{event.conflicts[<index>].faction2dayswon}
-
{event.conflicts[<index>].margin}
-
{event.conflicts[<index>].stake}
-
{event.conflicts[<index>].state}
-
{event.conflicts[<index>].status}
-
{event.contestingpowers} - (Only when pledged) The localized names of powerplay powers contesting control of the star system, if any
-
{event.ContestingPowers} - (Only when pledged) Powerplay powers contesting control of the star system, if any, as objects
-
{event.contestingpowers[<index>]}
-
{event.ContestingPowers[<index>].invariantName}
-
{event.ContestingPowers[<index>].name}
-
{event.distancefromstar} - The distance of the nearest body (when close) from the main star
-
{event.docked} - True if the commander is docked
-
{event.economy} - The economy of the system in which the commander resides
-
{event.economy2} - The secondary economy of the system in which the commander resides, if any
-
{event.factions} - A list of faction objects describing the factions in the system, if any
-
{event.factions[<index>].allegiance} - The localized allegiance of the faction, if known
-
{event.factions[<index>].Allegiance} - The allegiance of the faction, if known, as an object
-
{event.factions[<index>].Allegiance.invariantName}
-
{event.factions[<index>].Allegiance.name}
-
{event.factions[<index>].government} - The localized government of the faction, if known
-
{event.factions[<index>].Government} - The government of the faction, if known, as an object
-
{event.factions[<index>].Government.invariantName}
-
{event.factions[<index>].Government.name}
-
{event.factions[<index>].myreputation} - Your reputation with the faction, out of 100%
-
{event.factions[<index>].name} - The name of the faction
-
{event.factions[<index>].presences} - A list of FactionPresence objects. Unless called from the FactionDetails() function, only details from the current system will be included here
-
{event.factions[<index>].presences[<index>].ActiveStates} - (For recently visited systems only) A list of FactionState objects
-
{event.factions[<index>].presences[<index>].ActiveStates[<index>].invariantName}
-
{event.factions[<index>].presences[<index>].ActiveStates[<index>].name}
-
{event.factions[<index>].presences[<index>].FactionState} - The faction's current dominant state in this system, as an object
-
{event.factions[<index>].presences[<index>].FactionState.invariantName}
-
{event.factions[<index>].presences[<index>].FactionState.name}
-
{event.factions[<index>].presences[<index>].happiness} - (For recently visited systems only) The current localized happiness level of the faction within the system
-
{event.factions[<index>].presences[<index>].Happiness} - (For recently visited systems only) The current happiness level of the faction within the system, as an object
-
{event.factions[<index>].presences[<index>].Happiness.invariantName}
-
{event.factions[<index>].presences[<index>].Happiness.name}
-
{event.factions[<index>].presences[<index>].influence} - The faction's influence level within the system, as a percentage
-
{event.factions[<index>].presences[<index>].PendingStates} - (For recently visited systems only) A list of pending FactionState objects and trend values
-
{event.factions[<index>].presences[<index>].PendingStates[<index>].factionState}
-
{event.factions[<index>].presences[<index>].PendingStates[<index>].factionState.invariantName}
-
{event.factions[<index>].presences[<index>].PendingStates[<index>].factionState.name}
-
{event.factions[<index>].presences[<index>].PendingStates[<index>].trend}
-
{event.factions[<index>].presences[<index>].RecoveringStates} - (For recently visited systems only) A list of recent prior FactionState objects and trend values
-
{event.factions[<index>].presences[<index>].RecoveringStates[<index>].factionState}
-
{event.factions[<index>].presences[<index>].RecoveringStates[<index>].factionState.invariantName}
-
{event.factions[<index>].presences[<index>].RecoveringStates[<index>].factionState.name}
-
{event.factions[<index>].presences[<index>].RecoveringStates[<index>].trend}
-
{event.factions[<index>].presences[<index>].squadronhomesystem} - (For recently visited systems only) True if the faction is the pilot's current squadron faction
-
{event.factions[<index>].presences[<index>].state} - The faction's current (localized) dominant state in this system
-
{event.factions[<index>].presences[<index>].systemAddress} - The unique 64 bit system address where this faction has a presence
-
{event.factions[<index>].presences[<index>].systemName} - The system name where this faction hasa presence
-
{event.factions[<index>].squadronfaction} - True if the faction is the pilot's current squadron faction
-
{event.latitude} - The latitude of the commander (if on the ground)
-
{event.longitude} - The longitude of the commander (if on the ground)
-
{event.marketId} - The market ID of the station at which the commander is docked
-
{event.population} - The population of the system to which the commander has jumped
-
{event.power} - (Only when pledged) The localized powerplay power controlling the star system, if any. If the star system is
Contested
, this will be empty -
{event.Power} - (Only when pledged) The powerplay power controlling the star system, if any, as an object. If the star system is
Contested
, this will be empty -
{event.Power.invariantName}
-
{event.Power.name}
-
{event.powerstate} - (Only when pledged) The state of powerplay efforts within the star system
-
{event.PowerState} - (Only when pledged) The state of powerplay efforts within the star system, as an object
-
{event.PowerState.invariantName}
-
{event.PowerState.name}
-
{event.security} - The security of the system in which the commander resides
-
{event.station} - The name of the station at which the commander is docked
-
{event.stationallegiance} - The super power allegiance of the station, if the commander is docked
-
{event.stationfaction} - The faction controlling the station, if the commander is docked
-
{event.stationgovernment} - The government of the station, if the commander is docked
-
{event.stationstate} - The state of the faction controlling the station, if the commander is docked
-
{event.stationtype} - The type of the station at which the commander is docked
-
{event.systemAddress} - The numeric system address of the star system in which the commander is located
-
{event.systemallegiance} - The super power allegiance of the star system in which the commander is located
-
{event.systemfaction} - The faction controlling the system in which the commander is located
-
{event.systemgovernment} - The government of the system in which the commander is located
-
{event.systemname} - The name of the system in which the commander is located
-
{event.systemstate} - The state of the faction controlling the system in which the commander is located
-
{event.ThargoidWar} - Thargoid war data, when applicable
-
{event.ThargoidWar.CurrentState} - The current phase of the Thargoid war, as a localizable object.
-
{event.ThargoidWar.CurrentState.invariantName}
-
{event.ThargoidWar.CurrentState.name}
-
{event.ThargoidWar.FailureState} - The next phase of the Thargoid war, if success is not achieved, as a localizable object.
-
{event.ThargoidWar.FailureState.invariantName}
-
{event.ThargoidWar.FailureState.name}
-
{event.ThargoidWar.progress} - Percent progress in achieving a success state in the current phase of the Thargoid war. Progress can decrease if success is not reached before the weekly 'tick'.
-
{event.ThargoidWar.remainingDays} - The number of remaining days in the current phase of the Thargoid war.
-
{event.ThargoidWar.remainingPorts} - The number of ports which have not yet fallen into Thargoid control.
-
{event.ThargoidWar.succeeded} - True if commanders have achieved a success state in the current phase of the Thargoid war.
-
{event.ThargoidWar.SuccessState} - The next phase of the Thargoid war, if success is achieved, as a localizable object.
-
{event.ThargoidWar.SuccessState.invariantName}
-
{event.ThargoidWar.SuccessState.name}
-
{event.x} - The X co-ordinate of the system in which the commander is located
-
{event.y} - The Y co-ordinate of the system in which the commander is located
-
{event.z} - The Z co-ordinate of the system in which the commander is located
To respond to this event in VoiceAttack, create a command entitled ((EDDI location)). VoiceAttack variables will be generated to allow you to access the event information.
The following VoiceAttack variables are available for this event:
-
{DEC:EDDI location body id} - The numeric ID of the body nearest to the commander (if any)
-
{TXT:EDDI location bodyname} - The nearest body to the commander
-
{TXT:EDDI location bodytype} - The type of the nearest body to the commander
-
{INT:EDDI location conflicts} - A list of conflict objects describing any conflicts between factions in the system, if any
-
{INT:EDDI location conflicts <index> conflictdays}
-
{TXT:EDDI location conflicts <index> faction1}
-
{INT:EDDI location conflicts <index> faction1dayswon}
-
{TXT:EDDI location conflicts <index> faction2}
-
{INT:EDDI location conflicts <index> faction2dayswon}
-
{INT:EDDI location conflicts <index> margin}
-
{TXT:EDDI location conflicts <index> stake}
-
{TXT:EDDI location conflicts <index> state}
-
{TXT:EDDI location conflicts <index> status}
-
{INT:EDDI location contesting powers} - (Only when pledged) Powerplay powers contesting control of the star system, if any, as objects
-
{TXT:EDDI location contesting powers <index> invariant name}
-
{TXT:EDDI location contesting powers <index> name}
-
{INT:EDDI location contestingpowers} - (Only when pledged) The localized names of powerplay powers contesting control of the star system, if any
-
{TXT:EDDI location contestingpowers <index>}
-
{DEC:EDDI location distancefromstar} - The distance of the nearest body (when close) from the main star
-
{BOOL:EDDI location docked} - True if the commander is docked
-
{TXT:EDDI location economy} - The economy of the system in which the commander resides
-
{TXT:EDDI location economy2} - The secondary economy of the system in which the commander resides, if any
-
{INT:EDDI location factions} - A list of faction objects describing the factions in the system, if any
-
{TXT:EDDI location factions <index> allegiance} - The localized allegiance of the faction, if known
-
{TXT:EDDI location factions <index> allegiance invariant name}
-
{TXT:EDDI location factions <index> allegiance name}
-
{TXT:EDDI location factions <index> government} - The localized government of the faction, if known
-
{TXT:EDDI location factions <index> government invariant name}
-
{TXT:EDDI location factions <index> government name}
-
{DEC:EDDI location factions <index> myreputation} - Your reputation with the faction, out of 100%
-
{TXT:EDDI location factions <index> name} - The name of the faction
-
{INT:EDDI location factions <index> presences} - A list of FactionPresence objects. Unless called from the FactionDetails() function, only details from the current system will be included here
-
{INT:EDDI location factions <index> presences <index> active states} - (For recently visited systems only) A list of FactionState objects
-
{TXT:EDDI location factions <index> presences <index> active states <index> invariant name}
-
{TXT:EDDI location factions <index> presences <index> active states <index> name}
-
{TXT:EDDI location factions <index> presences <index> faction state invariant name}
-
{TXT:EDDI location factions <index> presences <index> faction state name}
-
{TXT:EDDI location factions <index> presences <index> happiness} - (For recently visited systems only) The current localized happiness level of the faction within the system
-
{TXT:EDDI location factions <index> presences <index> happiness invariant name}
-
{TXT:EDDI location factions <index> presences <index> happiness name}
-
{DEC:EDDI location factions <index> presences <index> influence} - The faction's influence level within the system, as a percentage
-
{INT:EDDI location factions <index> presences <index> pending states} - (For recently visited systems only) A list of pending FactionState objects and trend values
-
{TXT:EDDI location factions <index> presences <index> pending states <index> faction state invariant name}
-
{TXT:EDDI location factions <index> presences <index> pending states <index> faction state name}
-
{INT:EDDI location factions <index> presences <index> pending states <index> trend}
-
{INT:EDDI location factions <index> presences <index> recovering states} - (For recently visited systems only) A list of recent prior FactionState objects and trend values
-
{TXT:EDDI location factions <index> presences <index> recovering states <index> faction state invariant name}
-
{TXT:EDDI location factions <index> presences <index> recovering states <index> faction state name}
-
{INT:EDDI location factions <index> presences <index> recovering states <index> trend}
-
{BOOL:EDDI location factions <index> presences <index> squadronhomesystem} - (For recently visited systems only) True if the faction is the pilot's current squadron faction
-
{TXT:EDDI location factions <index> presences <index> state} - The faction's current (localized) dominant state in this system
-
{DEC:EDDI location factions <index> presences <index> system address} - The unique 64 bit system address where this faction has a presence
-
{TXT:EDDI location factions <index> presences <index> system name} - The system name where this faction hasa presence
-
{BOOL:EDDI location factions <index> squadronfaction} - True if the faction is the pilot's current squadron faction
-
{DEC:EDDI location latitude} - The latitude of the commander (if on the ground)
-
{DEC:EDDI location longitude} - The longitude of the commander (if on the ground)
-
{DEC:EDDI location market id} - The market ID of the station at which the commander is docked
-
{DEC:EDDI location population} - The population of the system to which the commander has jumped
-
{TXT:EDDI location power} - (Only when pledged) The localized powerplay power controlling the star system, if any. If the star system is
Contested
, this will be empty -
{TXT:EDDI location power invariant name}
-
{TXT:EDDI location power name}
-
{TXT:EDDI location power state invariant name}
-
{TXT:EDDI location power state name}
-
{TXT:EDDI location powerstate} - (Only when pledged) The state of powerplay efforts within the star system
-
{TXT:EDDI location security} - The security of the system in which the commander resides
-
{TXT:EDDI location station} - The name of the station at which the commander is docked
-
{TXT:EDDI location stationallegiance} - The super power allegiance of the station, if the commander is docked
-
{TXT:EDDI location stationfaction} - The faction controlling the station, if the commander is docked
-
{TXT:EDDI location stationgovernment} - The government of the station, if the commander is docked
-
{TXT:EDDI location stationstate} - The state of the faction controlling the station, if the commander is docked
-
{TXT:EDDI location stationtype} - The type of the station at which the commander is docked
-
{DEC:EDDI location system address} - The numeric system address of the star system in which the commander is located
-
{TXT:EDDI location systemallegiance} - The super power allegiance of the star system in which the commander is located
-
{TXT:EDDI location systemfaction} - The faction controlling the system in which the commander is located
-
{TXT:EDDI location systemgovernment} - The government of the system in which the commander is located
-
{TXT:EDDI location systemname} - The name of the system in which the commander is located
-
{TXT:EDDI location systemstate} - The state of the faction controlling the system in which the commander is located
-
{TXT:EDDI location thargoid war current state invariant name}
-
{TXT:EDDI location thargoid war current state name}
-
{TXT:EDDI location thargoid war failure state invariant name}
-
{TXT:EDDI location thargoid war failure state name}
-
{DEC:EDDI location thargoid war progress} - Percent progress in achieving a success state in the current phase of the Thargoid war. Progress can decrease if success is not reached before the weekly 'tick'.
-
{INT:EDDI location thargoid war remaining days} - The number of remaining days in the current phase of the Thargoid war.
-
{INT:EDDI location thargoid war remaining ports} - The number of ports which have not yet fallen into Thargoid control.
-
{BOOL:EDDI location thargoid war succeeded} - True if commanders have achieved a success state in the current phase of the Thargoid war.
-
{TXT:EDDI location thargoid war success state invariant name}
-
{TXT:EDDI location thargoid war success state name}
-
{DEC:EDDI location x} - The X co-ordinate of the system in which the commander is located
-
{DEC:EDDI location y} - The Y co-ordinate of the system in which the commander is located
-
{DEC:EDDI location z} - The Z co-ordinate of the system in which the commander is located
For more details on VoiceAttack integration, see https://github.com/EDCD/EDDI/wiki/VoiceAttack-Integration.