Quoted from the help file:
/unset [-s] <%var>
This unsets and removes the specified variables from the variables list. If you specify a variable with wildcard characters then all matching variables will be removed.
/unset %test*Therefore i think you should be able to /unset %*id*. Or if it doesn't work, try this:
alias Lucres {
var %reset = $var($2,0), %i = 0
if (%reset > 0) {
if ($1 = unset) {
while (%reset <= %i) { .unset $var($2,%i) | inc %i 1 }
}
elseif ($1 == reset) {
while (%reset <= %i) { .set $var($2,%i) $3- | inc %i 1 }
}
}
}
How to use:
To clear all variables matching a specific wildcard, use
/Lucres unset *id*.
If you want to change the values of all the variables matching a specific wildcard, use
/Lucres reset *id* <New value>.
Note that *id* can be any wildcards/string combination you wish.
Hope it helps