FutureProg functions

canget

Manipulation · computer function, computer program, standard futureprog

Boolean canget(Character who, Item thing)
Contexts: computer function, computer program, standard futureprog
This function tells you if a player could pick up an item into hands/inventory. Returns true if so. Respects all normal inventory rules.
who: The character doing the getting
thing: The thing being gotten

Boolean canget(Character who, Item thing, Item container)
Contexts: computer function, computer program, standard futureprog
This function tells you if a player could pick up an item into hands/inventory from a container. Returns true if so. Respects all normal inventory rules.
who: The character doing the getting
thing: The thing being gotten
container: The container to get it from

Boolean canget(Character who, Item thing, Item container, Number quantity)
Contexts: computer function, computer program, standard futureprog
This function tells you if a player could pick up a specified quantity of an item into hands/inventory from a container. Returns true if so. Respects all normal inventory rules.
who: The character doing the getting
thing: The thing being gotten
container: The container to get it from
quantity: The number of things being gotten, or 0 for the full stack

Boolean canget(Character who, Item thing, Number quantity)
Contexts: computer function, computer program, standard futureprog
This function tells you if a player could pick up a specified quantity of item into hands/inventory. Returns true if so. Respects all normal inventory rules.
who: The character doing the getting
thing: The thing being gotten
quantity: The number of things being gotten, or 0 for the full stack

← Back to FutureProg functions