Hytale Asset ReferenceUnofficial
Versions / 0.5.6 / Item / Interactions / Weapons / Sword / Attacks / Deprecated / Variants / Sword_Attack.json

Sword_Attack

Server/Item/Interactions/Weapons/Sword/Attacks/Deprecated/Variants/Sword_Attack.json, 2.5 KB

Fields

FieldType
Typestring
Lenientboolean
Costsobject
Nextobject
Failedobject

Source

{
  "Type": "StatsCondition",
  "Lenient": false,
  "Costs": {
    "Stamina": 2.01
  },
  "Next": {
    "Type": "Serial",
    "Interactions": [
      {
        "Type": "ChangeStat",
        "StatModifiers": {
          "StaminaRegenDelay": -5
        },
        "Behaviour": "Set"
      },
      {
        "Type": "Charging",
        "Effects": {
          "ItemAnimationId": "StabDashCharging",
          "Particles": [
            {
              "PositionOffset": {
                "X": 0.6,
                "Y": 0,
                "Z": 0
              },
              "RotationOffset": {
                "Pitch": 0,
                "Roll": 90,
                "Yaw": 0
              },
              "TargetNodeName": "Handle",
              "SystemId": "Sword_Charging"
            }
          ]
        },
        "AllowIndefiniteHold": false,
        "Next": {
          "0": {
            "Type": "Serial",
            "Interactions": [
              "Sword_Swings",
              {
                "Type": "ChangeStat",
                "StatModifiers": {
                  "StaminaRegenDelay": -0.5
                },
                "Behaviour": "Set"
              }
            ]
          },
          "0.45": {
            "Type": "Serial",
            "Interactions": [
              {
                "Type": "ChangeStat",
                "StatModifiers": {
                  "Stamina": -2
                }
              },
              "Sword_Stab_Dash_Charged",
              {
                "Type": "ChangeStat",
                "StatModifiers": {
                  "StaminaRegenDelay": -0.75
                },
                "Behaviour": "Set"
              }
            ]
          }
        }
      }
    ]
  },
  "Failed": {
    "Type": "Serial",
    "Interactions": [
      {
        "Type": "Charging",
        "AllowIndefiniteHold": false,
        "Next": {
          "0": {
            "Type": "Serial",
            "Interactions": [
              {
                "Type": "ChangeStat",
                "StatModifiers": {
                  "StaminaRegenDelay": -0.75
                }
              },
              "Sword_Swings"
            ]
          },
          "0.2": {
            "Type": "Serial",
            "Interactions": [
              "Stamina_Bar_Flash",
              {
                "Type": "ChangeStat",
                "StatModifiers": {
                  "StaminaRegenDelay": 0
                },
                "Behaviour": "Set"
              }
            ]
          }
        }
      }
    ]
  }
}