• Tutorials

  • Home
  • Identify

    This hook is called when a character 'Identifies' an item as a result of the 'CanIdentify' hook's returning a “Y”. It will not be called when “ID ITEM” is displayed automatically. It will only be called when the hook “CanIdentify” returns a “Y” for a particular item.

    Search Order

    1. The Character

    Parameters

    Parameter[5] = the value that the 'CanIdentify' hook set before returning “Y”.

    Context

    Character
    Item

    Return Value

    If the hook returns a value starting with 'Y' then the item will be marked as 'identified'. The hook might enforce some sort of probability of success, for example.

    A Bit of Discussion

    These hooks (and the function “$IsIdentified (item, bool)” were provided to allow a character to identify items by casting a spell. Here is an example of how it might work: