Talking to characters

slackers_inc
08 Mar 2010, 03:09
I'm sure this may be posted on here somewhere, but I wasn't able to find it. I was wondering if anyone knew how to make characters more interactive when talking to them. That is to say, make them say different things. So, say for instance the player typed "Talk to Dave" and it displayed the message.. "I've been waiting for you, where have you been?" How could I make it so the player can type where ever they've been, and get it to print a message with Dave responding with something like... "While you've been at (name of place) Seth has been destroying the town!" If anyone can help I'd be most grateful!

Redsun
12 Mar 2010, 15:20
The player wont need to type that.

Talk to the NPC, then have a If statement trigger that does a random number then the
NPC will say something back depending on what that random number was, after witch
a Menu appears that Lists all available responses to the NPC's response.

I always use custom menues, I never use the Default pop up one.

Each available response has a Number next to it like this

1. I've been around
2. Why do you want to know where I've been?
3. Your an Idiot! I'm not Telling you!
...etc

Then you just type the number in and the NPC Knows what you said and replys accordingly.