# GetPendantData

## Rules:

GetPendantData(string ID/Name : string goal : string valueName)

Returned value: int

Only supports retrieving int (integer) type data; float (decimals) are not supported.

Retrieves the CountVal or SpecialVal of a specific pendant using either its ID or Name.

Fallback: Returns `0` by default if the specified pendant does not exist.

**Examples：**

Retrieve the `CountVal` of a pendant by ID (`P-Neutral-6`)

```csharp
GetPendantData(ID : P-Neutral-6 : CountVal)
```

Retrieve the `SpecialVal` of a pendant by Name (Stable Water Source)

```csharp
GetPendantData(Name : Stable Water Source : SpecialVal)
```
