what i need is a tutorial on how to make a npc that you can click on and will pop up a window with text and a button to close the window. thank you for the help
Errrr… That’s somewhat vague. I mean, are you wanting the NPC to display GUI Text? Or have another action involved like give the player money, directions, etc? There lies the problem, your question should be reworded to “Can someone recommend a tutorial on how to program in Unity”. How much experience do you have with programming in Unity? What do you want to achieve?
Recommendation: Download MMORPG Controller Demo from Asset Store, play with the code on the NPC’s in the Demo. (The Viking ones)
Not much info to go on. NPC’s can be simple or very complex.
Layout the interaction you are looking for (ie)
(1) Click on NPC.
(2) Subtext pops up.
(3) Options for what you want to say.
(4) Random or set reply.
(5) Set reply because of your players sex, guild, ect;