Avorion Script API Documentation

VanillaInventoryItem

function VanillaInventoryItem()

This is the default constructor of VanillaInventoryItem. No further arguments are required.

Returns

A new instance of VanillaInventoryItem

property int boundFaction
property bool droppable
property bool favorite
property string icon
property Color iconColor
property InventoryItemType itemType[read-only]
property bool missionRelevant
property string name
property int price
property Rarity rarity
property bool recent
property bool stackable
property bool tradeable
property bool trash

function bool __eq(var other)

function var clearValues()

Removes all custom values of the object

Returns

nothing

function Tooltip getTooltip()

function var getValue(string key)

Retrieves a custom value saved in the entity with the given key

Parameters

key A string that serves as the name of the value

Returns

The value if the key exists, otherwise nil

function table<string, var> getValues()

Retrieves all key-value pairs of custom values of the entity

Returns

A table containing all custom key-value pairs

function var setTooltip(Tooltip tooltip)

Returns

nothing

function var setValue(string key, var value)

Sets a custom value

Parameters

key A string that serves as the name of the value
value The value to save. Must be bool, number, string or nil. If nil is given, the value will be deleted.

Overview
Home Functions Search
Search:

This is the official documentation for the scripting API of Avorion. This documentation is automatically generated and not necessarily complete. Depending on the context in which functions exist, some documentation such as descriptions, return values or variable names or types may be missing.

Work in Progress. Documentation of Avorion Version: 2.5.7 c8e4beec84f7