Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major Feature: Chests (items that hold other items) #71

Open
seisatsu opened this issue Jun 30, 2020 · 0 comments
Open

Major Feature: Chests (items that hold other items) #71

seisatsu opened this issue Jun 30, 2020 · 0 comments
Labels
enhancement New feature or request major feature

Comments

@seisatsu
Copy link
Owner

seisatsu commented Jun 30, 2020

Add a special new type of item-like object called a chest, which can't be picked up, can't be duplified, and puts one or more other items in a player's inventory when they use it. Regular items can be added to a chest with the fill chest <chest> <item> command, and may or may not be duplified. (A duplified item taken from a chest stays in the chest unless the item owner takes it.) Anyone can take an item from a chest unless it is locked, but only an owner can add items.

Although a chest can't be picked up, it can be teleported to another room by the owner with the move chest command.

In order to facilitate the possibility of disguising chests as regular items, they will share ID space with items. So, if the highest existing ID of chests or items is 25, the next chest or item will be 26.

Commands:

  • make chest <name>

Makes a new chest.

  • break chest <id>

Breaks a chest. The items inside should be returned to their primary owners.

  • describe chest <id> <description>

Describe the chest.

  • decorate chest <id> <action>

Decorate the chest.

  • lock chest <chest> <key>

Locks a chest with the given key item. Unlike exits, locked chests must always have a key, and have no pair/unpair key command. You can use the lock chest command again to switch the key.

  • unlock chest <id>

Unlock the chest.

  • fill chest <chest> <item>

Place an item in the chest. Whoever uses the chest will receive the item(s). Multiple items may be filled into the chest, but only by a chest owner.

  • unfill chest <chest> <item>

Take an item out of the chest. This is similar to using the chest, except you can take just a single item, only the owner can use this command, and the item is removed even if it's duplified and you are not the item owner.

  • empty chest <chest>

Remove all items from a chest, even if they are duplified and you are not the item owner. You must own the chest to do this.

  • move chest <chest> <room>

Teleport the chest to another room.

  • copy chest <chest> <room>

Copy the chest to another room.

  • (un)hide chest <chest>

If a chest is hidden, looking in the room will show it listed with regular items, instead of as a chest, and users will not know it is a chest unless they take the time to look at it.

  • (un)hide chestkey <chest>

If a chest key is hidden, looking at it will not reveal the key that opens it, except to an owner or a wizard.

@seisatsu seisatsu changed the title Major Feature: Chests (Items that hold other items) Major Feature: Chests (items that hold other items) Jun 30, 2020
@seisatsu seisatsu added enhancement New feature or request command Has to do with a specific command or commands major feature and removed command Has to do with a specific command or commands labels Jul 2, 2020
@seisatsu seisatsu mentioned this issue Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request major feature
Projects
None yet
Development

No branches or pull requests

1 participant