|
senseofeven Newbie
Joined: 08 Nov 2018 Posts: 6
|
Posted: 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. |
|
|
|
hpoonis2010 Adept
Joined: 18 Jun 2019 Posts: 279
|
Posted: 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. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
|
|