Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.6 / Item / Interactions / NPCs / Intelligent / Goblin_Duke / Goblin_Duke_Magic_3.json

Goblin_Duke_Magic_3

Server/Item/Interactions/NPCs/Intelligent/Goblin_Duke/Goblin_Duke_Magic_3.json, 3.1 KB

Fields

FieldType
Typestring
Effectsobject
RunTimenumber
Nextobject

Source

{
  "Type": "Simple",
  "Effects": {
    "Particles": [
      {
        "PositionOffset": {
          "X": 1,
          "Y": 0,
          "Z": 0
        },
        "RotationOffset": {
          "Pitch": 0,
          "Roll": 0,
          "Yaw": 0
        },
        "TargetNodeName": "Handle",
        "SystemId": "Lightning"
      }
    ]
  },
  "RunTime": 1,
  "Next": {
    "Type": "Simple",
    "Effects": {
      "ItemPlayerAnimationsId": "Goblin_Club",
      "ItemAnimationId": "SwingLeft"
    },
    "$Comment": "Prepare Delay",
    "RunTime": 0.417,
    "Next": {
      "Type": "Parallel",
      "$Comment": "Make sure this parallel interaction is needed and can't be optimized away",
      "Interactions": [
        {
          "Interactions": [
            {
              "Type": "Selector",
              "$Comment": "Length of Combat",
              "RunTime": 0.083,
              "Selector": {
                "Id": "Horizontal",
                "Direction": "ToLeft",
                "TestLineOfSight": true,
                "ExtendTop": 0.5,
                "ExtendBottom": 0.5,
                "StartDistance": 0.5,
                "EndDistance": 3,
                "Length": 360,
                "RollOffset": 30,
                "YawStartOffset": -45
              },
              "HitEntity": {
                "Interactions": [
                  {
                    "Type": "Replace",
                    "DefaultValue": {
                      "Interactions": [
                        "NPC_Attack_Melee_Damage"
                      ]
                    },
                    "Var": "Melee_Damage"
                  }
                ]
              },
              "Next": {
                "Type": "Simple",
                "$Comment": "Pad the interaction length",
                "RunTime": 0.333
              }
            }
          ]
        },
        {
          "Interactions": [
            {
              "Type": "Simple",
              "$Comment": "Length of Effect",
              "RunTime": 0.25,
              "Effects": {
                "Particles": [
                  {
                    "PositionOffset": {
                      "X": 1,
                      "Y": 0,
                      "Z": 0
                    },
                    "RotationOffset": {
                      "Pitch": 0,
                      "Roll": 0,
                      "Yaw": 0
                    },
                    "TargetNodeName": "Handle",
                    "SystemId": "Lightning"
                  }
                ],
                "Trails": [
                  {
                    "PositionOffset": {
                      "X": 0.8,
                      "Y": 0,
                      "Z": 0
                    },
                    "RotationOffset": {
                      "Pitch": 0,
                      "Roll": 90,
                      "Yaw": 0
                    },
                    "TargetNodeName": "Handle",
                    "TrailId": "Medium_Default"
                  }
                ],
                "WorldSoundEventId": "SFX_Light_Melee_T2_Swing"
              }
            }
          ]
        }
      ]
    }
  }
}