Dark and Light Elves

Right-Click Usable Items

This script is for handling items that can be "used" when right-clicked in an inventory screen. Essentially, any items that are templated as potions (i.e. have a [potion] block in the template) can then include a [potion_use] block to tailor how it reacts to being right-clicked.

In conjunction with charges, multiple-use rejuvenation potions are implemented this way.

Files

Dependencies

Origin Ramblings

Derived this concept from Snowfox's earlier work involving "using" charged items by right-clicking items in inventory.