[DGD] Dworkin's mudlib
Raymond Jennings
shentino at gmail.com
Tue Nov 27 00:27:53 CET 2018
A long time ago in this thread it was mentioned that maintaining object
inventories as LWOs
Just my two cents:
Making sure that a particular object only shows up once is a good use case
for atomic functions.
Just like a financial transaction involves debiting one account and
crediting another, an inventory management transaction can use an atomic
function to enforce that an addition of an item to one object's inventory
is paired with removing that item from the inventory of it's previous
environment.
If you combine this with locking down an object's inventory from anyone
else messing with the data, you can make sure nothing goes awry. The
take-action would have to go through the inventory management api for the
mob to actually take that temptingly shiny coin.
More information about the DGD
mailing list