Game Development Community

Rpg Npc

by Rudolf Kajan · in Game Design and Creative Issues · 12/26/2006 (10:53 am) · 6 replies

Hi,
I am working on RPG and just can't figure out how should I do interaction with NPCs - what would be the best way to start dialog for example - should I make bigger bounding box around NPC and check player's collision with it and then load appropriate GUI ? anyone better idea ?

#1
12/26/2006 (11:01 am)
You could check the player's range from the NPC, and whether he is facing the NPC and standing still. So that way, the NPC knows when someone runs up to him/her and stops, then maybe count for a second and pop up the dialog on that player's screen? Or you could do the standard right-click from the player to initiate the conversation.
#2
12/26/2006 (11:06 am)
Omg, rightclick from certain distance, that's it :) thank you !
#3
12/26/2006 (11:09 am)
Do a search for Click n Pick or World Click resources, and they'll get you that functionality too...
#4
12/26/2006 (11:19 am)
How do I use .patch files that came with article you mentioned ?
#5
12/26/2006 (11:22 am)
There's a help section that goes into how you apply .patch files. I apply mine manually since I've applied a lot of patches, but if you haven't you might get away with an automatic. I haven't done it in a long time, so it's better if you look at the help section for that.
#6
12/26/2006 (11:27 am)
Take look at this, it might help you.

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3531