Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.9 / NPC / Roles / Void / Spectre_Void.json

Spectre_Void

Server/NPC/Roles/Void/Spectre_Void.json, 30.4 KB

Fields

FieldType
Typestring
Appearancestring
DropListstring
StartStatestring
DisableDamageGroupsarray[1]
BusyStatesarray[1]
KnockbackScalenumber
Parametersobject
MotionControllerListarray[1]
MaxHealthnumber
IsMemoryboolean
MemoriesCategorystring
Instructionsarray[1]
NameTranslationKeystring

Source

{
  "Type": "Generic",
  "Appearance": "Spectre_Void",
  "DropList": "Drop_Spectre_Void",
  "StartState": "Idle",
  "DisableDamageGroups": [
    "Void"
  ],
  "BusyStates": [
    "Chase"
  ],
  "KnockbackScale": 0.5,
  "Parameters": {
    "CombatRelativeTurnSpeed": {
      "Value": 1.5,
      "Description": "Modifier that decides turn speed difference in combat"
    },
    "MaxHealth": {
      "Value": 103,
      "Description": "Max health for the NPC"
    }
  },
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 8,
      "Gravity": 10,
      "MaxFallSpeed": 20,
      "Acceleration": 10,
      "MinHover": 1.5,
      "MaxHover": 1.7,
      "HoverFreq": 0.33
    }
  ],
  "MaxHealth": 41,
  "IsMemory": true,
  "MemoriesCategory": "Voidspawn",
  "Instructions": [
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "State",
            "State": "Idle"
          },
          "Instructions": [
            {
              "Continue": true,
              "Sensor": {
                "Type": "Any",
                "Once": true
              },
              "Actions": [
                {
                  "Type": "PlayAnimation",
                  "Slot": "Status"
                }
              ]
            },
            {
              "Continue": true,
              "Sensor": {
                "Type": "Any"
              },
              "Instructions": [
                {
                  "Sensor": {
                    "Type": "Eval",
                    "Expression": "blocked"
                  },
                  "BodyMotion": {
                    "Type": "Timer",
                    "Time": [
                      2,
                      3
                    ],
                    "Motion": {
                      "Type": "Wander",
                      "MaxHeadingChange": 45,
                      "RelativeSpeed": 0.25
                    }
                  }
                },
                {
                  "Sensor": {
                    "Type": "Mob",
                    "Range": 2,
                    "LockOnTarget": false,
                    "Filters": [
                      {
                        "Type": "NPCGroup",
                        "IncludeGroups": [
                          "Void"
                        ]
                      }
                    ]
                  },
                  "BodyMotion": {
                    "Type": "Wander",
                    "MaxHeadingChange": 45,
                    "RelativeSpeed": 0.25
                  }
                },
                {
                  "Sensor": {
                    "Type": "Any"
                  },
                  "BodyMotion": {
                    "Type": "Sequence",
                    "Looped": true,
                    "Motions": [
                      {
                        "Type": "Timer",
                        "Time": [
                          4,
                          8
                        ],
                        "Motion": {
                          "Type": "WanderInCircle",
                          "Radius": 8,
                          "MaxHeadingChange": 60,
                          "RelativeSpeed": 0.18
                        }
                      },
                      {
                        "Type": "Timer",
                        "Time": [
                          4,
                          8
                        ],
                        "Motion": {
                          "Type": "Nothing"
                        }
                      }
                    ]
                  }
                }
              ]
            },
            {
              "Sensor": {
                "Type": "Damage",
                "Combat": true,
                "Other": true
              },
              "Instructions": [
                {
                  "Sensor": {
                    "Type": "Player",
                    "Range": 20,
                    "LockOnTarget": true,
                    "Filters": [
                      {
                        "Type": "LineOfSight"
                      }
                    ]
                  },
                  "Actions": [
                    {
                      "Type": "State",
                      "State": "Chase"
                    }
                  ]
                },
                {
                  "Sensor": {
                    "Type": "And",
                    "Sensors": [
                      {
                        "Type": "Not",
                        "Sensor": {
                          "Type": "Player",
                          "Range": 20,
                          "Filters": [
                            {
                              "Type": "LineOfSight"
                            }
                          ]
                        }
                      },
                      {
                        "Type": "Player",
                        "Range": 20,
                        "LockOnTarget": true
                      },
                      {
                        "Type": "Target",
                        "TargetSlot": "LockedTarget",
                        "Filters": [
                          {
                            "Type": "MovementState",
                            "State": "Crouching"
                          }
                        ]
                      }
                    ]
                  },
                  "Actions": [
                    {
                      "Type": "State",
                      "State": "Search"
                    }
                  ]
                },
                {
                  "Sensor": {
                    "Type": "Not",
                    "Sensor": {
                      "Type": "Player",
                      "Range": 20,
                      "LockOnTarget": true
                    }
                  },
                  "Actions": [
                    {
                      "Type": "State",
                      "State": "FleeTimed"
                    }
                  ]
                }
              ]
            },
            {
              "Sensor": {
                "Type": "Player",
                "Range": 3.5,
                "LockOnTarget": true,
                "Filters": [
                  {
                    "Type": "LineOfSight"
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "State",
                  "State": "Chase"
                }
              ]
            },
            {
              "Sensor": {
                "Type": "And",
                "Sensors": [
                  {
                    "Type": "Player",
                    "Range": 20,
                    "LockOnTarget": true,
                    "Filters": [
                      {
                        "Type": "LineOfSight"
                      },
                      {
                        "Type": "ViewSector",
                        "ViewSector": 120
                      }
                    ]
                  },
                  {
                    "Type": "Target",
                    "TargetSlot": "LockedTarget",
                    "Filters": [
                      {
                        "Type": "MovementState",
                        "State": "Crouching"
                      }
                    ]
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "State",
                  "State": "Alerted"
                }
              ]
            },
            {
              "Sensor": {
                "Type": "And",
                "Sensors": [
                  {
                    "Type": "Player",
                    "Range": 20,
                    "LockOnTarget": true,
                    "Filters": [
                      {
                        "Type": "LineOfSight"
                      }
                    ]
                  },
                  {
                    "Type": "Not",
                    "Sensor": {
                      "Type": "Target",
                      "TargetSlot": "LockedTarget",
                      "Filters": [
                        {
                          "Type": "MovementState",
                          "State": "Crouching"
                        }
                      ]
                    }
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "State",
                  "State": "Alerted"
                }
              ]
            },
            {
              "Sensor": {
                "Type": "And",
                "Sensors": [
                  {
                    "Reference": "Component_Sensor_Day",
                    "Modify": {
                      "Period": [
                        6.01,
                        16.99
                      ]
                    }
                  },
                  {
                    "Type": "Not",
                    "Sensor": {
                      "Type": "Player",
                      "Range": 20,
                      "Filters": [
                        {
                          "Type": "LineOfSight"
                        }
                      ]
                    }
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [
                    0,
                    5
                  ],
                  "Action": {
                    "Type": "Despawn"
                  }
                }
              ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "State",
            "State": "Alerted"
          },
          "Instructions": [
            {
              "Continue": true,
              "Sensor": {
                "Type": "Any",
                "Once": true
              },
              "Actions": [
                {
                  "Type": "PlayAnimation",
                  "Slot": "Status",
                  "Animation": "Alerted"
                },
                {
                  "Type": "SpawnParticles",
                  "Offset": [
                    0,
                    2.1,
                    0
                  ],
                  "ParticleSystem": "Alerted"
                }
              ]
            },
            {
              "Continue": true,
              "Sensor": {
                "Type": "Any"
              },
              "Instructions": [
                {
                  "Sensor": {
                    "Type": "Player",
                    "Range": 20,
                    "LockOnTarget": false
                  },
                  "HeadMotion": {
                    "Type": "Watch"
                  }
                }
              ]
            },
            {
              "Sensor": {
                "Type": "And",
                "Sensors": [
                  {
                    "Type": "Not",
                    "Sensor": {
                      "Type": "Player",
                      "Range": 20,
                      "Filters": [
                        {
                          "Type": "LineOfSight"
                        }
                      ]
                    }
                  },
                  {
                    "Type": "Player",
                    "Range": 20,
                    "LockOnTarget": true
                  },
                  {
                    "Type": "Target",
                    "TargetSlot": "LockedTarget",
                    "Filters": [
                      {
                        "Type": "MovementState",
                        "State": "Crouching"
                      }
                    ]
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [
                    0.5,
                    0.5
                  ],
                  "Action": {
                    "Type": "State",
                    "State": "Search"
                  }
                }
              ]
            },
            {
              "Sensor": {
                "Type": "Player",
                "Range": 5,
                "LockOnTarget": true,
                "Filters": [
                  {
                    "Type": "LineOfSight"
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [
                    0.5,
                    0.5
                  ],
                  "Action": {
                    "Type": "State",
                    "State": "Chase"
                  }
                }
              ]
            },
            {
              "Sensor": {
                "Type": "Player",
                "Range": 20,
                "LockOnTarget": true
              },
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [
                    1,
                    1
                  ],
                  "Action": {
                    "Type": "State",
                    "State": "Chase"
                  }
                }
              ]
            },
            {
              "Sensor": {
                "Type": "Not",
                "Sensor": {
                  "Type": "Player",
                  "Range": 20
                }
              },
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [
                    1,
                    1
                  ],
                  "Action": {
                    "Type": "State",
                    "State": "Idle"
                  }
                }
              ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "State",
            "State": "Search"
          },
          "Instructions": [
            {
              "Continue": true,
              "Sensor": {
                "Type": "Any",
                "Once": true
              },
              "Actions": [
                {
                  "Type": "PlayAnimation",
                  "Slot": "Status",
                  "Animation": "Alerted"
                },
                {
                  "Type": "SpawnParticles",
                  "Offset": [
                    0,
                    2.1,
                    0
                  ],
                  "ParticleSystem": "Question"
                }
              ]
            },
            {
              "Continue": true,
              "Sensor": {
                "Type": "Any"
              },
              "Instructions": [
                {
                  "Sensor": {
                    "Type": "Eval",
                    "Expression": "blocked"
                  },
                  "BodyMotion": {
                    "Type": "Timer",
                    "Time": [
                      2,
                      3
                    ],
                    "Motion": {
                      "Type": "Wander",
                      "MaxHeadingChange": 45,
                      "RelativeSpeed": 0.5
                    }
                  }
                },
                {
                  "Sensor": {
                    "Type": "Mob",
                    "Range": 1,
                    "LockOnTarget": false,
                    "Filters": [
                      {
                        "Type": "NPCGroup",
                        "IncludeGroups": [
                          "Trork"
                        ]
                      },
                      {
                        "Type": "ViewSector",
                        "ViewSector": 180
                      }
                    ]
                  },
                  "BodyMotion": {
                    "Type": "Wander",
                    "MaxHeadingChange": 45,
                    "RelativeSpeed": 1
                  }
                },
                {
                  "Sensor": {
                    "Type": "Any"
                  },
                  "BodyMotion": {
                    "Type": "Sequence",
                    "Motions": [
                      {
                        "Type": "Timer",
                        "Time": [
                          2,
                          3
                        ],
                        "Motion": {
                          "Type": "Wander",
                          "MaxHeadingChange": 1,
                          "RelativeSpeed": 0.5
                        }
                      },
                      {
                        "Type": "Sequence",
                        "Looped": true,
                        "Motions": [
                          {
                            "Type": "Timer",
                            "Time": [
                              1,
                              2
                            ],
                            "Motion": {
                              "Type": "WanderInCircle",
                              "Radius": 5,
                              "MaxHeadingChange": 60,
                              "RelativeSpeed": 0.5
                            }
                          },
                          {
                            "Type": "Timer",
                            "Time": [
                              1,
                              2
                            ],
                            "Motion": {
                              "Type": "Nothing"
                            }
                          }
                        ]
                      }
                    ]
                  }
                }
              ]
            },
            {
              "Sensor": {
                "Type": "Player",
                "Range": 3.5,
                "LockOnTarget": true,
                "Filters": [
                  {
                    "Type": "LineOfSight"
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "State",
                  "State": "Chase"
                }
              ]
            },
            {
              "Sensor": {
                "Type": "And",
                "Sensors": [
                  {
                    "Type": "Player",
                    "Range": 20,
                    "LockOnTarget": true,
                    "Filters": [
                      {
                        "Type": "LineOfSight"
                      },
                      {
                        "Type": "ViewSector",
                        "ViewSector": 120
                      }
                    ]
                  },
                  {
                    "Type": "Target",
                    "TargetSlot": "LockedTarget",
                    "Filters": [
                      {
                        "Type": "MovementState",
                        "State": "Crouching"
                      }
                    ]
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "State",
                  "State": "Alerted"
                }
              ]
            },
            {
              "Sensor": {
                "Type": "And",
                "Sensors": [
                  {
                    "Type": "Player",
                    "Range": 20,
                    "LockOnTarget": true,
                    "Filters": [
                      {
                        "Type": "LineOfSight"
                      }
                    ]
                  },
                  {
                    "Type": "Not",
                    "Sensor": {
                      "Type": "Target",
                      "TargetSlot": "LockedTarget",
                      "Filters": [
                        {
                          "Type": "MovementState",
                          "State": "Crouching"
                        }
                      ]
                    }
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "State",
                  "State": "Alerted"
                }
              ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "State",
            "State": "Chase"
          },
          "Instructions": [
            {
              "Continue": true,
              "Sensor": {
                "Type": "Any",
                "Once": true
              },
              "Actions": [
                {
                  "Type": "PlayAnimation",
                  "Slot": "Status"
                }
              ]
            },
            {
              "Continue": true,
              "Sensor": {
                "Type": "Any"
              },
              "Instructions": [
                {
                  "Sensor": {
                    "Type": "Eval",
                    "Expression": "blocked"
                  },
                  "BodyMotion": {
                    "Type": "Timer",
                    "Time": [
                      2,
                      3
                    ],
                    "Motion": {
                      "Type": "Wander",
                      "MaxHeadingChange": 45,
                      "RelativeSpeed": 1
                    }
                  }
                },
                {
                  "Sensor": {
                    "Type": "Mob",
                    "Range": 1,
                    "LockOnTarget": false,
                    "Filters": [
                      {
                        "Type": "NPCGroup",
                        "IncludeGroups": [
                          "Void"
                        ]
                      }
                    ]
                  },
                  "BodyMotion": {
                    "Type": "Wander",
                    "MaxHeadingChange": 45,
                    "RelativeSpeed": 1
                  }
                },
                {
                  "Sensor": {
                    "Type": "Player",
                    "Range": 20,
                    "LockOnTarget": true,
                    "Filters": [
                      {
                        "Type": "LineOfSight"
                      }
                    ]
                  },
                  "BodyMotion": {
                    "Type": "Seek",
                    "SlowDownDistance": 1.5,
                    "StopDistance": 1,
                    "RelativeSpeed": 0.55
                  }
                }
              ]
            },
            {
              "Sensor": {
                "Type": "Player",
                "Range": 3
              },
              "Actions": [
                {
                  "Type": "Random",
                  "Actions": [
                    {
                      "Action": {
                        "Type": "Attack",
                        "Attack": "Root_NPC_Attack_Melee",
                        "AttackPauseRange": [
                          1,
                          2
                        ]
                      },
                      "Weight": 1
                    },
                    {
                      "Action": {
                        "Type": "Attack",
                        "Attack": "Root_NPC_Attack_Melee",
                        "AttackPauseRange": [
                          1,
                          2
                        ]
                      },
                      "Weight": 1
                    }
                  ]
                }
              ],
              "HeadMotion": {
                "Type": "Aim",
                "RelativeTurnSpeed": {
                  "Compute": "CombatRelativeTurnSpeed"
                }
              }
            },
            {
              "Sensor": {
                "Type": "And",
                "Sensors": [
                  {
                    "Type": "Not",
                    "Sensor": {
                      "Type": "Player",
                      "Range": 20,
                      "Filters": [
                        {
                          "Type": "LineOfSight"
                        }
                      ]
                    }
                  },
                  {
                    "Type": "Player",
                    "Range": 20,
                    "LockOnTarget": true
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "State",
                  "State": "Search"
                }
              ]
            },
            {
              "Sensor": {
                "Type": "Not",
                "Sensor": {
                  "Type": "Player",
                  "Range": 20
                }
              },
              "Actions": [
                {
                  "Type": "State",
                  "State": "Idle"
                }
              ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "State",
            "State": "FleeTimed"
          },
          "Instructions": [
            {
              "Continue": true,
              "Sensor": {
                "Type": "Any",
                "Once": true
              },
              "Actions": [
                {
                  "Type": "PlayAnimation",
                  "Slot": "Status"
                },
                {
                  "Type": "SpawnParticles",
                  "Offset": [
                    0,
                    2.1,
                    0
                  ],
                  "ParticleSystem": "Alerted"
                }
              ]
            },
            {
              "Continue": true,
              "Sensor": {
                "Type": "Any"
              },
              "Instructions": [
                {
                  "Sensor": {
                    "Type": "Eval",
                    "Expression": "blocked"
                  },
                  "BodyMotion": {
                    "Type": "Timer",
                    "Time": [
                      2,
                      3
                    ],
                    "Motion": {
                      "Type": "Wander",
                      "MaxHeadingChange": 45,
                      "RelativeSpeed": 1
                    }
                  }
                },
                {
                  "Sensor": {
                    "Type": "Mob",
                    "Range": 1,
                    "LockOnTarget": false,
                    "Filters": [
                      {
                        "Type": "NPCGroup",
                        "IncludeGroups": [
                          "Void"
                        ]
                      },
                      {
                        "Type": "ViewSector",
                        "ViewSector": 180
                      }
                    ]
                  },
                  "BodyMotion": {
                    "Type": "Wander",
                    "MaxHeadingChange": 45,
                    "RelativeSpeed": 1
                  }
                },
                {
                  "Sensor": {
                    "Type": "Any"
                  },
                  "BodyMotion": {
                    "Type": "Timer",
                    "Time": [
                      2,
                      3
                    ],
                    "Motion": {
                      "Type": "Wander",
                      "MaxHeadingChange": 45,
                      "RelativeSpeed": 1
                    }
                  }
                }
              ]
            },
            {
              "Sensor": {
                "Type": "Player",
                "Range": 8,
                "Filters": [
                  {
                    "Type": "LineOfSight"
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "State",
                  "State": "Chase"
                }
              ]
            },
            {
              "Sensor": {
                "Type": "Player",
                "Range": 20,
                "Filters": [
                  {
                    "Type": "LineOfSight"
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [
                    1,
                    1
                  ],
                  "Action": {
                    "Type": "State",
                    "State": "Chase"
                  }
                }
              ]
            },
            {
              "Sensor": {
                "Type": "And",
                "Sensors": [
                  {
                    "Type": "Not",
                    "Sensor": {
                      "Type": "Player",
                      "MinRange": 20,
                      "Range": 20,
                      "Filters": [
                        {
                          "Type": "LineOfSight"
                        }
                      ]
                    }
                  },
                  {
                    "Type": "Player",
                    "MinRange": 20,
                    "Range": 20,
                    "LockOnTarget": true
                  },
                  {
                    "Type": "Target",
                    "TargetSlot": "LockedTarget",
                    "Filters": [
                      {
                        "Type": "MovementState",
                        "State": "Crouching"
                      }
                    ]
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [
                    1,
                    1
                  ],
                  "Action": {
                    "Type": "State",
                    "State": "Search"
                  }
                }
              ]
            },
            {
              "Sensor": {
                "Type": "Any"
              },
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [
                    2,
                    3
                  ],
                  "Action": {
                    "Type": "State",
                    "State": "Idle"
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Spectre_Void.name"
}