Page 1 of 1

A general search of userdata

Posted: Thu Aug 18, 2011 4:35 am
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.

Re: A general search of userdata

Posted: Thu Aug 18, 2011 4:50 am
by Vadi
Cool, thanks