-Upgrading LambdaCore to 1.8.0-
Although it's not required, you can also shorten the length of your
database by changing all length(blah) calls inside []'s to '$'.
@egrepcore %(%w+%)%[.*length(%1)
will look for such verbs (gee I hate regexps)
(if you're wondering why there is no [^]] in there that works too, but
some tricky stuff like blah[x[5]..length(blah)] might not show up, there
are also ones that need to be done by hand like args[1][2..length(args[1]
)])
Also, you can use the 'scattering' assignments to reduce sizes of verbs,
see the documentation for that, here's an example:
$you:say_action has the following code in it:
msg = args[1];
who = length(args) >= 2 ? args[2] | player;
thing = length(args) >= 3 ? args[3] | caller;
where = length(args) >= 4 ? args[4] | who.location;
it can easily be changed to one line:
{msg, ?who = player, ?thing = caller, ?where = who.location} = args;
neat, huh?
-21-
[Previous Page][Contents]