Skip to main content

CharacterLoadNPC

Callable

  • CharacterLoadNPC<T>(CharacterID, NPCType, module, screen): NPCCharacter

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


    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