> For the complete documentation index, see [llms.txt](https://visionfrog.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://visionfrog.gitbook.io/untitled/func/getpendantdata.md).

# GetPendantData

Retrieves specific integer values for a pendant using its ID or Name.

## 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)
```
