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
Zwartje
Novice


Joined: 08 Feb 2007
Posts: 45

PostPosted: 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?
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: 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
Reply with quote
Zwartje
Novice


Joined: 08 Feb 2007
Posts: 45

PostPosted: 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.

Any idea how to remedy this? Or do I have to wait till the problem with %e is solved?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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)
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: 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
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