Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Option

Description

Add New Item

First, to create a token click the Add New Item button. Then, specify which type it should be and add a description by double-clicking the value or description.

Open

Allows you to load an XML library file.

Save

Whenever the entire level is saved, the archetype library is saved with it. Users can also save just the library by using the Save Modified Libraries button.

Add

Creates a new library.

Delete

Removes the currently selected library. You need to manually delete it from the hard drive if you want to permanently remove it.

Drop-Down Menu

By clicking the drop-down button, you can see all the libraries that have been currently loaded.

Add New Item

Lets you create a new game token.

Clone Library Item

Duplicates the selected item so that you can have an alternative version, with slightly different parameters.

Remove Item

Deletes the selected game token.

Changing Type, Values, and Description

After you have created a token, you can choose from the following types: Bool, Int, Float, String, or Vec3.

Depending on the type, you can add the following values:

...

Tip
Don't forget to add a description in the Description field, you may find it come in handy later on when you have many tokens in the library!

Saving Tokens across Levels

There are 2 specific Flowgraph Flow Graph nodes related to the storing of information across levels.

  • Mission:GameTokensLevelToLevelStore - Trigger this at the end of the level, and it will save the values specified in the listed game tokens.
  • Mission:GameTokensLevelToLevelRestore - Trigger this at the beginning of the next level to retreive retrieve the values from the previous level.

 

Debugging 

To investigate which game tokens are active or being modified during a session, you can enable a few CVars to track the recent changes.

New items get added to the bottom of the list and are coloured colored red. They will fade to white over time & as new ones get added to the bottom of the list.

  • gt_Show - 1=screen and log, 2=screen only, 3=log only . Displays a log of the recently changed tokens in the top left (default) of the screen.
  • gt_showFilter In - In the historic list only shows game tokens that include the filter string.
  • gt_showLines - How many lines is used by the historic list.
  • gt_showPosX Defines - Defines the starting column in screen for game tokens debug info.
  • gt_showPosY Defines - Defines the starting row in screen for game tokens debug info.

 

Excerpt
hiddentrue
A Game Token is a script object or variable that is used for storing values. These tokens can be used for performing simple logic manipulations and checks within the game scripting language.