• Tutorials

  • Home
  • CanIdentify

    Search Order

    1. The character

    Parameters

    Parameter[4] = key of the item in the character's inventory
    Parameter[5] = empty but can be used to pass information to the “Identify” hook. See discussion.

    Context

    Character
    Item

    When the player views a character's possessions ( ITEMS ), the menu item “ID ITEM” ( identify the item ) will be automatically displayed under certain circumstances. For example, a SHOP event can be configured to allow the character to “ID ITEM”. When this menu item is automatically displayed, no hook scripts will be executed. The item will be marked as identified if the player selects this option.

    If the “ID ITEM” option is not automatically displayed, then this hook will be called each time the player highlights an item in the character's inventory. If the hook returns a value starting with 'Y' then the menu option “ID ITEM” will be displayed and hook parameter[5] will be saved to pass onto the “Identify” hook if the player selects “ID ITEM”.