...
To access encounter variables, either loop through the ENCOUNTERS collection or use one of the properties or methods described below to obtain a reference to an Encounter object. At that point you can access a variable value with the encounter.#VariableCode syntax as described above.
See Examples.
Properties
- Count – returns the number of encounters in the collection.
- FirstEncounter – returns the first encounter in the collection. If no encounter is found, a null encounter is returned.
- LastEncounter – returns the last encounter in the collection. If no encounter is found, a null encounter is returned.
...