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
senseofeven
Newbie


Joined: 08 Nov 2018
Posts: 6

PostPosted: Wed May 04, 2022 1:33 pm   

Help with Cmud Mapper - Capturing Room Names
 
Hi guys,

Would like advice on what might I be doing wrong to set the mapper to properly map all the exits. I tried to do auto, but it looks like the mapper doesn't honor that the exit is in the room name.

Code:
Pattern:
On a Masssive Road [EWSQ]

Sometimes, they look like:
On a Massive Road [NS(W)]

Trigger (with regex enabled):
^(.*?) \[(.*?)\]$

$roomname=%trim(%1)
$exits=%2
#TAG name $roomname
#TAG exit $exits

Configured settings for Room Exits - Exit in Room Name, Use short exit names, Single character exits

But I always get misaligned or missing exits. Thank you.
Reply with quote
hpoonis2010
Adept


Joined: 18 Jun 2019
Posts: 279

PostPosted: Wed May 11, 2022 4:48 am   
 
Use the offline option. I have found that cmud is strangely crap at auto-config compared to zmud. Why it is so is a mystery.

For myself and multi-paragraph room descriptions: I have none. It is much less of a headache to just have names and exits.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Sat May 14, 2022 10:53 pm   
 
I would use a standard trigger myself. Something like:

Code:
#TR {(*) ~[(*)~]$} {
  $name=%1
  $exits=%replace(%replace(%2, ")"), "(")
  #TAG name $name
  #TAG exits $exits
  }
_________________
Discord: Shalimarwildcat
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