Axe Software Forums
  Quest Developer Forum
  Speaking


Author Topic:   Speaking
Tanin posted 12-10-2002 00:17 BST     
I can't seem to figure out how to have one of my mobs speak something once and only once, is there an easy way to set it so a mob will say something only once and not repeat it each time the char. enters the room or speaks with him (the mob).

Also, is there a way to output the text which the mob says to the char. to another window as well as the main screen.. so the player can save the conversations and keep track of them.

Help please.. Im going mad.

Computer Whizz posted 13-10-2002 14:04 BST          
Right:

To get the person to say something only once, it's easier to set a property "spokento". If you have a variable, then you might need loads for different characters and it isn't very pretty...

You have an if statement in the "speak" block, and if the spokento property is false then print the message - if true then print "Go away" or anything you want.

The next part might be done in the help window - I'm not sure.
I would use a string variable and keep adding the sentances followed by "|n" and when a player wants to see the conversations, all he has to do is type in a command and it prints out the conversations had.

NOTE: You can have the property as a numeric, so you can have a long conversation, so he goes through 1, 2, 3, 4, .... Instead of just two (with a true/false statement).

Computer Whizz
(If you want an example I'll be working on one.)