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
New scripting docs
Basic item scripting seems to work
Added some related scripting changed to the ActorObject etc. for giving/updating inventory items.
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.
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.