Adding speaking NPC - GreenBlackSky/the_steam_song GitHub Wiki
Our players need someone to speak with.
- Add a model to the game. Mesh, material, animation, you know the drill.
- Add an icon to the NPC (See Add new icon to object in game )
- Add "Talkable.cs" to the object in the inspector via "Add component" button, or drug'n'drop.
- In the "speakerUID" field of "Talkable" set speakers uid. It is a string, and it must be unique.
- Open Dialogue editor with "Window -> Dialogue" menu. Here you can create lines and relies for your NPC.
- UID of your speaker will not appear in any drop down menus in editor until you save your conversation with "Save as".
- UID of conversation must match UID you set for your NPC. It is case-sensetive.
- Create a conversation and save it. You can edit it any time. Now you have someone for your player to talk to, nice job!