# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ryanjon2040.gitbook.io/ultimate-game-facts/introduction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
