evennia icon indicating copy to clipboard operation
evennia copied to clipboard

Feature request: @set for other typeclasses

Open TehomCD opened this issue 8 years ago • 1 comments

Brief summary of issue / Description of requested feature:

Attributes and Tags can exist in other typeclasses beyond PlayerDB and ObjectDB, but can currently only be set with @set on those two typeclasses, with @tag only working on ObjectDB. It would be a nice feature if they supported specifying typeclasses with a switch or some other mechanism.

Steps to reproduce the issue / Reasons for adding feature:

  1. Allow @set/@tag to be more general purpose tools

Error output / Expected result of feature

Extending functionality for @set/@tag

Extra information, such as Evennia revision/repo/branch, operating system and ideas for how to solve / implement:

Maybe something like checking if any of a command's switches are in a command's valid_typeclasses, where the 'valid_typeclasses' property is a set of the allowed typeclasses for a given command, and if so, calling that typeclass's search method rather than object_search. Since they all have tag/attribute handlers, all that really needs changed is fetching them, everything else should work identically.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

TehomCD avatar Oct 19 '16 19:10 TehomCD

It might be good to be able to close this by adding the same functionality to the tag command as well. A PR anyone?

Griatch avatar Sep 23 '19 19:09 Griatch