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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
cuprohastes
Wanderer


Joined: 22 Oct 2006
Posts: 92

PostPosted: Tue Dec 15, 2009 2:50 pm   

Complex Mapper problem
 
I'm having trouble with the mapper. I'm on a MUCK that uses the following format for rooms:

Code:

You walk westwards into Town
Commercial District

        The Commercial District is full of industrial building and warehouses.
        And yet tehre is a faded elegance to the buildings suggestive of better
   times and better days.?

---- << Players >> --------------------------------------------------------
 Mr. Dude              An explorer                                0s    OOC
---------------------------------------------------------- << Exits >> ----
 Renovated Warehouse <RW> Old Townhouse <OT>       The Brown Bathhouse <BB>
 Barren Street <N>        Western Gate <W>         Central Square <E>     
 The Rose Hotel <RH>      Alley <S>                General Hospital <GH>   
---------------------------------------------------------------------------


I think I've got it extracting the room name and the room desc, but I can't get it to extract any of the exit names - not even the one that's <s>!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Dec 15, 2009 7:22 pm   
 
Looking at the Exits tab in the mapper configuration you can try just the Exits After Keyword, Multiline Exits, Use Short Exit Names, and Use Entire Exit Paragraph options. If you are interested in the RW type of exits (or if fiddling with the Configuration options doesn't seem to be getting anywhere), or if there's a possibility of them having NEWS in their letter codes, then you'll want to go straight to #TAG triggers so you can sort out which is which.

Code:

#trigger "tExits" {^[-] << Exits >> [-]$} {
  Exits.normal = ""
  exits.other = ""
}
#condition {(*)} {
  #if (%begins(%1," ")) {
    $exits = %replace(%replace(%1,"> ",">|")," <","|<")
    #forall $exits {
      #if (%begins(%1,"<") {
        #if (%len(%i) = 3) {
          #additem Exits.normal %subchar(%i,"<>","")
        } {
          Exits.other = %additem(%subchar(%i,"<>",""),@exits.other)
        }
     }
  } {#state tExits 0}
} {manual}
_________________
EDIT: I didn't like my old signature
Reply with quote
cuprohastes
Wanderer


Joined: 22 Oct 2006
Posts: 92

PostPosted: Tue Dec 15, 2009 8:05 pm   
 
Ok... being new to the mapper, I'm not exactly sure how to use that. Also the mapper app now crashes every time I enter a new area, so it's a bit of a moot point.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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