Flow graphs can be rather complex and include dozens of different nodes. Very often, it can be useful to work with variables to store and access gameplay information. This may include simple things such as counting a loop inside a flow graph or storing more complex information, for example, the number of times the player hit or missed the target.
This functionality is provided by the GameToken system. Game tokens can be accessed using flow-graph nodes, Lua scripts, or even C++. The most common way of working is through a set of provided flow graph nodes.
The following nodes provide you with access to the GameToken system:
Mission:GameToken
Mission:GameTokenCheck
Mission:GameTokenCheckMulti
Mission:GameTokenGet
Mission:GameTokenModify
Mission:GameTokenSet
Mission:GameTokenLevelToLevelRestore
Mission:GameTokenLevelToLevelStore
This set of nodes allows you to store all kind of gameplay information and use it to script complex game logic. A game token can store all kinds of information...