btech.remove_stores

Removes a quantity of a part from an object’s stores.

Function

Synopsis

btech.remove_stores( target, part_name, quantity )

Arguments

number target
The stores-bearing object dbref.
string part_name
A recognized part name.
number quantity
The quantity to remove.

Returns

boolean success
true after the operation completes without a legacy error.

Notes

This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.

See Also