fuzzball icon indicating copy to clipboard operation
fuzzball copied to clipboard

Idea: exit and program restrictions

Open wyld-sw opened this issue 1 year ago • 5 comments

Would it be useful to be able to restrict exits and programs in the following manner?

  • Cannot be used by guests
  • Cannot be used by vehicles
  • Cannot be used by zombies
  • Cannot be forced

Using the flag system, like is done with rooms, seems restrictive (no pun intended) since exits and programs already recognize some of: [VXZ]. Should we introduce a proplist to control this?

Something (possibly better named) like:

~/usage_restrictions#/:4
~/usage_restrictions#/1:no_force
~/usage_restrictions#/2:no_guest
~/usage_restrictions#/3:no_vehicle
~/usage_restrictions#/4:no_zombie

or just one property really.

We could even deprecate the GUEST flag for rooms - I think it evolved from a ~/no_guest property. Ditto for VEHICLE and ZOMBIE for rooms, but maybe that's too much of a change? We could convert these room flags to the proplist automatically with a new db "format".

I'm certainly open to making this more efficient, since the prop-list would need to be scanned with each access.

wyld-sw avatar Jan 11 '24 11:01 wyld-sw