FutureProg functions

takecommodity

Items · computer function, computer program, standard futureprog

Boolean takecommodity(Item item, Number weight)
Contexts: computer function, computer program, standard futureprog
This function takes a certain weight off of a commodity pile. If the weight is equal to or higher than the weight of the commodity pile, it deletes the pile. Returns true if it succeeded at taking the weight.
item: The item to take the weight from
weight: The weight of the material to take in base units for this MUD. See MUD owner for configuration info

Boolean takecommodity(Item item, Text weight)
Contexts: computer function, computer program, standard futureprog
This function takes a certain weight off of a commodity pile. If the weight is equal to or higher than the weight of the commodity pile, it deletes the pile. Returns true if it succeeded at taking the weight.
item: The item to take the weight from
weight: The weight of the material to take, e.g. 120kg, 15lb 3oz, etc

← Back to FutureProg functions