Helo once again. While developing my new world I have several instances where I want a MOB to be able to give the players a clue or some piece of important information or just generally be able to say something to them. I have looked all over the web for such a help guide and or manual to do these things but haven't found one.
Question 1) - Is there such a guide or help file to tell you how to make mobs talk?
Question 2) - if not then how do I make them say something in response to a players question?
example: Boris the Thickheaded wanders into the Prancing Pony Tavern. There is a dark hooded figure, sitting quietly in the corner. Boris approaches the figure and (somehow) asks the figure about the GREAT RED DRAGON. The dark figure would (hopefully) respond by saying, "You young fool. The GREAT RED DRAGON can only be killed if you posses the ROD of DRAGON SLAYING. Legend has it that the ROD of DRAGON SLAYING was lost 2000 years ago in the MIRKY WATER SWAMPS to the south."
How would I go about making the MOB say that in response to the 'trigger' GREAT RED DRAGON?
Question 3) I looked at a couple of the other MOBs that do actually say something in the stock game, and notice some of them have program codes
Example:
My problem is that I don't understand this code very well. They look a little like C++ code but I'm not so sure of it. What language is it and is there a list of commands and what they are used for somewhere?
Thaks in advance for any and all help here.
You once and future wanna-be builder
~G~
Question 1) - Is there such a guide or help file to tell you how to make mobs talk?
Question 2) - if not then how do I make them say something in response to a players question?
example: Boris the Thickheaded wanders into the Prancing Pony Tavern. There is a dark hooded figure, sitting quietly in the corner. Boris approaches the figure and (somehow) asks the figure about the GREAT RED DRAGON. The dark figure would (hopefully) respond by saying, "You young fool. The GREAT RED DRAGON can only be killed if you posses the ROD of DRAGON SLAYING. Legend has it that the ROD of DRAGON SLAYING was lost 2000 years ago in the MIRKY WATER SWAMPS to the south."
How would I go about making the MOB say that in response to the 'trigger' GREAT RED DRAGON?
Question 3) I looked at a couple of the other MOBs that do actually say something in the stock game, and notice some of them have program codes
Example:
nudge $n
if class ($n) == Cleric
say This place is far too easy for a cleric of your power!
endif
if class($n) == Mage
say Look at you! Such a strong mage, and you're massacring gnolls?
endif
if class($n) == Augurer
say Do you not crave a greater challenge?
endif
shake
mea $n The small pixie pulls you close to her and whispers into your ear...
mer $n $I pulls $n close and whispers into $s ear...
mea $n $I says, "Why don't you go visit my friend Deren?"
mea $n $I says, "He runs a supply store at the entrance to the Academy."
mea $n $I says, "Give him this, and he will be happy to help you..."
if rand(50)
mpoload 10370 1 10
mpecho _blu $I utters the words 'eacret fafst'.
mpoload 10370 1 10
give staff $n
else
mpoload 10371 1 10
mpecho _blu $I utters the words 'eacret ildhse'.
give shield $n
endif
tell $n You must hurry! What I gave you is magical, and will disappear soon!
mpecho _yel The pixie vanishes in a flash of light!
mpgoto 10399
mpat 10399 mpecho purge
My problem is that I don't understand this code very well. They look a little like C++ code but I'm not so sure of it. What language is it and is there a list of commands and what they are used for somewhere?
Thaks in advance for any and all help here.
You once and future wanna-be builder
~G~