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 |
In response to Wizkidd0123
|
|
_>He asked a question on DWSoE(Shadows of Erdrick), and it was basically another system. _>I think mine answers his question |
In response to Hell Ramen
|
|
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. |
In response to Wizkidd0123
|
|
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. |
In response to Hell Ramen
|
|
Actually, I want the NPC to talk with what I coded it to say. Not input what I want it to say.
|
In response to SpeyMan
|
|
mob/Help Does that help? |
In response to SpeyMan
|
|
And what/how did you code what you wanted it to say?
|
In response to DeathAwaitsU
|
|
Just change set the speach var for each mob. =/
mob/monster |
[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