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
➜ Just Shoot Me Now
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Garaelb
(54 posts) Bio
|
| Date
| Fri 25 Jul 2003 04:20 PM (UTC) |
| Message
| Ya could have figured by the topic title who it is - and you'ld be right! :-)
Once again the whole Mprog Oprog Rprog thing has me stumped.
I've looked at most of the examples of Mprogs in the game and still can't find one that does what I want to do.
Situation -
Player enters a room with a MOB in it.
Player Asks, tells, says to or whatever MOB about Dragons
"You say, Where does the red dragon live?"
"MOB says, The red dragon lives in the lost cave north of town."
How do I write the mprog to react to the KEYWORDS red dragon?
The other one that I still can't figure out is how to write a rprog.
Player walks into a room with no obvious exits - and no hidden ones either. The only thing in the room is a mirror. DO I put a real object called mirror in the room and write a oprog for it or can I simply have the word MIRROR in the room description, and if and when they LOOK MIRROR the mirror description would tell them to ENTER MIRROR and the mirror would then take them to a new location/room? How would I write that?
I guess I'm just a thick headed, to old to learn, dried and dusty dummy, but for the life of me I just don't understand how to write mprogs and thier kin. | | Top |
|
| Posted by
| Rob Harper
(108 posts) Bio
|
| Date
| Reply #1 on Fri 25 Jul 2003 06:33 PM (UTC) |
| Message
| | -_- you got nothing outta what I told ya, huh, geez you should have saved the elevator prog from my mud that I showed you it did exactly what you asked...plus quite a bit more. | | Top |
|
| Posted by
| Garaelb
(54 posts) Bio
|
| Date
| Reply #2 on Fri 25 Jul 2003 06:43 PM (UTC) |
| Message
| I thought I had it saved - I guess thats what I get for thinking though LOL.
Any chance you might email it to me?
Garaelb(at)kc.rr.com | | Top |
|
| Posted by
| Leprakon
(28 posts) Bio
|
| Date
| Reply #3 on Fri 25 Jul 2003 09:17 PM (UTC) |
| Message
| | if it's not too much trouble rob, could you email it to me too (theworldisflat@comcast.net)? i've been thinking about instituting elevators in my MUD too. | | Top |
|
| Posted by
| Rob Harper
(108 posts) Bio
|
| Date
| Reply #4 on Sun 27 Jul 2003 03:45 PM (UTC) |
| Message
| | ahh, sorry been pretty busy lately, after disecting the elevator prog just tell me what you want and I'll make a quick prog for it, I was copy and pasting mine and it would just be plane confusing for you cause I have it broken and scattered over objects/mobs/rooms between the elevator buttons the elevator people , and th actuall elevator it self, but be specfic what you want ie do you want the prog to be object or room oriented etc and I'll make a basic outline of it and you should be able to learn from there. | | Top |
|
| Posted by
| Garaelb
(54 posts) Bio
|
| Date
| Reply #5 on Sun 27 Jul 2003 11:02 PM (UTC) Amended on Sun 27 Jul 2003 11:05 PM (UTC) by Garaelb
|
| Message
| Thanks again Rob -
1st)
Here is the room description for one room -
Quote: The Ornate Mirror
As you approach the mirror you notice the reflections of everything behind you becomes misty and fogged over. The light from the torches in the room behind you seem to fade away only to be replaced by the glow of the mirror. You feel yourself being drawn into the mirror by some irresistible force.
Some of the runes on the mirror begin to glow even brighter as they form the words ENTER HERE.
Exits: south
The south exit is the one they came from. The idea is that the player is to Enter the mirror and it will exit them in a different room.
2nd)
room description -
Quote: The Obelisk of Darkhaven
You have entered a large room. In the very center of the room is a ring of concentric stone circles. At the center of the circle is a dais with ten holes. A small crystal that is about the same size as the holes rests in the center. Beside each of the holes is a glyph with the names of several locations written beside it. Touching a glyph seems to bring the device to life.
The idea here is like your elevator - wherein a player would press a button or in this case a glyph and would be 'magically' transported to another location
Glyph 1 = Darkhaven
Glyph 2 = Ellehcym
Glyph 3 = Korrinth
Glyph 4 = Drakmoore Castle
Glyph 5 = Stoole
Glyph 6 = Olfhiem
Glyph 7 = Sinibar
Glyph 8 = Thracia
Glyph 9 = Mount Ghoa
Glyph 10 = Meulerburg
3rd)
room description -
Quote: The Branded Oxen Tavern
You enter the city's grungy tavern, in fact the only bar inside the city itself, appropriately connected to the city's inn to the east. Smoke and the smell of alcohol mix with laughter, quickly giving you a dull headache. To the east is town inn, while the fresh air of the outdoors stands at There is a loud and obviously drunk man here handing out pardons to everyone.
Exits: north east.
The bartender stands behind his counter.
The drunk judge sits upright here.
A dark patron drinks quietly in the corner.
If a player mentions the word Dragon while in this room the Dark Patron walks over to the player and says "For a price I can tell you of the dragon which you seek"
If the player gives the dark patron 500 coins or more he will tell the player all he knows of the dragon. Any ammount less than 500 coins and the dark patron scoffs at them and says "you don't want to know very much do you?
Thats what I am trying to do :-)
I hope that is enough information for you.
| | Top |
|
| Posted by
| Lothig
USA (5 posts) Bio
|
| Date
| Reply #6 on Sat 02 Aug 2003 02:35 AM (UTC) |
| Message
| mpedit <mobname> add speech 'red dragon'
then in the editor type what ever you want to happen | | 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.
24,988 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top