# 🔰IDs

IDs are Scriptable Objects with an Int value to easily identify or assign an *unique* identifier to States, Stances, Modes, Stats, Actions.

To Find all the IDs use the Menu **\[Tools -> Malbers Animations -> Show All IDs]**

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FlZT7ISheiyIHiVyVAdbo%2Fimage.png?alt=media&#x26;token=4fcb3042-2dd2-4c45-8f86-8f07b1844fe5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FsjFsobYXES5QMe9m8x1M%2FUnity_E5iYQsKSsl.gif?alt=media&#x26;token=c9a72052-3529-46f8-8c3c-1ab167592429" alt=""><figcaption></figcaption></figure>

They are here to make your life easier and you don't have to remember which is the value of the **Locomotion** [State](https://malbersanimations.gitbook.io/animal-controller/main-components/manimal-controller/states), The **Action** [Mode ](https://malbersanimations.gitbook.io/animal-controller/main-components/manimal-controller/modes).. or the **Combat** [Stance](https://malbersanimations.gitbook.io/animal-controller/main-components/manimal-controller/stances).

Here are the Name of the ID Values of each IDs created for the Animal Controller; in case you need to know them for each ID created for the Controller:

### [**State IDs**](#states-ids) **|** [**Mode IDs**](#modes-ids) **|** [**Stance IDs**](#stances-ids) **|** [**Stat IDs**](#stats-ids) **|** [**Actions**](#actions)

## <img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-LznakDoEZ_OKgw6fEr-%2F-LznfSAWqO5CDzHp9Qel%2Fimage.png?alt=media&#x26;token=3fa394d5-e1ef-4d5a-b85e-b0588aeddbdf" alt="" data-size="line"> States IDs

| Name       |  ID |
| ---------- | :-: |
| Idle       |  0  |
| Locomotion |  1  |
| Jump       |  2  |
| Fall       |  3  |
| Swim       |  4  |
| Underwater |  5  |
| Fly        |  6  |
| Climb      |  7  |
| Grab Ledge |  8  |
| Slide      |  9  |
| Death      |  10 |
| Glide      |  11 |

{% hint style="success" %}
To Create a new **State ID** go to Assets > Create > Malbers Animations > ID > **State ID**
{% endhint %}

{% hint style="info" %}
You can also access these values via script using **`StateEnum`** static class.

&#x20;E.g. : **`StateEnum.Fly`**
{% endhint %}

## <img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-Lznk57n45x4ZSDXdYRB%2F-LznkgOcVOr66y6E5DdS%2Fimage.png?alt=media&#x26;token=84700b3a-cfac-42b1-8ad6-052a1ab50e8f" alt="" data-size="line"> Modes IDs

| Name                            |  ID |
| ------------------------------- | :-: |
| Attack1 (Main Attack)           |  1  |
| Attack2 (Secondary Attack)      |  2  |
| Damaged                         |  3  |
| Action                          |  4  |
| Dodge                           |  5  |
| Air Attack (Aerial Main Attack) |  6  |

{% hint style="info" %}
You can also use the **Ability Status** of any  Mode as IDs to change it at run time
{% endhint %}

| Mode Ability Status |  ID |
| ------------------- | :-: |
| Play one Time       |  0  |
| Hold by Input       |  1  |
| Hold by Time        |  2  |
| Toggle              |  3  |

{% hint style="success" %}
To create a new **Mode ID** go to Assets > Create > Malbers Animations > ID > **Mode ID**
{% endhint %}

{% hint style="info" %}
You can also access these values via script using **`ModeEnum`** static class.

&#x20;E.g. : **`ModeEnum.Action`**
{% endhint %}

## <img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-Lznk57n45x4ZSDXdYRB%2F-Lznl8qCcWOvgU_JSmnZ%2Fimage.png?alt=media&#x26;token=c30e98fa-0b32-40c6-a094-362fe4ac8370" alt="" data-size="line"> Stances IDs

| Name    |  ID |
| ------- | :-: |
| Default |  0  |
| Sneak   |  1  |
| Combat  |  2  |
| Wounded |  3  |
| Stand   |  4  |
| Roll    |  6  |
| Crouch  |  7  |

{% hint style="success" %}
To create a new **Stance ID** go to Assets > Create > Malbers Animations > ID > **Stance ID**
{% endhint %}

## <img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-Lznk57n45x4ZSDXdYRB%2F-LznnfX-bZmSmJ7hQTc2%2Fimage.png?alt=media&#x26;token=fe311007-6048-4583-80ed-297ebd7d1b0d" alt="" data-size="line"> Stats IDs

| Name    |  ID |
| ------- | :-: |
| Health  |  1  |
| Stamina |  2  |
| Mana    |  3  |
| Air     |  4  |
| Hunger  |  5  |
| Thirst  |  6  |
| Noise   |  7  |

{% hint style="success" %}
To create a new **Stat ID** go to Assets > Create > Malbers Animations > ID > **Stat ID**
{% endhint %}

## <img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-Lznk57n45x4ZSDXdYRB%2F-Lzno7gkMm6ZruB3tO-O%2Fimage.png?alt=media&#x26;token=a7bfabcc-d441-4875-a0ac-2a2de6686bed" alt="" data-size="line"> Actions

| Name                    |  ID |
| ----------------------- | :-: |
| Stun                    |  1  |
| Eat                     |  2  |
| Pet                     |  3  |
| Level Up                |  4  |
| Talk                    |  5  |
| Sleep                   |  6  |
| Drink                   |  7  |
| Seat                    |  8  |
| Crawl Under             |  9  |
| Dig                     |  10 |
| Lie                     |  11 |
| Stand                   |  12 |
| Push Stand              |  13 |
| --                      |  -- |
| Enter Hole              |  15 |
| Roar Caw Howl           |  20 |
| Perching                |  21 |
| ----------------------- |  -- |
| Happy                   | 101 |
| Sad                     | 102 |
| Angry                   | 103 |
| Scared                  | 104 |
| Sick                    | 105 |
| Confuse                 | 106 |
| Say Yes                 | 107 |
| Say No                  | 108 |
