Skip to main content

NPCTraitGet

Callable


  • Returns the trait value of an NPC. If the opposite trait is found, it will return a negative value.


    Parameters

    • C: NPCCharacter

      NPC to get the trait of

    • TraitType: string

      Name of the trait to get the value of

    Returns number

    • Value of the trait, returns 0 if it was never set.