Lumberyard
Legacy Reference

Mission Nodes

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.

You can use these flow graph nodes to configure mission-related settings. Game tokens are useful as variables used for passing data between flow graphs or within a flow graph, or for storing data between levels.

GameToken node

Used to get or set a game token. This is the most important and useful of all the mission nodes as it acts like a listener for any changes on the input.

Inputs

Port Type Description
Token String Game token to compare. Any change in this value will trigger the TokenValue output.
CompareValue String Value to compare the token value against

Outputs

Port Type Description
TokenValue Any Value of the game token. Triggers whenever the Token input changes value.
OnTrue Boolean Triggered if the token value is equal to CompareValue
OnFalse Boolean Triggered if the token value is not equal to CompareValue

GameTokenCheck node

Used to check if the value of a game token equals a value.

Inputs

Port Type Description
Activate Any Activates the node
Token String Game token to check
CompareValue String Value to compare the token value against

Outputs

Port Type Description
TokenValue Any Value of the token
Result Boolean True if the token value is equal to CompareValue
OnTrue Any Triggered if the token value is equal to CompareValue
OnFalse Any Triggered if the token value is not equal to CompareValue

GameTokenCheckMulti node

Used to check if a game token is equal to any value in a list.

Inputs

Port Type Description
Activate Any Activates the node
Token String Game token to check
Value0 - Value7 String Values to compare the token value with

Outputs

Port Type Description
TokenValue Any Value of the token
OneTrue Any Triggered if the token value is equal to at least one of the input port values
AllFalse Any Triggered if the token value is not equal to any of the input port values

GameTokenGet node

Used to get the value of the game token.

Inputs

Port Type Description
Activate Any Activates the node
Token String Game token to get

Inputs

Port Type Description
OutValue Any Displays value of the game token

GameTokenModify node

Used to modify the value of a game token.

Inputs

Port Type Description
Activate Any Activates the node
Token String Game token to set
Operation Integer Operation to perform on the token
TokenType Integer Token type
OtherValue String Value to perform operation with

Outputs

Port Type Description
Result Any Result of the operation

GameTokenSet node

Used to set the value of a game token.

Inputs

Port Type Description
Activate Any Activates the node
Token String Game token to set
TokenValue String Value of token

Outputs

Port Type Description
OutValue Any Outputs token value

GameTokensLevelToLevelRestore node

Used to restore the values of all game tokens in a level that were stored in the previous level using the GameTokensLevelToLevelStore node.

Inputs

Port Type Description
Activate Any Activates the node

GameTokensLevelToLevelStore node

Used to store the values of all game tokens in a level.

Inputs

Port Type Description
Activate Any Activates the node
Token0 - Token7 String Stores token values

LoadNextLevel node

Used to load the next level.

Inputs

Port Type Description
Activate Any Activates the node
NextLevel String Ends the current level and loads the next level
ClearToBlack Boolean