# NPC

![](/files/-MhrUe8TET_2yYVdwJTR)

NPC 샘플맵이 새로 추가되었어요! 😎

NPC 샘플 맵에서 NPC를 어떻게 사용하는지 체험해 볼 수 있답니다. 🥰

샘플맵 바로가기

{% content-ref url="/pages/-MVtfYoN7zHoqLwn7vIV" %}
[Scripting](/ditoland/sample/scripting.md)
{% endcontent-ref %}

## NPC 설정하기

NPC 오브젝트를 클릭한 다음, 프로퍼티창에서 NPC의 이름(NPCName)을 설정할 수 있어요.

![](/files/kJgp2RoSgtZKh4MjFHgc)

Config 오브젝트의 프로퍼티창에서 이름 색상(NPCNameColor)과 이름 표시 여부(IsUseNameHUD)를 설정할 수 있어요. 🎉

![](/files/uSAdxoEo3fvjMwQjvS7d)

## NPC 대사 출력

Config 오브젝트를 클릭한 다음, **IsUseMessage**를 체크해요.

그 다음, MessageList 폴더에 있는 그룹을 수정해서 출력할 대사 내용을 설정할 수 있어요. 대사를 많이 출력하고 싶으면 그룹을 복제(컨트롤+D)해서 자유롭게 추가하세요. 👍

그룹 오브젝트의 이름은 출력할 대사 내용로 적용된답니다. 📝

![](/files/JAsmwzISJsgvtrvhxyHy)

그룹 오브젝트의 프로퍼티에서 MessageInterval과 MessageType을 설정할 수 있어요.

MessageInterval은 해당 대사를 출력할 시간이에요. ⏱

MessageType은 대사의 출력 방식인데, 설정한 값에 따라 아래처럼 동작해요.

0 : 채팅창에만 표시 📰\
1 : 말풍선에만 표시 💬\
2 : 모두 표시 📰💬

## 기타 문의 방법&#x20;

![](/files/-MWcP-8TgALiIzpjrebX)

**다른 개발자들과 다양한 정보를 공유하세요. 디토랜드 운영에게 직접 질문할 수도 있습니다.**

### [**디토랜드 디스코드 바로가기👉**](https://discord.gg/7EugJsh4nX)


---

# 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://ditoland-utplus.gitbook.io/ditoland/manual/npc.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.
