Re: [TADS] Moving stuf again...


10 Dec 1995 12:55:20 GMT

ErsatzPogo (ersatzpogo@aol.com) wrote:
: Thanks, guys, but actually Dan Shiovotz beat you both to it via e-mail
: with this nifty bit of code:

: 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`