# GameStatList

## Variables

#### Forcing posts to Blackboard

While each `Stat` object can post it's information to the `Blackboard`, it may not be ideal to have all actors with `Stat` data doing so, especially in projects with many enemies. The values of these bools are `false`, but if set `true`, then `Stats` in this `GameStatList` will post their data to `Blackboard`, only for this list.

<pre class="language-csharp"><code class="lang-csharp">// If true, objects will post to blackboard even if they are individual 
// set to not post
<strong>public bool forcePostToBlackboard = false; 
</strong><strong>
</strong>// If true, when objects post, they will be forced to notify followers of the 
// blackboard
public bool forceNotifyOnPost = false; 

// Example
public void YourActorStartActions()
{
    //  Ensure the GameStatList stats and GameStatList skills post to blackboard
    stats.forcePostToBlackboard = true;
    stats.forceNotifyOnPost = true;
    skills.forcePostToBlackboard = true;
    skills.forceNotifyOnPost = true;
    
    // Other Start Actions
}
</code></pre>

Returns `Dictionary<string, float>` with the Point value for all "Counter" stats, or all `GameStats` in the list. Counter stats are those which can't be trained or modified. By default only the `Point` value will be returned. Optionally include `BaseValue` as well.

<pre class="language-csharp"><code class="lang-csharp">/* Optional parameters
bool keyIsObjectName = true // if false, key will be Uid()
bool countersOnly = true // if false, all stats will be included
bool includeBaseValue = false // if true, return will include Points + BaseValue
*/

<strong>var allCounters = gameStatList.GetAllPoints();
</strong><strong>var counterPointsAndBaseValue = gameStatList.GetAllPoints(true, true, true);
</strong></code></pre>


---

# 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://infinitypbr.gitbook.io/magic-pig-games/game-modules-4/module-documentation/game-module-lists/gamestatlist.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.
