> For the complete documentation index, see [llms.txt](https://ryanjon2040.gitbook.io/ultimate-game-facts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryanjon2040.gitbook.io/ultimate-game-facts/introduction.md).

# Introduction

Ultimate Game Facts is a library of static functions to add facts globally and per actor which you can read/write anytime throught out entire game session. This eliminates the need of saving multitude of variables or getter/setter function for specific needs.

Think of this system as a database where you can track things that happens at gameplay.&#x20;

Imagine a scenario, where at Level 1 you defeated an enemy and picked up a key to a door. In Level 5, you need to unlock a door. Traditionally, you'll need to create a variable to read/write the key acquired state, save and load it later when required. But with Ultimate Game Facts, this is an example setup you can create.

<figure><img src="/files/aIuOOTPvUZbufsMCf29o" alt=""><figcaption><p>An example node setup</p></figcaption></figure>

## Functions

All of the functions in Ultimate Game Facts are static, which means you can call them anywhere anytime.

### Main functions

These are the setter and getter functions to set fact tags with or without a value attached to it.

<figure><img src="/files/3orT3Y4QjiikW7PRB9FZ" alt=""><figcaption><p>Setter and getter functions</p></figcaption></figure>

### Determine Value Type

If you have a large amount of game facts and unsure about the value type associated with it, you can use this helper function to determine what type of value the given fact has.

<figure><img src="/files/YerqfCBzIUHkkTiht9RN" alt=""><figcaption><p>Value type check</p></figcaption></figure>

### Save/Load

Ultimate Game Facts offers the ability to save/load global facts manually or automatically.

<figure><img src="/files/cxNmdF351JAwoCQmqgPR" alt=""><figcaption><p>Cache functions</p></figcaption></figure>

### All Functions

You can find all functions under Ultimate Game Facts Statics when you right click inside an empty graph

<figure><img src="/files/1LfkrfSjn1bbxSaOeUvG" alt=""><figcaption><p>All functions</p></figcaption></figure>
