Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sort items within each class in containers #1398

@enidol

Description

@enidol

I know there's sortloot and sortpack, but could there be a provision/command for automatically sorting the items within each class, in containers such as chests, ice boxes, bags of holding? The same could apply for e.g. inspecting the items on a tile.

For example I have many collected weapons / scrolls / potions / tools in a chest, it would be great to have a quick way to automatically sort the weapons such that e.g. projectiles, ranged weapons, twohanded weapons etc. are clustered together within their subtypes. For scrolls it would be by spell, for potions by potion type, etc. Rather than having to comb from the top to the bottom within this class for the particular item.

Parameters to sort on that I can think of include unique name (if item is named), subclass (such as projectiles/ranged weapons I've mentioned above), type name (bow vs crossbow, if unidentified then use appearance as type name), enchantment (-2 vs +2, or number of charges for wands), beatitude (B/U/C/unknown). These parameters can be ordered in a list (which players can customize) and combined into the new sort command.

Would it be complicated to implement this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions