TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Map find/list question

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Elvang



Joined: 27 Mar 2012
Posts: 16

PostPosted: Thu Mar 29, 2012 10:34 am    Post subject: Map find/list question Reply with quote

Is it possible to find/list partial matches, or search based on a pattern/regex? For example, more often than not I don't remember the exact room name or note of the nearest shop, but I know I put a 'Shop' somewhere in the notes or there is one in the name.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Thu Mar 29, 2012 6:38 pm    Post subject: Reply with quote

#map list %*Shop%* should do the trick, or for a case insensitive search: #map list %i%*shop%*
Back to top
View user's profile Send private message Send e-mail
Elvang



Joined: 27 Mar 2012
Posts: 16

PostPosted: Thu Mar 29, 2012 6:41 pm    Post subject: Reply with quote

Ah, thanks. Is there a list somewhere of all the formatting I can use?
Back to top
View user's profile Send private message
Slysven



Joined: 10 Apr 2011
Posts: 365
Location: As "Jomin al'Bara" in WoTMUD or Wiltshire, UK

PostPosted: Thu Mar 29, 2012 7:29 pm    Post subject: Reply with quote

For what you can seach for the things are, in recent versions:
Code:
#MAP LIST {name} {exits} {description} {area} {notes} {terrain}

So to look for any room with something containing "shop" or "SHOP" (including such things as "Workshop") in the NOTES try:
Code:
#MAP LIST {} {} {} {} {%*shop%*}

As for specifying what you can look for have a look at #HELP REGEXP for the sort of "regular expressions" that you can specify here!
Back to top
View user's profile Send private message
ixle



Joined: 15 Sep 2011
Posts: 158
Location: United States

PostPosted: Fri Mar 30, 2012 7:23 pm    Post subject: Reply with quote

Don't you need {%i%*shop%*} for case insensitive to match?
Back to top
View user's profile Send private message
Slysven



Joined: 10 Apr 2011
Posts: 365
Location: As "Jomin al'Bara" in WoTMUD or Wiltshire, UK

PostPosted: Sat Mar 31, 2012 7:08 pm    Post subject: Reply with quote

Yep, my mistake... Use your Head
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group