FutureProg functions
loaditem
Overload 1
loaditem overload 1
Item loaditem(ItemPrototype prototype)
Available in
- computer function
- computer program
- standard futureprog
Loads a new item from a resolved item prototype. It does not put the item anywhere.
| Parameter | Type | Description |
|---|---|---|
prototype |
ItemPrototype |
The resolved item prototype to load |
Overload 2
loaditem overload 2
Item loaditem(ItemPrototype prototype, Number quantity)
Available in
- computer function
- computer program
- standard futureprog
Loads a new item from a resolved item prototype. It does not put the item anywhere.
| Parameter | Type | Description |
|---|---|---|
prototype |
ItemPrototype |
The resolved item prototype to load |
quantity |
Number |
The stack quantity when applicable |
Overload 3
loaditem overload 3
Item loaditem(ItemPrototype prototype, Number quantity, Text variables)
Available in
- computer function
- computer program
- standard futureprog
Loads a new item from a resolved item prototype. It does not put the item anywhere.
| Parameter | Type | Description |
|---|---|---|
prototype |
ItemPrototype |
The resolved item prototype to load |
quantity |
Number |
The stack quantity when applicable |
variables |
Text |
Default values for registered item variables |
Overload 4
loaditem overload 4
Item loaditem(ItemPrototype prototype, Text variables)
Available in
- computer function
- computer program
- standard futureprog
Loads a new item from a resolved item prototype. It does not put the item anywhere.
| Parameter | Type | Description |
|---|---|---|
prototype |
ItemPrototype |
The resolved item prototype to load |
variables |
Text |
Default values for registered item variables |
Overload 5
loaditem overload 5
Item loaditem(Number id)
Available in
- computer function
- computer program
- standard futureprog
This function loads a new item into the game based on the ID that you supply. It does not put the item anywhere, so you must then insert it somewhere like in a room or a character's inventory.
| Parameter | Type | Description |
|---|---|---|
id |
Number |
The ID of the item prototype that you want to load |
Overload 6
loaditem overload 6
Item loaditem(Number id, Number quantity)
Available in
- computer function
- computer program
- standard futureprog
This function loads a new item into the game based on the ID that you supply. It does not put the item anywhere, so you must then insert it somewhere like in a room or a character's inventory.
| Parameter | Type | Description |
|---|---|---|
id |
Number |
The ID of the item prototype that you want to load |
quantity |
Number |
The quantity of the item you want to load. If this item is not stackable, this input is ignored. |
Overload 7
loaditem overload 7
Item loaditem(Number id, Number quantity, Text variables)
Available in
- computer function
- computer program
- standard futureprog
This function loads a new item into the game based on the ID that you supply. It does not put the item anywhere, so you must then insert it somewhere like in a room or a character's inventory.
| Parameter | Type | Description |
|---|---|---|
id |
Number |
The ID of the item prototype that you want to load |
quantity |
Number |
The quantity of the item you want to load. If this item is not stackable, this input is ignored |
variables |
Text |
The default values for any variables on this item. This syntax is as per using the ITEM LOAD command in game, which means the general syntax is varname=value or varname="longer value", with multiple variables separated by spaces |
Overload 8
loaditem overload 8
Item loaditem(Number id, Text variables)
Available in
- computer function
- computer program
- standard futureprog
This function loads a new item into the game based on the ID that you supply. It does not put the item anywhere, so you must then insert it somewhere like in a room or a character's inventory.
| Parameter | Type | Description |
|---|---|---|
id |
Number |
The ID of the item prototype that you want to load |
variables |
Text |
The default values for any variables on this item. This syntax is as per using the ITEM LOAD command in game, which means the general syntax is varname=value or varname="longer value", with multiple variables separated by spaces |
Overload 9
loaditem overload 9
Item loaditem(Text uniqueName)
Available in
- computer function
- computer program
- standard futureprog
This function loads a new item into the game based on the unique name that you supply. It does not put the item anywhere, so you must then insert it somewhere like in a room or a character's inventory.
| Parameter | Type | Description |
|---|---|---|
uniqueName |
Text |
The unique name of the item prototype that you want to load |
Overload 10
loaditem overload 10
Item loaditem(Text uniqueName, Number quantity)
Available in
- computer function
- computer program
- standard futureprog
This function loads a new item into the game based on the unique name that you supply. It does not put the item anywhere, so you must then insert it somewhere like in a room or a character's inventory.
| Parameter | Type | Description |
|---|---|---|
uniqueName |
Text |
The unique name of the item prototype that you want to load |
quantity |
Number |
The quantity of the item you want to load. If this item is not stackable, this input is ignored. |
Overload 11
loaditem overload 11
Item loaditem(Text uniqueName, Number quantity, Text variables)
Available in
- computer function
- computer program
- standard futureprog
This function loads a new item into the game based on the unique name that you supply. It does not put the item anywhere, so you must then insert it somewhere like in a room or a character's inventory.
| Parameter | Type | Description |
|---|---|---|
uniqueName |
Text |
The unique name of the item prototype that you want to load |
quantity |
Number |
The quantity of the item you want to load. If this item is not stackable, this input is ignored |
variables |
Text |
The default values for any variables on this item. This syntax is as per using the ITEM LOAD command in game, which means the general syntax is varname=value or varname="longer value", with multiple variables separated by spaces |
Overload 12
loaditem overload 12
Item loaditem(Text uniqueName, Text variables)
Available in
- computer function
- computer program
- standard futureprog
This function loads a new item into the game based on the unique name that you supply. It does not put the item anywhere, so you must then insert it somewhere like in a room or a character's inventory.
| Parameter | Type | Description |
|---|---|---|
uniqueName |
Text |
The unique name of the item prototype that you want to load |
variables |
Text |
The default values for any variables on this item. This syntax is as per using the ITEM LOAD command in game, which means the general syntax is varname=value or varname="longer value", with multiple variables separated by spaces |