Chapter 10. Interacting with NPC
In a virtual world, there are some characters that are not controlled by the users. These characters are called Non-Player Characters, or NPC in short. Traditionally, NPCs are controlled by the game master in role-playing board games. In virtual a world, the NPCs are controlled by the server or the computers that serve some distinguished purposes. They can range from a house guard to the king in the castle.
In this chapter, we will discuss the purpose of having non-player characters in the virtual world. We will control the NPC to move around the world. We will also let players interact with the NPC by chatting or trading items.
We will also cover an advanced server-side extension technique to use Java extension ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access