Skip to main content

CharacterAppearanceSetItem

Callable

  • CharacterAppearanceSetItem(C: Character, Group: AssetGroupName, ItemAsset: Asset, NewColor?: string | string[], DifficultyFactor?: number, ItemMemberNumber?: number, Refresh?: boolean): Item

  • 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: string | string[]

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

    • optionalDifficultyFactor: number

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

    • optionalItemMemberNumber: number

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

    • optionalRefresh: boolean

      Determines, wether the character should be redrawn after the item change

    Returns Item

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