Walraven // Forums // Thread 1553

I should be able to 'lock cottage with key'., malap, 2004-02-12 17:15:32
I should be able to 'lock cottage with key'.
Problem is..., acius, 2004-02-17 03:58:15
That you have to 'lock cottage door with key'. Otherwise it picks up the cottage itself. This would be solved by allowing the exits to respond to their direction as an id(), and the all_present() filtering mentioned elsewhere (thread 1015).
problem with fix, malap, 2004-07-09 13:32:11
In /world/exit/exit.c I edited id() from:
return ( x == query_name() ) ? this_object() : 0;
to
return ( x == query_name() || x == query_dir() ) ? this_object() : 0;

Then I can 'open cottage' and such to get the door, but 'look cottage' becomes unintuitive. The change is commented out awaiting a nice solution.
common concern, allaryin, 2005-05-15 11:24:36
This is a feature request that we get about every month. I figure it is high time the other threads were closed and something further was done about it.

My suggestion is that as only a few commands might be expected to id the door by the building name, we simply adjust each of them to perform the additional searching. So if I 'open cottage' it does the normal behavior of looking for an openable cottage object, then it looks for any openable cottage object that has a door leading into it.

Commands that would need updating: open, close, lock, unlock, install.
<< forum