FutureProg functions

canget

Manipulationcomputer function, computer program, standard futureprog

Overload 1

canget overload 1

Boolean canget(Character who, Item thing)
Available in
  • 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.
ParameterTypeDescription
who Character The character doing the getting
thing Item The thing being gotten

Overload 2

canget overload 2

Boolean canget(Character who, Item thing, Item container)
Available in
  • 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.
ParameterTypeDescription
who Character The character doing the getting
thing Item The thing being gotten
container Item The container to get it from

Overload 3

canget overload 3

Boolean canget(Character who, Item thing, Item container, Number quantity)
Available in
  • 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.
ParameterTypeDescription
who Character The character doing the getting
thing Item The thing being gotten
container Item The container to get it from
quantity Number The number of things being gotten, or 0 for the full stack

Overload 4

canget overload 4

Boolean canget(Character who, Item thing, Number quantity)
Available in
  • 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.
ParameterTypeDescription
who Character The character doing the getting
thing Item The thing being gotten
quantity Number The number of things being gotten, or 0 for the full stack