ID:170544
![]() Jan 12 2005, 11:28 am
|
|
I've been having trouble coming up with a good double click command. I want it so the person can double click a mob of a NPC and the NPC talks with that I told it to responde with. Any suggestions on a easy version of this.
|
Here's a basic structure of NPC dialogue:
mob/NPC And an example: mob/NPC/Cow Now, when a player clicks on a cow, he will get "Moo"ed. Depending on the complexity of your game, you probably would want a proc instead: mob/NPC And an example: mob/NPC/Cow Although the latter may seem more cumbersome due to its slightly longer length, it's probably the better way. That way, if you want anything to happen when a player enters into a conversation with an NPC, it's much easier. For example, if you wanted a player to be able to buy from a shopkeeper by double clicking on it: mob/NPC/Shopkeeper |
_>He asked a question on DWSoE(Shadows of Erdrick), and it was basically another system. _>I think mine answers his question |
Hell Ramen wrote:
_>He asked a question on DWSoE(Shadows of Erdrick), and it was basically another system. I didn't actually see your post. I was busy writing the shopkeeper code =P. |
Wizkidd0123 wrote:
Hell Ramen wrote: I know. :p Your's was more wide-ranged, and better for other things. :p I just had a bit better knowledge of what he wanted. |
[edit]There, try that
:p
Remember, it's okay to use "usr" since it's a click proc.
[edit]OOOOOHHH...
one sec, let me fix this