Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

Item

Source

function static item.addAbility(int abiId) returns boolean

Source

function createItem(int itemId, vec2 pos) returns item

Source

function createItem(int itemId, vec3 pos) returns item

Source

function static item.getAbility(int abiId) returns ability

Source

function static item.getAbilityByIndex(int index) returns ability

Source

function static item.getCharges() returns int

Source

function static item.getDescription() returns string

Source

function static item.getExtendedTooltip() returns string

Source

function static item.getField(itembooleanfield field) returns boolean

Source

function static item.getField(itemintegerfield field) returns int

Source

function static item.getField(itemrealfield field) returns real

Source

function static item.getField(itemstringfield field) returns string

Source

function static item.getIconPath() returns string

Source

function static item.getItemtype() returns itemtype

Source

Returns "itemtype" of this item. Do not confuse it with itemTypeId.

function static item.getLevel() returns int

Source

function static item.getName() returns string

Source

function static item.getPlayer() returns player

Source

function static item.getPos() returns vec2

Source

function static item.getTooltip() returns string

Source

function static item.getTypeId() returns int

Source

function static item.getUserData() returns int

Source

function static item.getX() returns real

Source

function static item.getY() returns real

Source

function static item.isAlive() returns boolean

Source

Returns true if item is not destroyed and has a valid type id.

function static item.isInvulnerable() returns boolean

Source

function static item.isOwned() returns boolean

Source

function static item.isPawnable() returns boolean

Source

function static item.isPickupable() returns boolean

Source

Returns true if item can be picked up by a unit.

function static item.isPowerup() returns boolean

Source

function static item.isSellable() returns boolean

Source

function static item.isVisible() returns boolean

Source

function static item.remove()

Source

function static item.removeAbility(int abiId) returns boolean

Source

function static item.setCharges(int charges)

Source

function static item.setDescription(string description)

Source

function static item.setDropOnDeath(boolean flag)

Source

function static item.setDroppable(boolean flag)

Source

function static item.setExtendedTooltip(string tooltip)

Source

function static item.setField(itembooleanfield field, boolean value) returns boolean

Source

function static item.setField(itemintegerfield field, int value) returns boolean

Source

function static item.setField(itemrealfield field, real value) returns boolean

Source

function static item.setField(itemstringfield field, string value) returns boolean

Source

function static item.setIconPath(string path)

Source

function static item.setInvulnerable(boolean flag)

Source

function static item.setName(string name)

Source

function static item.setPawnable(boolean flag)

Source

function static item.setPlayer(player whichPlayer, boolean changeColor)

Source

function static item.setPos(vec2 pos)

Source

function static item.setTooltip(string tooltip)

Source

function static item.setUserData(int data)

Source

function static item.setVisible(boolean flag)

Source

function static item.updateDetailsForAll(string itemName, string itemTooltip, string itemExtendedTooltip, string itemDesc, string itemIcon) returns boolean

Source

Updates the item's name, tooltip, extendedtooltip, description or icon for the specific player. If p == null, the item is updated for all players Returns false if no player is given.

function static item.updateDetailsForPlayer(player p, string itemName, string itemTooltip, string itemExtendedTooltip, string itemDesc, string itemIcon) returns boolean

Source

Updates the item's name, tooltip, extendedtooltip, description or icon for the specific player. If p == null, the item is updated for all players Returns false if no player is given.