NOTE: This function is slated to appear in 1.07.

Discuss this page on this page's Talk Page

plyGetKeyEventStat

Syntax (plyGetKeyEventStat player stat nodeID typeCriteria) → value
Arguments player: The player. (See gPlayer)
stat: An identifier naming the stat to obtain (see below).
nodeID: The nodeID for which stats are desired. If Nil, stats for all nodes will be returned.
typeCriteria: An a design type criteria specifying the types for which to return the stat. See: typFind.
Returns value: The value of the stat.
Category player
Description Returns the value of a key event stat.

This function is designed to retrieve statistics about major events related to stations and objects in a system. Note that only ships with the attribute majorShip and stations with the attribute majorStation are tracked by this function.

Stats

The following item stat identifiers are defined:

An event is represented as a list with five elements. Each element is described below:

Notes

Example

(plyGetKeyEventStat gplayer 'objsDestroyed "SE" "* +commonwealth")

Returns all instances in which a major object with the commonwealth attribute was destroyed in the Eridani system (SE).

Return to Functions list