• Tutorials

  • Home
  • CanCharacterDetectMagic

    When items are displayed, we need to know if Magical items should be flagged. We determin this by calling the 'CanCharacterDetectMagic' hook.

    Right now this is done only at the start of a Give Treasure event when we want to know whether or not to include the option "Detect" in the menu.

    Search for Script

    The Active character in the party.

    Return Value

    If the script returns a value starting with 'Y', then magical items will be flagge.

    Parameters

    None

    Context

    Active Character in the party (who has the spell in his spellbook)
    Spell