Volte6 / GoMud

Public repository for GoMud, a Go based Mud server.
GNU General Public License v3.0
28 stars 4 forks source link

Item scripting #42

Closed Volte6 closed 3 months ago

Volte6 commented 3 months ago

Motivation

This adds basic item scripting, allowing an arbitrary verb to be executed on items in the users backpack, as well as standardizing items in scripts a little more.

Changes

Notes

More and more I find myself disliking items iwthout distinct identifiers. With global item id's we can do a lot more interesting things, such as registering them in a look up table, referencing them from other scripts or code, and more easily performing updates on player inventories, since we won't rely on finding "an item that matches the provided item stats" before replacing it with another one.