Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.5 / NPC / Balancing / CAE_Test_Combat_Action_Evaluator_No_Ranged.json

CAE_Test_Combat_Action_Evaluator_No_Ranged

Server/NPC/Balancing/CAE_Test_Combat_Action_Evaluator_No_Ranged.json, 5.6 KB

Fields

FieldType
Typestring
TargetMemoryDurationnumber
CombatActionEvaluatorobject

Source

{
  "Type": "CombatActionEvaluator",
  "TargetMemoryDuration": 10,
  "CombatActionEvaluator": {
    "RunConditions": [
      {
        "Type": "TimeSinceLastUsed",
        "Curve": {
          "ResponseCurve": "Linear",
          "XRange": [
            0,
            10
          ]
        }
      },
      {
        "Type": "Randomiser",
        "MinValue": 0.9,
        "MaxValue": 1
      }
    ],
    "MinRunUtility": 0.5,
    "MinActionUtility": 0.01,
    "AvailableActions": {
      "SelfHeal": {
        "Type": "Ability",
        "Description": "Heal self",
        "Target": "Self",
        "AttackDistanceRange": [
          1,
          1
        ],
        "Ability": "Test_Heal",
        "WeightCoefficient": 1.2,
        "Conditions": [
          {
            "Type": "OwnStatPercent",
            "Stat": "Health",
            "Curve": "ReverseLinear"
          },
          {
            "Type": "TimeSinceLastUsed",
            "Curve": {
              "Type": "Switch",
              "SwitchPoint": 10
            }
          }
        ]
      },
      "HealFriendly": {
        "Type": "Ability",
        "Description": "Heal friendly",
        "Target": "Friendly",
        "WeaponSlot": 0,
        "AttackDistanceRange": [
          2,
          2
        ],
        "Ability": "Eye_Void_Summon",
        "WeightCoefficient": 1.2,
        "Conditions": [
          {
            "Type": "TargetStatPercent",
            "Stat": "Health",
            "Curve": "ReverseLinear"
          },
          {
            "Type": "TimeSinceLastUsed",
            "Curve": {
              "Type": "Switch",
              "SwitchPoint": 10
            }
          }
        ]
      },
      "MeleeAttack": {
        "Type": "Ability",
        "Description": "Use melee attack",
        "Target": "Hostile",
        "WeaponSlot": 0,
        "AttackDistanceRange": [
          2,
          2
        ],
        "Ability": "Sword_Swing_Left_Fast",
        "SubState": "Default",
        "Conditions": [
          {
            "Type": "TargetDistance",
            "Curve": {
              "ResponseCurve": "SimpleDescendingLogistic",
              "XRange": [
                0,
                10
              ]
            }
          }
        ],
        "InteractionVars": {
          "Sword_Swing_Left_Fast_Damage": {
            "Interactions": [
              {
                "Parent": "Sword_Swing_Left_Fast_Damage",
                "DamageCalculator": {
                  "Type": "Absolute",
                  "BaseDamage": {
                    "Physical": 10
                  },
                  "RandomPercentageModifier": 0
                },
                "DamageEffects": {
                  "WorldSoundEventId": "SFX_Sword_T2_Impact",
                  "LocalSoundEventId": "SFX_Sword_T2_Impact"
                }
              }
            ]
          }
        }
      }
    },
    "ActionSets": {
      "Default": {
        "BasicAttacks": {
          "Attacks": [
            "Sword_Swing_Left_Fast",
            "Sword_Swing_Right_Fast",
            "Sword_Swing_Down_Strong"
          ],
          "InteractionVars": {
            "Sword_Swing_Left_Fast_Damage": {
              "Interactions": [
                {
                  "Parent": "Sword_Swing_Left_Fast_Damage",
                  "DamageCalculator": {
                    "Type": "Absolute",
                    "BaseDamage": {
                      "Physical": 3
                    },
                    "RandomPercentageModifier": 0
                  },
                  "DamageEffects": {
                    "WorldSoundEventId": "SFX_Sword_T2_Impact",
                    "LocalSoundEventId": "SFX_Sword_T2_Impact"
                  }
                }
              ]
            },
            "Sword_Swing_Right_Fast_Damage": {
              "Interactions": [
                {
                  "Parent": "Sword_Swing_Right_Fast_Damage",
                  "DamageCalculator": {
                    "Type": "Absolute",
                    "BaseDamage": {
                      "Physical": 3
                    },
                    "RandomPercentageModifier": 0
                  },
                  "DamageEffects": {
                    "WorldSoundEventId": "SFX_Sword_T2_Impact",
                    "LocalSoundEventId": "SFX_Sword_T2_Impact"
                  }
                }
              ]
            },
            "Sword_Swing_Down_Strong_Damage": {
              "Interactions": [
                {
                  "Parent": "Sword_Swing_Down_Strong_Damage",
                  "DamageCalculator": {
                    "Type": "Absolute",
                    "BaseDamage": {
                      "Physical": 6
                    },
                    "RandomPercentageModifier": 0
                  },
                  "DamageEffects": {
                    "WorldSoundEventId": "SFX_Sword_T2_Impact",
                    "LocalSoundEventId": "SFX_Sword_T2_Impact"
                  }
                }
              ]
            }
          },
          "Randomise": false,
          "MaxRange": 2,
          "Timeout": 2,
          "CooldownRange": [
            2,
            3
          ]
        },
        "Actions": [
          "SelfHeal",
          "HealFriendly",
          "MeleeAttack"
        ]
      },
      "Ranged": {
        "BasicAttacks": {
          "Attacks": [
            "NPC_Rubble_Throw"
          ],
          "Randomise": false,
          "MaxRange": 10,
          "Timeout": 2,
          "CooldownRange": [
            2,
            3
          ]
        },
        "Actions": [
          "SelfHeal",
          "HealFriendly",
          "MeleeAttack"
        ]
      }
    }
  }
}