{

  "AbilityName": "NPC_Domain",

  "AbilityMixins": [

    {

      "$type": "MoleMole.DomainFieldMixin",

      "Radius": "%InteractRadius",

      "FieldType": "Sphere",

      "Follow": true,

      "IncludeSelf": false,

      "Targetting": "All",

      "OccupyDuration": "%ODuration",

      "TargetResource": "%TResource",

      "OccupyNormalRatio": "%NormalRatio",

      "OccupyExitInteractionTime": "%ExitTime",

      "OccupyInterruptRatio": "%ExitRatio",

      "monsterInteractionTime": "%MonsterTime",

      "monsterInterruptMaxRatio": "%MInterruptMaxRatio",

      "monsterInterruptRatio": "%MInterruptRatio",

      "redLightSparkGapTime": "%SparkGapTime",

      // Start

      "OnOccupyStartActions": [

        {

          "$type": "MoleMole.FireEffect",

          "EffectPattern": "Eff_NPC_DomainOccupy_Domaining_Start",

          "Target": "Self",

        },

        {

          "$type": "MoleMole.SetAnimCtrlerParamAction",

          "ParamType": 1,

          "ParamName": "Trigger_Open",

          "Target": "Self",

          "BoolVal": true,

        }

      ],

      //变化率监控

      "OccupyRatioChangeActions": [

        {

          "Val": 0, //float类型变量,需要监控的当前OccupyRatio数值

          "LowToValueActions": [

            //低值进入value时引发的action



          ],

          "HighToValueActions": [

            {

              "$type": "MoleMole.ModifyLayeredEffectAction",

              "layersIndex": [

                1,

              ],

              "effectName": "Eff_NPC_DomainOccupy_Idle_Domaining_Loop",

              "isActive": "false"

            }

          ],

        },

        {

          "Val": 0.1, //float类型变量,需要监控的当前OccupyRatio数值

          "LowToValueActions": [

            //低值进入value时引发的action

            {

              "$type": "MoleMole.ModifyLayeredEffectAction",

              "layersIndex": [

                1,

              ],

              "effectName": "Eff_NPC_DomainOccupy_Idle_Domaining_Loop",

              "isActive": "true"

            }

          ],

          "HighToValueActions": [



          ],

        }

      ],

      // Resource Change

      "ResourceRangeActions": [

        {

          "Val": 0.03, //百分比

          "LowToValueActions": [

            //由低值进入value时引发的action

            {

              "$type": "MoleMole.ModifyLayeredEffectAction",

              "layersIndex": [

                0,

                1

              ],

              "effectName": "Eff_NPC_DomainOccupy_Idle_Domaining_Loop",

              "isActive": "true"

            }

          ],

          "HighToValueActions": [

            //由高值进入value时引发的action

          ],

        },

        {

          "Val": 0.1, //百分比

          "LowToValueActions": [

            //由低值进入value时引发的action

            {

              "$type": "MoleMole.FireEffect",

              "EffectPattern": "Eff_NPC_DomainOccupy_Domaining_Progress",

              "Target": "Self",

            }

          ],

          "HighToValueActions": [

            //由高值进入value时引发的action

          ],

        },

        {

          "Val": 0.20, //百分比

          "LowToValueActions": [

            //由低值进入value时引发的action

            {

              "$type": "MoleMole.FireEffect",

              "EffectPattern": "Eff_NPC_DomainOccupy_Domaining_Progress",

              "Target": "Self",

            }

          ]

        },

        {

          "Val": 0.3, //百分比

          "LowToValueActions": [

            //由低值进入value时引发的action

            {

              "$type": "MoleMole.FireEffect",

              "EffectPattern": "Eff_NPC_DomainOccupy_Domaining_Progress",

              "Target": "Self",

            },

            {

              "$type": "MoleMole.ModifyLayeredEffectAction",

              "layersIndex": [

                0,

                1,

                2

              ],

              "effectName": "Eff_NPC_DomainOccupy_Idle_Domaining_Loop",

              "isActive": "true"

            }

          ]

        },

        {

          "Val": 0.4, //百分比

          "LowToValueActions": [

            //由低值进入value时引发的action

            {

              "$type": "MoleMole.FireEffect",

              "EffectPattern": "Eff_NPC_DomainOccupy_Domaining_Progress",

              "Target": "Self",

            }

          ]

        },

        {

          "Val": 0.5, //百分比

          "LowToValueActions": [

            //由低值进入value时引发的action

            {

              "$type": "MoleMole.FireEffect",

              "EffectPattern": "Eff_NPC_DomainOccupy_Domaining_Progress",

              "Target": "Self",

            }

          ]

        },

        {

          "Val": 0.6, //百分比

          "LowToValueActions": [

            //由低值进入value时引发的action

            {

              "$type": "MoleMole.FireEffect",

              "EffectPattern": "Eff_NPC_DomainOccupy_Domaining_Progress",

              "Target": "Self",

            }

          ]

        },

        {

          "Val": 0.7, //百分比

          "LowToValueActions": [

            //由低值进入value时引发的action

            {

              "$type": "MoleMole.FireEffect",

              "EffectPattern": "Eff_NPC_DomainOccupy_Domaining_Progress",

              "Target": "Self",

            },

            {

              "$type": "MoleMole.ModifyLayeredEffectAction",

              "layersIndex": [

                0,

                1,

                2,

                3

              ],

              "effectName": "Eff_NPC_DomainOccupy_Idle_Domaining_Loop",

              "isActive": "true"

            }

          ]

        },

        {

          "Val": 0.8, //百分比

          "LowToValueActions": [

            //由低值进入value时引发的action

            {

              "$type": "MoleMole.FireEffect",

              "EffectPattern": "Eff_NPC_DomainOccupy_Domaining_Progress",

              "Target": "Self",

            }

          ]

        },

        {

          "Val": 0.9, //百分比

          "LowToValueActions": [

            //由低值进入value时引发的action

            {

              "$type": "MoleMole.FireEffect",

              "EffectPattern": "Eff_NPC_DomainOccupy_Domaining_Progress",

              "Target": "Self",

            }

          ]

        },

      ],

      "OnSuccessActions": [

        {

          "$type": "MoleMole.FireEffect",

          "EffectPattern": "Eff_NPC_DomainOccupy_Domaining_End",

          "Target": "Self",

        },

        {

          "$type": "MoleMole.SetAnimCtrlerParamAction",

          "ParamType": 1,

          "ParamName": "Trigger_Close",

          "Target": "Self",

          "BoolVal": true,

        }

      ],

      "OnFailureActions": []

    },

  ],

  "AbilitySpecials": {

    "TResource": {

      "Value": 10,

    },

    "NormalRatio": {

      "Value": 5,

    },

    "ODuration": {

      "Value": 90,

    },

    "ExitRatio": {

      "Value": 0,

    },

    "ExitTime": {

      "Value": 1,

    },

    "MonsterTime": {

      "Value": 1,

    },

    "MInterruptRatio": {

      "Value": 2,

    },

    "MInterruptMaxRatio": {

      "Value": 10,

    },

    "InteractRadius": {

      "Value": 10,

    },

    "SparkGapTime": {

      "Value": 1,

    }

  }

}