Skip to main content

CharacterAppearanceSetItem

Callable


  • Sets an item in the character appearance


    Parameters

    • C: Character

      The character whose appearance should be changed

    • Group: AssetGroupName

      The name of the corresponding groupr for the item

    • ItemAsset: Asset

      The asset collection of the item to be changed

    • optionalNewColor: ItemColor = null

      The new color (as "#xxyyzz" hex value) for that item

    • optionalDifficultyFactor: number = null

      The difficulty, on top of the base asset difficulty, that should be assigned to the item

    • optionalItemMemberNumber: number = null

      The member number of the player adding the item - defaults to -1

    Returns Item

    • Thew newly created item or undefined if the asset does not exist