Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > Advanced MUD Concepts
Click here to Register

Reply
 
Thread Tools
Old 10-31-2012, 05:55 AM   #1
jeremystratton
New Member
 
Join Date: Jul 2012
Posts: 7
jeremystratton is on a distinguished road
Question Dynamic room-descriptions: directions

I'm starting to really like the idea of using dynamic room-descriptions heavily. That doesn't mean slap them in, willy-nilly. There will be places they won't work as well and places I won't want them at all, but for the places I will be using them in, especially the heavy areas, I'd like to make them work.

One major goal is that I want a highly literary world that has a fair degree of changing based on other factors; weather, time of day, classes, etc...

One thing that occurred to me was direction. If you think about the intersection in a city, and 4 different people, each entering that intersection from a different direction, how they see things could be very different.

I don't know if this is possible, given the way rooms are programmed, but is there a way to create a trigger for a specific room description, based on the direction from which a player entered that room?
jeremystratton is offline   Reply With Quote
Old 10-31-2012, 06:08 AM   #2
Leech
Member
 
Join Date: Jul 2008
Name: John
Home MUD: The Inquisition: Legacy
Posts: 65
Leech is on a distinguished road
Re: Dynamic room-descriptions: directions

I have seen it done before, but not through OLC scripting - it was coded in to the OLC itself and builders could edit it. I think it was actually on The Builder Academy where I saw this. Alternatively you might want to try messing with doorways. Depending on other MUDs you've played you will be familiar with something along the lines of:

"You go west, through the doorway."

You could change 'door' to be whatever fits. "You go west, through the grimy street, and see a dirty man hawking pieces of worn glass jewelry."

I'm not a coder and I hardly know any scripting, but I can answer your question with a resounding yes, there is a way =P And somebody more intelligent than I should be able to tell you a few ways how.
Leech is offline   Reply With Quote
Old 10-31-2012, 10:14 AM   #3
KaVir
Legend
 
KaVir's Avatar
 
Join Date: Apr 2002
Name: Richard
Home MUD: God Wars II
Posts: 2,052
KaVir will become famous soon enoughKaVir will become famous soon enough
Re: Dynamic room-descriptions: directions

Quote:
Originally Posted by jeremystratton View Post
I don't know if this is possible, given the way rooms are programmed, but is there a way to create a trigger for a specific room description, based on the direction from which a player entered that room?
It might be easier just to store an "entered direction" variable on the player when they enter the room, as the dynamic description code will already be using variables stored on the character to determine other parts of the description. You can then clear the variable after the description is displayed, if you wish.

You may also find this discussion of interest.
KaVir is offline   Reply With Quote
Old 11-02-2012, 08:06 AM   #4
jeremystratton
New Member
 
Join Date: Jul 2012
Posts: 7
jeremystratton is on a distinguished road
Re: Dynamic room-descriptions: directions

Quote:
Originally Posted by KaVir View Post
It might be easier just to store an "entered direction" variable on the player when they enter the room, as the dynamic description code will already be using variables stored on the character to determine other parts of the description. You can then clear the variable after the description is displayed, if you wish.

You may also find this discussion of interest.
Oh. Awesome. I really like this idea. Thanks KaVir! And thanks for the door-idea, Leech!
jeremystratton is offline   Reply With Quote
Reply


Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 11:18 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2014