seisatsu / DennisMUD

Dennis MUD - A multiplayer text adventure sandbox engine where the players build the world with in-game commands.
https://dennismud.xyz/
MIT License
47 stars 6 forks source link

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

Open seisatsu opened 4 years ago

seisatsu commented 4 years ago

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: