Description

Finds the identifier of an item according to an attribute value. Returns false if the position is not found

Usage

Parameters

  • type {String}

    Name type

  • attr {String}

    Attribute name

  • val {String}

    Value

Returns

Integer|Boolean

Example

global.game_player.getItemsEquipedByAttr("weapons", "name", "Sword"); // => return weapon ID

Discussion