Screen Inventory

by Woo
Inventory appears as a heads-up display, with the selected item equipped for use. Includes variables for inventory capacity and location on the screen. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Woo.ScreenInventory##version=8

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Woo.ScreenInventory##version=8

70 downloads
Version 1.6
Date added: Jul 31 2017
Last updated: Aug 19 2017
1 fan
Screen Inventory
A BYOND library
By Tyruswoo "Woo"

Includes:
screen_inventory.dm
screen_inventory_selector.dmi
screen_inventory_macros.dms
compatibility\with_Woo.MouseMovement.dm

Inventory system that shows on the screen as a heads-up display, with the currently selected item equipped for use. Variables are provided to allow customization of where the inventory appears on the screen and the maximum number of items that can be carried in the inventory.

This library includes all the needed macros and mouse procedures to easily add the library to any world. When you use this library, you will notice that all movable atoms (obj and mob) can enter inventory. To prepare your world to better use this library, consider making the following additions into your code:
  • Define the use() proc for each inventory item, so that when players pick up an item, they can use it to do something.
  • For any movable atom (mob or obj) you don't want to be able to enter the inventory, you will need to set its screen_inventory=0. You may also want to hide its verbs.
See the demo for examples.

Version Notes:
  • v.1.1: Reorganized the code to better delineate the library and the demo. Also, this version removed the overabundance of pickaxes from the demo. Now there are just two pickaxes: one for you, and one for a friend.
  • v.1.2: Improved compatibility with the Woo.MouseMovement library.
  • v.1.6: Added compatibility with Woo.MouseMovement to the default files of the library. This makes it easier to use these libraries together. Note that it also causes an obj called mouse_movement to be present in Dream Maker's "Object" tab, even if you are not using Woo.MouseMovement; however, you can just ignore it, since it doesn't alter the player's experience.
If you have any suggestions for improvements to this inventory system, please leave a comment in this library's discussion forum.

Terms: If you use one or more of my libraries in your game, please credit me (as Woo or Tyruswoo) and leave a link back to one of the following: my website, my BYOND site, my YouTube channel, or the webpage of the library you used. Optionally, you could also give me a free subscription to your game, if you like!


Visit www.tyruswoo.com to check out my other work in game design!

Tyruswoo Official Site

Join the Tyruswoo BYOND community!
Tyruswoo BYOND YouTube Tyruswoo BYOND Patreon
Tyruswoo BYOND Site Tyruswoo BYOND Discord Chat
Only you can build your dreams.