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
Eraldo
Beginner


Joined: 05 Aug 2003
Posts: 17
Location: Austria

PostPosted: Tue Nov 22, 2005 6:02 am   

mapper blocks
 
i have tried and tried to get the mapper to work on my mud... buts thats a real gauntlet...
the mud is avalon.mud.de
and a randome mud output looks like this

Code:
+-------------+ Du stehst auf der Strasse Al'Chwarismi, die durch das neue
|......|......| Handwerksviertel fuehrt. Viele Materialtransporte gehen
|.(B).[ ].(*).| hier durch. Im Nordwesten steht ein huebsches Haeuschen. Es
|..|...|...|..| ist spaet am Nachmittag.
|-[ ]-[X]-[ ].|
|......|.....\|
|.(*)-[ ]....~|
|.OoO..|OoOo~~|
+-------------+
   Ausgaenge: Norden, Westen, Osten und Sueden.
Ein Wegweiser.



The letter salad should be a map...
EDIT by Taz: Fixed the letter salad.

My main problems are...
that the automapper ignores the first line of the description !
and that it does not mark the exits as such


can someone help me get that to work ?
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Tue Nov 22, 2005 11:00 am   
 
You may have to tag those parts if the graphical map is interfering. Quickly off the top of my head (I'm heading out the door):

#TR {your prompt} {#TAG prompt}
#TR {Ausgaenge~: (*).} {#TAG exits %1}

I don't have time right now to figure out a description tag. Hope this little bit helps. Good luck.
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Nov 22, 2005 11:53 pm   
 
You probably have to do a custom mapper. I have a very similar that you can modify for your uses. It's for the silverbridge mud.

Here's a sample mud output.
Code:

+---------+   Temple Steps
|    |    |   [ north south ]
|   -1-   |   You stand atop the dizzying heights of the Temple steps.  Before
|    #    |   you the enormous Temple rises into the clouds and you hear
|    *    |   murmuring and chanting from within.  From this vantage point you
|    |    |   can look out upon the beautiful city and you feel content and at
|   -5-   |   peace to belong here.
|    |    |
+---------+

     A Sacred Fountain bubbles out clean water.
A mysterious looking man is here

<199/521hp 271/271m 815mv 39754xp 0g DOWN>n


And here's the code.
Code:

#CLASS {mapper}
#ALIAS onroomcreate {
  #noop %roomdesc( , @room.desc)
  #noop %roomexit( , %replace( @room.exits, " ", "|"))
  }
#ALIAS onroomenter {; This alias is called when the character enters a room.}
#VAR dir {n} {}
#VAR NoMaps {You are thirsty.|You are hungry.|The night has begun.|The night has begun.|The sun slowly disappears in the west.|You feel a faint glimpse of power as the tower's magic recharges.|You feel a faint glimpse of power as the tower's magic recharges.}
#VAR NoDirs {That room is private right now.}
#TRIGGER "mapfix" {+---------+ (*)} {
  #pri {
    room=""
    room.name={%1}
    #tag name {@room.name}
    #temp {$} {
      #pri {
        #tag desc @room.desc
        #state mapfix 0
        #ok
        }
      } notrig
    }
  }
#COND {&14~[ (*) ~]} {
  #pri {
    room.exits=%1
    #tag exit %1
    }
  }
#COND {&14(*)} {#pri {room.desc=%concat( @room.desc, "%1%crlf")}} {looplines|param=7}
#COND {(*)$} {#pri {#if (%trim( %1)="+---------+") {#noop} {room.desc=%concat( @room.desc, %trimleft( "%1%crlf"))}}} {looplines|param=20}
#CLASS 0


Hope that helps... Good luck.
_________________
Asati di tempari!
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