Menu
Lumberyard
Legacy Reference

Using Flow Graph Tokens

Flow Graph is deprecated and will be removed in a future version of Lumberyard. Learn about Script Canvas, Lumberyard's new visual scripting environment.

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn about the latest features, see the Amazon Lumberyard User Guide.

A flow graph token is a variable used for storing values for reuse in the same flow graph. Flow graph tokens can be used for performing simple logic and checks within a flow graph script. They are typically used to send different variables across a very large flow graph and to alleviate the need for extra node links.

Flow graph tokens share many similarities with game tokens. They can have the same types of variables set and even appear under the command gt_show=1 along with the rest of the game tokens.


                Flow Graph token

To create a Flow Graph token

  1. In Flow Graph Editor, click Tools, Edit Graph Tokens.

  2. In the Graph Tokens window, click New Token, then name the token.

  3. Right-click anywhere in the flow graph, then click Add Node, Mission, GameTokenSet.

  4. In the Mission:GameTokenSet node, double-click Value and enter a value.