# Tag Facts

`TagFacts` is a simple subsystem storing a fact database.

This database is a simple TSet of a gameplay tag and an integer.

{% hint style="info" %}
`TagFacts` is a free plugin available on my [**ModularityPractice github repo**](https://github.com/Variann/ModularityPractice)
{% endhint %}



Fact systems is extremely common in game studios as it provides an extremely simple interface for handling facts and achievements. This can be used to track what quests have been completed, how many times a player has talked to an NPC or any other "fact" you'd like to keep track of.

There are only a handful of functions you'll end up using majority of the time. The highlights are:

* IncrementFact
* DoesFactExist
* GetFactValue

The other functions are very situational. But when it comes to fact databases, the above functions are the most commonly used.

<figure><img src="https://1189842449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjNOeFzjjRbJR8VE6VXy%2Fuploads%2FiDAiLddmeI4tvsn3vNQi%2Fimage.png?alt=media&#x26;token=9b9ed472-e895-4f02-8986-d1c12b0d4b7f" alt=""><figcaption></figcaption></figure>

It also comes with console commands. `SetFact` will allow you to set the value of a tag during runtime, but it's recommended to use the [integrations](integrations "mention") debugger instead.
