# Placeholder PAIs, aka semi-automatic ghost roles

- type: entity
  parent: BaseItem
  id: PersonalAI
  name: personal ai device
  description: Your electronic pal who's fun to be with!
  components:
  - type: Instrument
    allowPercussion: false
    handheld: false
    bank: 1
    program: 2
  - type: UserInterface
    interfaces:
    - key: enum.InstrumentUiKey.Key
      type: InstrumentBoundUserInterface
  - type: Sprite
    netsync: false
    sprite: Objects/Fun/pai.rsi
    layers:
    - state: pai-base
    - state: pai-off-overlay
      shader: unshaded
  - type: Input
    context: "human"
  - type: PAI
    midiAction:
      name: action-name-pai-play-midi
      checkCanInteract: false
      icon: Interface/Actions/pai-midi.png
      description: action-description-pai-play-midi
      event: !type:OpenUiActionEvent
        key: enum.InstrumentUiKey.Key
  - type: Examiner
  - type: GhostRadio
  - type: DoAfter
  - type: Actions
    # This has to be installed because otherwise they're not "alive",
    #  so they can ghost and come back.
    # Note that the personal AI never "dies".
  - type: MobState
    thresholds:
      0: !type:NormalMobState {}
  - type: Appearance
    visuals:
      - type: GenericEnumVisualizer
        key: enum.PAIVisuals.Status
        layer: 1
        states:
          enum.PAIStatus.Off: pai-off-overlay
          enum.PAIStatus.Searching: pai-searching-overlay
          enum.PAIStatus.On: pai-on-overlay

