Skip to main content

InventoryDisallow

Callable


  • Returns an error message if we cannot add the item, no other items must block that prerequisite; null is returned otherwise


    Parameters

    • C: Character

      The character on which we check for prerequisites

    • asset: Asset

      The asset for which prerequisites should be checked. Any item equipped in the asset's group will be ignored for the purposes of the prerequisite check.

    • optionalprerequisites: AssetPrerequisite | readonly AssetPrerequisite[] = asset.Prerequisite

      An array of prerequisites or a string for a single prerequisite. If nothing is provided, the asset's default prerequisites will be used

    • optionalallowActivePose: readonly AssetPoseName[] = asset.AllowActivePose

    Returns string

    • An error message (if any)