|
Zwartje Novice
Joined: 08 Feb 2007 Posts: 45
|
Posted: Thu Mar 01, 2007 10:55 am
Configuring the mapper |
This is probably not an error of the mapper, just me not managing to configure it correctly, so I didnt put it in Zugg's post on the subject.
Somehow I cannot get the #nomap to work like it used to in ZMUD, and thus the automapper isnt recognising the room name.
The room I am trying to configure on looks like this:
You pass through an open door.
Sweet-smelling herbalists.
You are able to see by the light of the sprite. A large canopied bed made from
applewood stands here.
You notice exits north (an open door), and down (an open door).
920h, 745m cdefi({-})
Last line being my prompt (numerics as well as the part between m and - are variable)
I have the 2 following triggers:
Pattern: %dh, %dm*~-
Script: #TAG prompt
Pattern: You pass through an open door.
Script: #NOMAP
When I reconfigure the mapper keeps insisting that 'You pass through an open door.' is the room name.
Exits are recognised correctly so far.
Any advice? |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Thu Mar 01, 2007 3:03 pm |
Use a roomname tag with ANSI colors
Set the trigger to be an ANSI trigger
Pattern: ^%e[1;33m(*)%e[0m.
Script:#Tag Name %1.
In the current version of cMud the %e isn't working though so you would instead need.
Pattern: [1;33m(*). |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Zwartje Novice
Joined: 08 Feb 2007 Posts: 45
|
Posted: Thu Mar 01, 2007 6:43 pm |
I tried out your suggestion, Arminas, thanks already.
First attempt had literally '%1' in the roomname.
Then I changed the tag trigger to use a variable instead.
Pattern: ~[1;33m(*).
Script:
room_name=%1.
#Tag Name @room_name
This works so far that it now stores the roomname in the mapped locations, but with ansi codes at the end:
Avenue of Kings[0m.
Any idea how to remedy this? Or do I have to wait till the problem with %e is solved? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Mar 01, 2007 6:48 pm |
You could have a script to break it apart for you. Something like this would work:
#tag Name %item(%replace(%1,"[","|"),1) |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Thu Mar 01, 2007 6:53 pm |
%stripansi(%1.)
|
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
|
|