Automatic doors in TADS?
18 Jan 1995 02:54:03 GMT
I'm writing a game in tads which requires the doors to close about two turns
after the player goes through them or opens them. Has anyone written a class
which does this, and maybe a daemon which controls it?
I was thinking of a daemon using global.turnssofar, but couldn't work out
the amendments to doOpen( actor ) = {...} in the door class which would set the
time the door was opened - if I did this I would need a list of doors in the
game, which would be searched each turn for open doors, check when they were
opened and close them if necessary.
Now I think about it, the coding for that isn't too hard - I've already done
something similar for a weapon class (if you run out of ammunition for a weapon,
your inventory is searched for other weapons which have ammunition, which is then
selected).
Any hints?
--
piers@socs.uts.edu.au kaleid@ftoomsh.socs.uts.edu.au
A woman said/I know my son is dead - The Smiths