: moveFromTo: function (from, to)
: {
: local l, i;
: l := from.contents;
: for (i := 1; i <= length(l); ++i)
: {
: l[i].moveInto(to);
: }
: }
Nice and simple code. Just a warning about all such code, though. I used
a somewhat similar function once (though needlessly more baroque, of course)
and didn't include any property checks for isworn and isfixed properties.
Naturally this caused immense problems, as supposedly fixed items got
moved around when they shouldn't have been.
However if you're feeling generous this sort of problem is likely to
be the cause of great hilarity amongst your playtesters... :)
- Neil K.
-- Neil K. Guy * neilg@sfu.ca * tela@tela.bc.ca 49N 16' 123W 7' * Vancouver, BC, Canada`