Skip to main content

CharacterLoadNPC

Callable


  • Loads an NPC into the character array. The appearance is randomized, and a type can be provided to dress them in a given style.


    Type parameters

    Parameters

    • CharacterID: string

      The unique identifier for the NPC

    • optionalNPCType: string = null

      The dialog used by the NPC. Defaults to CharacterID if not specified.

    • module: T = null
    • screen: ModuleScreens[T] = null

    Returns NPCCharacter

    • The randomly generated NPC