|
Jhemin Newbie
Joined: 08 Jul 2014 Posts: 5
|
Posted: Wed Jul 09, 2014 12:53 am
#MAPQUERY command |
Hi guys
i just discovered the command #MAPQUERY to search in my map for locations with a given name
If i write for example #MAPQUERY {[Name] LIKE '%forest%'} , cmud will search for all the rooms with contains the word 'forest' in the name.
How can i make an alias out of this?
like for example 'find %1' to specify the world that i want to look for? |
|
|
|
Anaristos Sorcerer
Joined: 17 Jul 2007 Posts: 821 Location: California
|
Posted: Wed Jul 09, 2014 3:33 am |
In my opinion, it would be cleaner to make it a function:
Code: |
#FUNCTION mapquery($mask) { #IF !%null($mask) { #RETURN %mapquery($mask) } }
|
Example:
Code: |
#VAR mask "[Name] LIKE '%forest%'"
;;
#VAR rooms mapquery(@mask)
|
This is as simple as it gets, but it is the idea. |
|
_________________ Sic itur ad astra. |
|
|
|
|
|