Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Mob Speak
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Garaelb
(54 posts) Bio
|
| Date
| Fri 11 Jul 2003 09:35 PM (UTC) |
| Message
| 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:
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~ | | Top |
|
| Posted by
| Nick Gammon
Australia (23,166 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Fri 11 Jul 2003 10:06 PM (UTC) |
| Message
| There is documentation on that (mob progs) in the doc directory of stock SMAUG. There are various triggers you can use (eg. random, enter room, something being said) and then it goes into its own code - you can probably nut the code out from the examples in the areas.
I think there are examples of mobs responding to thing that are said in the stock areas.
Generally the mp-something commands are put in for mobs. The are Mob Prog commands (MP). |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Garaelb
(54 posts) Bio
|
| Date
| Reply #2 on Sat 12 Jul 2003 12:13 AM (UTC) |
| Message
| Ok!!! I feel like a doltish clod now LOL I wonder if I can get a job working as stunt double for the croc hunter LOL
Thanks Nick
You da man!
~G~ | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
14,609 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top