{

	//幽灵召唤及管理脚本

    "AbilityName" : "Lucy_Wood_Summon",

    "AbilityStacking": "Unique",



    "DefaultModifier" :

    {

        "OnAdded" :

        [

            {

                "$type" : "MoleMole.TriggerAbilityAction",

                "AbilityName" : "Lucy_Wood_Summon"

            }

        ]

    },



    "AbilityMixins" : 

    [

        // 召唤小猪00号机

        {

            "$type" : "MoleMole.SummonMixin",

            "SummonType" : "Monster",

            "SummonID" : 199140511,

            "SummonDuration" : -1,

            "SummonTag" : ["LucyWood00"],

            "TimesUpDelay" : 0,

            "OverrideDelay" : 0,



            "SummonPosRot" : 

            {

                "CoordsOption" : "ReferTarget",

                "TargetOption": {

                    "$type": "MoleMole.ConfigPosRotReferTarget",

                    "OffsetReferTarget": "Caster",

                    "AttachPoint": "WoodFollowPoint_02",

                    "IsUseAttachPointPos": true,

                    "IsUseAttachPointRotation": true

                },

                "Offset" : 

                {

                    "PositionOffset" : {"x":0.0, "y":0.0, "z":0.0},

                    "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0},

                    "IsUseRotationY" : true,

                    "IsUseRotationXZ" : true,

                    "IsClampOffsetDistance" : false

                }

            },

            //指定召唤出的小幽灵始终跟随GhostFollowPoint_02点，且面向一致

            "OnSummonCreatedActions" : 

            [

                //设置00号小猪自己识别编号

                {

                    "$type" : "MoleMole.WriteAIParamAction",

                    "Target" : "Target",

                    "ParamName" : "Int_WoodNum",

                    "IntParamValue" : 0,

                },

                {

                    "$type" : "MoleMole.SetAnimCtrlerParamAction",

                    "Target" : "Target",

                    "ParamType" : 3,

                    "ParamName" : "Int_WoodNum",

                    "IntVal" : 0,

                },

                

                //若非Lucy出场，则设置00号小猪到后场模式

                {

                    "$type" : "MoleMole.WriteAIParamAction",

                    "Target" : "Target",

                    "ParamName" : "Int_ActionMode",

                    "IntParamValue" : 2,

                    "Predicates": 

                    [

                        {

                            "$type": "MoleMole.ByNot",

                            "Predicates": 

                            [

                                {

                                    "$type": "MoleMole.ByEntityTemplateID",

                                    "Target": "LocalAvatar",

                                    "EntityType": "Avatar",

                                    "TemplateID": 1151

                                }

                            ]

                        },

                    ]

                },



                // 若是Lucy出场，则设置00号小猪Init（出场默认在场）

                {

                    "$type" : "MoleMole.WriteAIParamAction",

                    "Target" : "Target",

                    "ParamName" : "Bool_WoodShow",

                    "BoolParamValue" : true,

                    "Predicates": 

                    [

                        {

                            "$type": "MoleMole.ByEntityTemplateID",

                            "Target": "LocalAvatar",

                            "EntityType": "Avatar",

                            "TemplateID": 1151

                        },

                    ]

                },



                // 若是Lucy出场，则设置00号小猪Init（出场默认在场）

                {

                    "$type" : "MoleMole.WriteAIParamAction",

                    "Target" : "Target",

                    "ParamName" : "Bool_LucyShow",

                    "BoolParamValue" : true,

                    "Predicates": 

                    [

                        {

                            "$type": "MoleMole.ByEntityTemplateID",

                            "Target": "LocalAvatar",

                            "EntityType": "Avatar",

                            "TemplateID": 1151

                        },

                    ]

                },



                //若非Lucy出场隐藏00号小猪

                {

                    "$type" : "MoleMole.PushEntityVisibleWithTagAction",

                    "Visible" : false,

                    "Target": "Target",

                    "Tag" : "LucyWoodHide",

                    "Predicates": 

                    [

                        {

                            "$type": "MoleMole.ByNot",

                            "Predicates": 

                            [

                                {

                                    "$type": "MoleMole.ByEntityTemplateID",

                                    "Target": "LocalAvatar",

                                    "EntityType": "Avatar",

                                    "TemplateID": 1151

                                }

                            ]

                        },

                    ]

                },

                // 开启00号小猪AI行为树

                {

                    "$type" : "MoleMole.TriggerBehaviorTreeAction",

                    "Target" : "Target",

                    "Enable": true,

                },

                // 若非Lucy出场关闭所有Collider

                {

                    "$type" : "MoleMole.PushHitColliderEnable",

                    "Target" : "Target",

                    "Tag" : "Wood_Collider",

                    "HitColliderEnable" : false,

                    "Predicates": 

                    [

                        {

                            "$type": "MoleMole.ByNot",

                            "Predicates": 

                            [

                                {

                                    "$type": "MoleMole.ByEntityTemplateID",

                                    "Target": "LocalAvatar",

                                    "EntityType": "Avatar",

                                    "TemplateID": 1151

                                }

                            ]

                        },

                    ]

                },

            ]

        },



        // 召唤小猪01号机

        {

            "$type" : "MoleMole.SummonMixin",

            "SummonType" : "Monster",

            "SummonID" : 199140511,

            "SummonDuration" : -1,

            "SummonTag" : ["LucyWood01"],

            "TimesUpDelay" : 0,

            "OverrideDelay" : 0,



            //直接在目标点召唤小幽灵

            "SummonPosRot" : 

            {

                "CoordsOption" : "ReferTarget",

                "TargetOption": {

                    "$type": "MoleMole.ConfigPosRotReferTarget",

                    "OffsetReferTarget": "Caster",

                    "AttachPoint": "WoodFollowPoint_02",

                    "IsUseAttachPointPos": true,

                    "IsUseAttachPointRotation": true

                },

                "Offset" : 

                {

                    "PositionOffset" : {"x":0.0, "y":0.0, "z":0.0},

                    "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0},

                    "IsUseRotationY" : true,

                    "IsUseRotationXZ" : true,

                    "IsClampOffsetDistance" : false

                }

            },

            

            



            "OnSummonCreatedActions" : 

            [

                //设置01、02号小猪自己识别编号

                {

                    "$type" : "MoleMole.WriteAIParamAction",

                    "Target" : "Target",

                    "ParamName" : "Int_WoodNum",

                    "IntParamValue" : 1,

                },

                {

                    "$type" : "MoleMole.SetAnimCtrlerParamAction",

                    "Target" : "Target",

                    "ParamType" : 3,

                    "ParamName" : "Int_WoodNum",

                    "IntVal" : 1,

                },

                // 设置01、02号小猪AI到后场模式

                {

                    "$type" : "MoleMole.WriteAIParamAction",

                    "Target" : "Self",

                    "ParamName" : "Int_ActionMode",

                    "IntParamValue" : 2,

                },

                // 隐藏01、02号小猪

                {

                    "$type" : "MoleMole.PushEntityVisibleWithTagAction",

                    "Visible" : false,

                    "Target": "Target",

                    "Tag" : "LucyWoodHide",

                },

                // 关闭所有Collider

                {

                    "$type" : "MoleMole.PushHitColliderEnable",

                    "Target" : "Target",

                    "Tag" : "Wood_Collider",

                    "HitColliderEnable" : false,

                },

            ]

        },



        // 召唤小猪02号机

        {

            "$type" : "MoleMole.SummonMixin",

            "SummonType" : "Monster",

            "SummonID" : 199140511,

            "SummonDuration" : -1,

            "SummonTag" : ["LucyWood02"],

            "TimesUpDelay" : 0,

            "OverrideDelay" : 0,



            "SummonPosRot" : 

            {

                "CoordsOption" : "ReferTarget",

                "TargetOption": {

                    "$type": "MoleMole.ConfigPosRotReferTarget",

                    "OffsetReferTarget": "Caster",

                    "AttachPoint": "WoodFollowPoint_02",

                    "IsUseAttachPointPos": true,

                    "IsUseAttachPointRotation": true

                },

                "Offset" : 

                {

                    "PositionOffset" : {"x":0.0, "y":0.0, "z":0.0},

                    "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0},

                    "IsUseRotationY" : true,

                    "IsUseRotationXZ" : true,

                    "IsClampOffsetDistance" : false

                }

            },

            

            



            "OnSummonCreatedActions" : 

            [

                //设置01、02号小猪自己识别编号

                {

                    "$type" : "MoleMole.WriteAIParamAction",

                    "Target" : "Target",

                    "ParamName" : "Int_WoodNum",

                    "IntParamValue" : 2,

                },

                {

                    "$type" : "MoleMole.SetAnimCtrlerParamAction",

                    "Target" : "Target",

                    "ParamType" : 3,

                    "ParamName" : "Int_WoodNum",

                    "IntVal" : 2,

                },

                // 设置01、02号小猪AI到后场模式

                {

                    "$type" : "MoleMole.WriteAIParamAction",

                    "Target" : "Self",

                    "ParamName" : "Int_ActionMode",

                    "IntParamValue" : 2,

                },

                // 隐藏01、02号小猪

                {

                    "$type" : "MoleMole.PushEntityVisibleWithTagAction",

                    "Visible" : false,

                    "Target": "Target",

                    "Tag" : "LucyWoodHide",

                },

                // 关闭所有Collider

                {

                    "$type" : "MoleMole.PushHitColliderEnable",

                    "Target" : "Target",

                    "Tag" : "Wood_Collider",

                    "HitColliderEnable" : false,

                },

            ]       

        }

    ],

}