Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Nov 06, 2008 4:33 am |
I can't remember how this works in zMUD, but you want to take a look at data record variables. At one point, if you put a data record variable into a trigger pattern, the variable keys would be used in the pattern. So {@DataRecord} would be what you're after. Then, the value for each key is the command you want to do. So you'll end up with something like:
#trigger {^({@DescriptionList})$} {assassinate %db(@DescriptionList,%1)}
but I can't remember if this is how it works in the current version of zMUD, so you'll want to check that. If it isn't, you'll need to use two variables - one of them a string list of the descriptions, the other a data record variable where keys are those same descriptions and values are whatever command you want to send. Then you'll do something like:
#trigger {^({@DescriptionList})$} {assassinate %db(@CommandVar,%1)} |
|