> For the complete documentation index, see [llms.txt](https://malbersanimations.gitbook.io/animal-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malbersanimations.gitbook.io/animal-controller/global-components/stats/pm-stat.md).

# Public Methods

## Variables

public List\<Stat> stats&#x20;

## Methods

```csharp
//Updates all the stats on the lists
public void Stats_Update()
    
//Updates a stat logic by its Stat ID or Stat ID value
public void Stats_Update(StatID iD);
public void Stats_Update(int iD)

//Enable a stat
public void Stat_Enable(StatID iD);

//Disable a stat
public void Stat_Disable(StatID iD);

//Disable a stat Degeneration logic
public void DegenerateOff(StatID ID)

//Enable a stat Degeneration logic
public void DegenerateOn(StatID ID) 

//Pin a Stat by its Name
public void Stat_Pin(string name)

//Set PinnedStat searching for a int ID value
public void Stat_Pin(int ID)

//Set PinnedStat searching for a StatID
public void Stat_Pin(StatID ID) 

//Find a Stat Using its name, ID or ID value, 
//and Return it. It Also saves the returned stat on PinnedStat
public Stat Stat_Get(string name)
public Stat Stat_Get(int ID)
public Stat Stat_Get(IntVar ID)
public Stat Stat_Get(StatID ID)


//Modify a the value of a Stat using its ID, ID value or Name 
public void Stat_ModifyValue(StatID ID, float modifyvalue) 
public void Stat_ModifyValue(int ID, float modifyvalue)
public void Stat_ModifyValue(string name, float modifyvalue)


//Modify Stat Value instantly (Add/Remove to the Value)
public void Stat_Pin_ModifyValue(float value);
public void Stat_Pin_ModifyValue(FloatVar value);

//Modify Stat Multiplier instantly (Add/Remove to the Value)
public void Stat_Pin_SetMult(float value);
public void Stat_Pin_SetMult(FloatVar value);

//Modify Stat Value in a X time period(Add/Remove to the Value
public void Stat_Pin_ModifyValue(float value, float time);
//Modify Stat Value in 1 second period(Add/Remove to the Value)
public void Stat_Pin_ModifyValue_1Sec(float value);

//Set  Stat Value to a fixed Value
public void Stat_Pin_SetValue(float value);

//Modify the Pinned Stat MAX Value (Add or remove to the Max Value)
public void Stat_Pin_ModifyMaxValue(float value); 

//Set the Pinned Stat MAX Value
public void Stat_Pin_SetMaxValue(float value);

//Enable/Disable the Pinned Stat Regeneration Rate 
public void Stat_Pin_Modify_RegenRate(float value);

//Enable/Disable the Pinned Stat Degeneration
public void Stat_Pin_Degenerate(bool value);

//Enable/Disable the Pinned Stat Regeneration
public void Stat_Pin_Regenerate(bool value);

//Enable/Disable the Pinned Stat
public void Stat_Pin_Enable(bool value);

// Clean the Pinned Stat from All Regeneration/Degeneration coroutines
public void Stat_Pin_CleanCoroutines() 
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://malbersanimations.gitbook.io/animal-controller/global-components/stats/pm-stat.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
