Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Morgul_Wraith
Newbie


Joined: 25 Dec 2001
Posts: 5
Location: Canada

PostPosted: Wed Jan 02, 2002 9:13 am   

Is it possible...
 
I know, the title doesn't sound like a promising question, and I assure you, it is not...

But... Here is my question...

I use zMUD 6.16 (as I refuse to use the Beta, heh, I consider it to be a risky update, but don't take my choice). However, the automapper sometimes can be a pain.

Is there a way to get the automapper to parse a room description to maybe have it ask "Have you been in this room before?" and ask "Is this (room)?" if the automapper has duplicates of one room. I know that a lot of MUD Builders save time using cheats such as ExDistance or they'll alias/macro a description to a button and use the same one for xxx number of rooms.

So my question is, is it possible to have the automapper assign ##'s to rooms, and ask the player if he's been to a room before if it matches up with an earlier automapper entry.

The problem with this is the fact that on some MUDs they will have a bunch of ways to go from one area to the recall area, sometimes not on the same up/down(vertical) number as they went up/down, IE: you go 5 up, 3 east, 2 north, 5 west, and 2 down and end up at recall.

Not only does this screw up maps, but it makes things harder to map out.

I go by many names under the skies. I am known to some as Phobos, to others as simply Fear. To some I am Death, to others I am the Reaper.
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Wed Jan 02, 2002 6:16 pm   
 
zMUD offfers a plethora of functions for working with the mapper. The following script will check for similar room name and room descriptions in other rooms in the same zone.


#TRIGGER {Exits:} {
#LOOP 0, %eval(%numrooms-1) {
#IF ((%i <> %roomnum) & (%roomname(%i)=%roomname(%roomnum)) & (%roomdesc(%i)=%roomdesc(%roomnum))) {
#SAY This room has a name and description similar to room %roomnum~.
}
}
}


I've set it to trigger off of the Exits line for the room.

Troubadour
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Jan 02, 2002 11:54 pm   
 
Two dangerous things to note with Troubador's code, after about 500 rooms it will really slow you down. The other only comes into play if you have been entering or changing vnums for rooms in the mapper. In which case you will need to replace all instances of %i with %mapvnum(%i).
Personally I recommend that you just move rooms that are created in the wrong spot, such as those nifty 1 way exits back to the recall room, to the right spot and merge the rooms.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net