|
Imagicka Newbie
Joined: 12 Dec 2001 Posts: 1 Location: Canada
|
Posted: Wed Dec 12, 2001 5:18 am
Auto Mapping in a MOO |
Greetings...
I am currently trying to map out a MOO, which typically has the following output:
You move in that direction.
,-[ Location - Room Name ]------------------------------.
| Grand walls of speckled granite continue down the Entrance Hall, lined |
| with large portraits of former students of the castle that either smile |
| widely at passersby or offer them haughty looks of disdain. The frames |
| are made of polished ebony, and reflect light from the candle sconces that |
| are fixed at intervals along both sides of the hall. It seems rather dim |
| in this place, matching the descriptions of castles in fairy tales, though |
| the place certainly is not dreary, as the din of many voices can often be |
| heard to the east, the mahogany doors leading into that area not |
| preventing such noise. Spaced along the edge of the doorframe are the |
| four house crests, engraved in stone. Each are equally unique and |
| beautiful, especially since they're painted the house colors. |
+-[ Obvious Exits ]-----------------------------------------------------------+
| (S)outh, (E)ast, and (M)arble (S)taircase |
`-----------------------------------------------------------------------------'
Edmond Blackthorne comes in from Entrance Hall; Southern Section.
Now, of course, this is my problem... The automapper seems to be able to find the exits fine enough, but gets confused on the room name, and description...
How can I manually configure the mapper to grab the room name?
Would it be Paragraph: 0, Line: 1? (I've tried that and it doesn't seem to work.)
Oh, and I have another question, how can I add non-directional exits? Such as, tell the mapper, I want to go 'MS' and make it think it's north?
Any and all help on this subject would be greatly appreciated.
John Imagicka Blackthorne
Cajun Nights TinyMUSH
ICQ: 13682963
MSN: Imagicka@hotmail.com |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Dec 14, 2001 1:07 am |
The mapper is quite a nice feature. I can only imagine how much effort Zugg has put into making it. She is still a fickle creature though. I am going to make some assumptions based on the output you posted.
First thing to try is the use of the TAG command to force the mapper to behave. Your MOO seems to have a really easy one to do this with.
#TR {.-~[ * - (*) ~]%x.$} {#TAG name %1}
Next we wish to make sure it doesn't collect garbage through the use of the NOMAP command.
#TR {+-~[ Obvious Exits ~]%x+$} {#NOMAP}
The second to last step is to reconfigure the mapper by way of its wizard. It should collect be fine.
For your next problem we must use the MapDir special character. It defaults to ">". Your sample yields a command of ">MS" to cause you to step and have the mapper create a room with the proper exit info. If you wish to force the mapper to draw the room in a specific direction, lets say north, the command would be ">MS>N". Of course that isn't very useful by itself. You will have to manually set the return exit on the other side.
If you are like most you want your walking macroed, and now you have a walk command that can't be macroed, or can it? It takes a bit of work but here is a way to macro it.
#VAR ValidDirection {nsewud}
#KEY KEY0 {
#VAR I {%roomexit(%roomnum)} {_nodef} "Temporary"
#WHILE (%numitems(@I)) {
#IF (%pos(%item(@I,1),@ValidDirections)) {
#NOOP %pop(I)
} {
#IF (%null(%item(@I,1))) {
#NOOP %pop(I)
} {
%item(@I,1)
I=%null
}
}
}
#DELCLASS "Temporary"
}
In you post you asked how you could make it think the command "MS" is north. The above gets you close to that. The drawback is that if you have more then 1 non standard exit in a room the macro will only perform the first one. Good luck. |
|
|
|
|
|
|
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
|
|