# 게임에 ERC-20 토큰 연결하기

펑크랜드 게임에 ERC-20 토큰을 연결하여 여러 혜택과 기능을 추가할 수 있습니다.

[펑크랜드 게임에 외부 NFT 연결하기](https://nekoland.atlassian.net/wiki/spaces/nekoland/pages/1838710787)에서와 같이 ERC-20 토큰을 연결하려면 이벤트를 생성해야 합니다. 이벤트 생성이 완료되면 이벤트 팝업창 \[페이지 2]에서 “조건 분기” 커맨드를 선택한 후 맨 끝에 “ERC-20 Token”이라고 적혀 있는 탭으로 이동합니다.

“현재 플레이어가 ERC-20 보유 중” 항목을 체크합니다. 토큰의 메인넷과 컨트랙트 주소, 최소 웨이 수량을 입력하여 조건을 설정합니다. 수량이 정해지지 않으면 조건이 실행되지 않으니 반드시 수량 정보를 입력하세요.

조건 설정 완료 후 플레이어가 이벤트를 실행하면 해당 토큰이 플레이어가 연동한 월렛에 확인되어 다음으로 참일 때나 거짓일 때 중 어느 커맨드가 실행되는지 결정됩니다.


---

# 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://docs.punkland.io/punkland/punkland-studio/web3/erc-20.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.
