Sandbox DBViewGameTokens

From CryWiki

Sandbox DBViewGameTokens
Jump to: navigation, search

Contents

Game Tokens

Properties

Image:Sandbox_DBViewGameTokens_image001.jpg

A Game Token is a script object, or variable, used to store values. These tokens can be used to perform simple logic manipulations and checks within the game script language.

Possible tokens functions include can include states (is a squad mate dead or alive), characters , information (e.g. research tool results) sequential logic (has an event taken place, in if/then sequences) or objects (e.g. weapons, vehicles).

These will be represented within various different flow nodes with various functions, inputs, outputs and checks.

In the database all defined values are stored in libraries, by loading or not loading the same library for every level tokens can be set to be persistent only within one level, across multiple levels, or only relevant in act 1, for instance.

First you need to create a token.

Add New Item button:

Then, specify which type it is and add a description by double clicking on the value or description.

Image:Sandbox_DBViewGameTokens_image002.jpg

Open

Allows you to load an .xml library file.
Image:Sandbox_DBViewGameTokens_image003.jpg

Save

If you save the level the archetype library is saved as well, a faster method is using this save button.
Image:Sandbox_DBViewGameTokens_image004.jpg

Add

Creates a new library.
Image:Sandbox_DBViewGameTokens_image005.jpg

Delete

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

By clicking on the roll down button you can see all the libraries that are currently loaded:
Image:Sandbox_DBViewGameTokens_image007.jpg

Add New Item

Image:Sandbox_DBViewGameTokens_image008.jpg

Lets you create a new game token:

Clone Library Item

Image:Sandbox_DBViewGameTokens_image009.jpg

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

Remove Item

Image:Sandbox_DBViewGameTokens_image010.jpg

Deletes the selected game token

Changing Type, Values and Description

Image:Sandbox_DBViewGameTokens_image011.jpg

After you have created a token you can choose the type Bool, Int, Float, String or Vec3.

Depending on the type you can add following values:

Image:Sandbox_DBViewGameTokens_image012.jpg

Bool: True or False states
Int: any whole number
Float: any floating point number
String: any sequence of characters
Vec3: any 3 dimensional positional coordinate (x,y,y) for example 290,200,180

Don't forget to add a description in the description field.

Personal tools