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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Sir1l
Wanderer


Joined: 01 Oct 2005
Posts: 54

PostPosted: Thu Jan 15, 2009 2:21 am   

Room Exits
 
In this game I'm playing the room exits have =east and -east and regular old east...the mapper is going haywire and I can't figure out to make it correctly direct these movements....any help?
Reply with quote
Sir1l
Wanderer


Joined: 01 Oct 2005
Posts: 54

PostPosted: Thu Jan 15, 2009 4:21 am   
 
my bad, here's output

Exits: east -west- =north= [south]

south is a door then the - and = don't really mean that much just the matter doesn't recognize it :(
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu Jan 15, 2009 6:31 am   
 
#trig {Exits: (*)} {#tag %subchar(%1,"-=[]") exit}

Then reconfigure the mapper.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Sir1l
Wanderer


Joined: 01 Oct 2005
Posts: 54

PostPosted: Fri Jan 16, 2009 10:32 am   
 
Now it's not making doors :(, the [] and () brackets are doors
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Fri Jan 16, 2009 10:35 am   
 
You could try removing the [] part from the %subchar and see if it starts working again, but this might be a case where you can't have your cake and eat it :( You'd have to apply the doors manually, or with a script using zMapper.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Leitia
Adept


Joined: 04 May 2007
Posts: 292
Location: Boston

PostPosted: Fri Jan 16, 2009 6:27 pm   
 
I had found the [] characters impossible to use directly in a function I wrote. Instead I used two steps:

After capturing the exits, I replaced the "[" "]" and "(" ")" with "j" and "q".
Then I looked for the open and closed doors and added them to string lists.

This might be too slow for the mapper but you can nest %replace(%replace()) or regex j and q

I rarely used subchar (something about it I don't like), and I don't get the mapper at all. The function was to 'squint' in every direction, and I opened doors to do that. Sorry I can't help more, but I think you can create special handlers for doors.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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