A general search of userdata

All and any discussion and development of the Mudlet Mapper.
Post Reply
User avatar
chris
Posts: 493
Joined: Fri Jun 17, 2011 5:39 am

A general search of userdata

Post by chris »

I made a general search command for room userdata. This will search a string against the user data of all rooms for a given field. It's available on my github branch:
https://github.com/Chris7/Mudlet

To use it, searchRoomUserData(key, value)

So if I stored "room description" as a key, and I wanted to find rooms of a given descriptions, I would do:
searchRoomUserData("room description", "this is a room descr....")

It doesn't need to be the whole description to match, 'is a room' would work just as well for the above query.

User avatar
Vadi
Posts: 4940
Joined: Sat Mar 14, 2009 3:13 pm

Re: A general search of userdata

Post by Vadi »

Cool, thanks

Post Reply