| View previous topic :: View next topic |
| Author |
Message |
Elvang
Joined: 27 Mar 2012 Posts: 16
|
Posted: Thu Mar 29, 2012 10:34 am Post subject: Map find/list question |
|
|
| 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 |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3281
|
Posted: Thu Mar 29, 2012 6:38 pm Post subject: |
|
|
| #map list %*Shop%* should do the trick, or for a case insensitive search: #map list %i%*shop%* |
|
| Back to top |
|
 |
Elvang
Joined: 27 Mar 2012 Posts: 16
|
Posted: Thu Mar 29, 2012 6:41 pm Post subject: |
|
|
| Ah, thanks. Is there a list somewhere of all the formatting I can use? |
|
| Back to top |
|
 |
Slysven
Joined: 10 Apr 2011 Posts: 260 Location: As "Jomin al'Bara" in WoTMUD or Wiltshire, UK
|
Posted: Thu Mar 29, 2012 7:29 pm Post subject: |
|
|
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 |
|
 |
ixle
Joined: 15 Sep 2011 Posts: 134 Location: United States
|
Posted: Fri Mar 30, 2012 7:23 pm Post subject: |
|
|
| Don't you need {%i%*shop%*} for case insensitive to match? |
|
| Back to top |
|
 |
Slysven
Joined: 10 Apr 2011 Posts: 260 Location: As "Jomin al'Bara" in WoTMUD or Wiltshire, UK
|
Posted: Sat Mar 31, 2012 7:08 pm Post subject: |
|
|
Yep, my mistake...  |
|
| Back to top |
|
 |
|