{ //露西QTE攻击逻辑脚本 "AbilityName" : "Lucy_QTE", "AbilityStacking": "Unique", "OnAbilityStart" : [ //检测在场猪猪数量 { "$type": "MoleMole.ApplyModifier", "ModifierName": "WoodCountModifier", "Target": "Self", }, //一只猪猪在场的情况 { "$type": "MoleMole.ApplyModifier", "ModifierName": "SingleWoodModifier", "Target": "Self", "Predicates" : [ { "$type" : "MoleMole.ByAbilitySpecial", "ParamName": "AS_WoodCount", "CompareType": "Equal", "Param" : 1, "ParamType": "int", }, ] }, //两只猪猪在场的情况 { "$type": "MoleMole.ApplyModifier", "ModifierName": "DoubleWoodModifier", "Target": "Self", "Predicates" : [ { "$type" : "MoleMole.ByAbilitySpecial", "ParamName": "AS_WoodCount", "CompareType": "Equal", "Param" : 2, "ParamType": "int", }, ] }, //三只猪猪在场的情况 { "$type": "MoleMole.ApplyModifier", "ModifierName": "TripleWoodModifier", "Target": "Self", "Predicates" : [ { "$type" : "MoleMole.ByAbilitySpecial", "ParamName": "AS_WoodCount", "CompareType": "Equal", "Param" : 3, "ParamType": "int", }, ] }, ], "Modifiers": { //一只猪猪在场情况 "SingleWoodModifier": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ // 00号小猪DelayAction { "$type": "MoleMole.ApplyModifier", "ModifierName": "DelayModifier01_00", "Target": "Self", }, ], }, //两只猪猪在场情况 "DoubleWoodModifier": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ // 00号小猪DelayAction { "$type": "MoleMole.ApplyModifier", "ModifierName": "DelayModifier02_00", "Target": "Self", }, // 01号小猪DelayAction { "$type": "MoleMole.ApplyModifier", "ModifierName": "DelayModifier02_01", "Target": "Self", }, ], }, //三只猪猪在场情况 "TripleWoodModifier": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ // 02号小猪DelayAction { "$type": "MoleMole.ApplyModifier", "ModifierName": "DelayModifier03_02", "Target": "Self", }, // 00号小猪DelayAction { "$type": "MoleMole.ApplyModifier", "ModifierName": "DelayModifier03_00", "Target": "Self", }, // 01号小猪DelayAction { "$type": "MoleMole.ApplyModifier", "ModifierName": "DelayModifier03_01", "Target": "Self", }, ], }, // 一只小猪在场,00号小猪Delay "DelayModifier01_00": { "ModifierStacking": "Refresh", "Duration": 0.2, "IgnoreTimeScale": false, "OnRemoved" : [ //传送00号小猪到00号中间位置 { "$type": "MoleMole.ApplyModifier", "ModifierName": "TeleportMainWoodModifier00", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, //设置00号小猪AI状态 { "$type": "MoleMole.ApplyModifier", "ModifierName": "AIModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, //随机00号小猪跳起动画 { "$type": "MoleMole.ApplyModifier", "ModifierName": "RandomJumpModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, //设置00号小猪状态机 { "$type": "MoleMole.ApplyModifier", "ModifierName": "ControllerModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, //设置00号小猪淡入效果 { "$type": "MoleMole.ApplyModifier", "ModifierName": "FadeInWoodModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, ] }, // 两只小猪在场,00号小猪Delay "DelayModifier02_00": { "ModifierStacking": "Refresh", "Duration": 0.2, "IgnoreTimeScale": false, "OnRemoved" : [ //传送00号小猪到00号中间位置 { "$type": "MoleMole.ApplyModifier", "ModifierName": "TeleportMainWoodModifier01", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, //设置00号小猪AI状态 { "$type": "MoleMole.ApplyModifier", "ModifierName": "AIModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, //随机00号小猪跳起动画 { "$type": "MoleMole.ApplyModifier", "ModifierName": "RandomJumpModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, //设置00号小猪状态机 { "$type": "MoleMole.ApplyModifier", "ModifierName": "ControllerModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, //设置00号小猪淡入效果 { "$type": "MoleMole.ApplyModifier", "ModifierName": "FadeInWoodModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, ] }, // 两只小猪在场,01号小猪Delay "DelayModifier02_01": { "ModifierStacking": "Refresh", "Duration": 0.2, "IgnoreTimeScale": false, "OnRemoved" : [ //传送01号小猪到01号左边位置 { "$type": "MoleMole.ApplyModifier", "ModifierName": "TeleportMainWoodModifier02", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_01", }, //设置01号小猪AI状态 { "$type": "MoleMole.ApplyModifier", "ModifierName": "AIModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_01", }, //随机01号小猪跳起动画 { "$type": "MoleMole.ApplyModifier", "ModifierName": "RandomJumpModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_01", }, //设置01号小猪状态机 { "$type": "MoleMole.ApplyModifier", "ModifierName": "ControllerModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_01", }, //设置01号小猪淡入效果 { "$type": "MoleMole.ApplyModifier", "ModifierName": "FadeInWoodModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_01", }, ] }, // 三只小猪在场,00号小猪Delay "DelayModifier03_00": { "ModifierStacking": "Unique", "Duration": 0.2, "IgnoreTimeScale": true, "OnRemoved" : [ //传送00号小猪到00号中间位置 { "$type": "MoleMole.ApplyModifier", "ModifierName": "TeleportMainWoodModifier00", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, //设置00号小猪AI状态 { "$type": "MoleMole.ApplyModifier", "ModifierName": "AIModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, //随机00号小猪跳起动画 { "$type": "MoleMole.ApplyModifier", "ModifierName": "RandomJumpModifier00", "Target": "Self", }, //设置00号小猪状态机 { "$type": "MoleMole.ApplyModifier", "ModifierName": "ControllerModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, //设置00号小猪淡入效果 { "$type": "MoleMole.ApplyModifier", "ModifierName": "FadeInWoodModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", }, ] }, // 三只小猪在场,01号小猪Delay "DelayModifier03_01": { "ModifierStacking": "Unique", "Duration": 0.3, "IgnoreTimeScale": true, "OnRemoved" : [ //传送01号小猪到01号左边位置 { "$type": "MoleMole.ApplyModifier", "ModifierName": "TeleportMainWoodModifier01", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_01", }, //设置01号小猪AI状态 { "$type": "MoleMole.ApplyModifier", "ModifierName": "AIModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_01", }, //随机01号小猪跳起动画 { "$type": "MoleMole.ApplyModifier", "ModifierName": "RandomJumpModifier01", "Target": "Self", }, //设置01号小猪状态机 { "$type": "MoleMole.ApplyModifier", "ModifierName": "ControllerModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_01", }, //设置01号小猪淡入效果 { "$type": "MoleMole.ApplyModifier", "ModifierName": "FadeInWoodModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_01", }, ] }, // 三只小猪在场,02号小猪Delay "DelayModifier03_02": { "ModifierStacking": "Unique", "Duration": 0.1, "IgnoreTimeScale": true, "OnRemoved" : [ //传送02号小猪到02号右边位置 { "$type": "MoleMole.ApplyModifier", "ModifierName": "TeleportMainWoodModifier02", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_02", }, //设置02号小猪AI状态 { "$type": "MoleMole.ApplyModifier", "ModifierName": "AIModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_02", }, //随机02号小猪跳起动画 { "$type": "MoleMole.ApplyModifier", "ModifierName": "RandomJumpModifier02", "Target": "Self", }, //设置02号小猪状态机 { "$type": "MoleMole.ApplyModifier", "ModifierName": "ControllerModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_02", }, //设置02号小猪淡入效果 { "$type": "MoleMole.ApplyModifier", "ModifierName": "FadeInWoodModifier", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_02", }, ] }, //00号中间位置 "TeleportMainWoodModifier00": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ { "$type": "MoleMole.ApplyLogicMoveAction", "Target": "Self", "MovementConfig" : { "$type" : "MoleMole.ConfigMovementTarget", "Duration" : 0.1, "Gravity" : 0.0, "HitTangentialRatio" : 1, "HitNormalRatio" : 1, "TimesUpMoveOption" : "Stop", //此处可迭代成LucyWoodFollowPoint点,参考Lucy_Wood_Summon.而LucyFollowPoint可拆分成SpawnPoint和TeleportPoint以及BranchAttackPoint等等 "TargetPosRot" : { "CoordsOption" : "ReferTarget", "TargetOption" : { "$type" : "MoleMole.ConfigPosRotReferTarget", "OffsetReferTarget" : "Caster", "AttachPoint" : "WoodQTEPoint01", "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}, "IsClampOffsetDistance" : false } }, //"DefaultOffset" : {"x":0.0, "y":0.0, "z":5.0}, "MoveType": { "$type" : "MoleMole.MovementTypeInstant", "NeedRayCastCheck" : false, //本次瞬移能够穿墙 }, "TargetUpdateMode" : "Always", "ReachTargetStop" : true }, "RotationConfig" : { "$type" : "MoleMole.ConfigRotationToTarget", "Duration" : -1, "TargetPosRot" : { "CoordsOption" : "ReferTarget", "TargetOption" : { "$type" : "MoleMole.ConfigPosRotReferTarget", "OffsetReferTarget" : "Caster", }, "Offset" : { //看向目标点前方无限远处,即和目标点朝向保持一致 "PositionOffset" : {"x":0.0, "y":0.0, "z":9999.0}, "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0}, "IsUseRotationY" : true, "IsUseRotationXZ" : true, "IsClampOffsetDistance" : false } }, "RotateType" : "Instant", "RotateSpeed" : 1, "TargetUpdateMode" : "OnStart", "ReachTargetStop" : true }, }, ] }, //01号左边位置 "TeleportMainWoodModifier01": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ { "$type": "MoleMole.ApplyLogicMoveAction", "Target": "Self", "MovementConfig" : { "$type" : "MoleMole.ConfigMovementTarget", "Duration" : 0.1, "Gravity" : 0.0, "HitTangentialRatio" : 1, "HitNormalRatio" : 1, "TimesUpMoveOption" : "Stop", //此处可迭代成LucyWoodFollowPoint点,参考Lucy_Wood_Summon.而LucyFollowPoint可拆分成SpawnPoint和TeleportPoint以及BranchAttackPoint等等 "TargetPosRot" : { "CoordsOption" : "ReferTarget", "TargetOption" : { "$type" : "MoleMole.ConfigPosRotReferTarget", "OffsetReferTarget" : "Caster", "AttachPoint" : "WoodQTEPoint02", "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}, "IsClampOffsetDistance" : false } }, //"DefaultOffset" : {"x":0.0, "y":0.0, "z":5.0}, "MoveType": { "$type" : "MoleMole.MovementTypeInstant", "NeedRayCastCheck" : false, //本次瞬移能够穿墙 }, "TargetUpdateMode" : "Always", "ReachTargetStop" : true }, "RotationConfig" : { "$type" : "MoleMole.ConfigRotationToTarget", "Duration" : -1, "TargetPosRot" : { "CoordsOption" : "ReferTarget", "TargetOption" : { "$type" : "MoleMole.ConfigPosRotReferTarget", "OffsetReferTarget" : "Caster", }, "Offset" : { //看向目标点前方无限远处,即和目标点朝向保持一致 "PositionOffset" : {"x":0.0, "y":0.0, "z":9999.0}, "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0}, "IsUseRotationY" : true, "IsUseRotationXZ" : true, "IsClampOffsetDistance" : false } }, "RotateType" : "Instant", "RotateSpeed" : 1, "TargetUpdateMode" : "OnStart", "ReachTargetStop" : true }, }, ] }, //02号右边位置 "TeleportMainWoodModifier02": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ { "$type": "MoleMole.ApplyLogicMoveAction", "Target": "Self", "MovementConfig" : { "$type" : "MoleMole.ConfigMovementTarget", "Duration" : 0.1, "Gravity" : 0.0, "HitTangentialRatio" : 1, "HitNormalRatio" : 1, "TimesUpMoveOption" : "Stop", //此处可迭代成LucyWoodFollowPoint点,参考Lucy_Wood_Summon.而LucyFollowPoint可拆分成SpawnPoint和TeleportPoint以及BranchAttackPoint等等 "TargetPosRot" : { "CoordsOption" : "ReferTarget", "TargetOption" : { "$type" : "MoleMole.ConfigPosRotReferTarget", "OffsetReferTarget" : "Caster", "AttachPoint" : "WoodQTEPoint03", "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}, "IsClampOffsetDistance" : false } }, //"DefaultOffset" : {"x":0.0, "y":0.0, "z":5.0}, "MoveType": { "$type" : "MoleMole.MovementTypeInstant", "NeedRayCastCheck" : false, //本次瞬移能够穿墙 }, "TargetUpdateMode" : "Always", "ReachTargetStop" : true }, "RotationConfig" : { "$type" : "MoleMole.ConfigRotationToTarget", "Duration" : -1, "TargetPosRot" : { "CoordsOption" : "ReferTarget", "TargetOption" : { "$type" : "MoleMole.ConfigPosRotReferTarget", "OffsetReferTarget" : "Caster", }, "Offset" : { //看向目标点前方无限远处,即和目标点朝向保持一致 "PositionOffset" : {"x":0.0, "y":0.0, "z":9999.0}, "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0}, "IsUseRotationY" : true, "IsUseRotationXZ" : true, "IsClampOffsetDistance" : false } }, "RotateType" : "Instant", "RotateSpeed" : 1, "TargetUpdateMode" : "OnStart", "ReachTargetStop" : true }, }, ] }, //设置AI行为树ActionMode "AIModifier": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ { "$type" : "MoleMole.WriteAIParamAction", "Target" : "Self", "ParamName" : "Int_ActionMode", "IntParamValue" : 99, } ] }, //设置状态机参数 "ControllerModifier": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ { "$type" : "MoleMole.WriteAIParamAction", "Target": "Self", "ParamName" : "Bool_WoodShow", "BoolParamValue" : true, }, { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 3, "ParamName" : "Int_SwitchType_In", "Target" : "Self", "IntVal" : 10, }, { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 1, "ParamName" : "Trigger_Switch_In", "Target" : "Self", "BoolVal" : true, }, // //Test Effect // { // "$type" : "MoleMole.FireEffect", // "EffectPattern" : "Eff_Avatar_LevelUp_01", // "Target" : "Self", // }, ] }, //设置角色淡入效果 "FadeInWoodModifier": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ { "$type": "MoleMole.DitherFadeAction", "DitherFadeType": "FadeIn", "DitherFadeKey": "Default_Dither_Alpha_FadeIn", "Duration": 0.3, "Target" : "Self" }, ], }, //场上小猪计数器相关 "WoodCountModifier": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ //重置场上小猪计数器 { "$type": "MoleMole.SetAbilitySpecialAction", "ParamName": "AS_WoodCount", "ParamType": "int", "ModifyFunction": "Replace", "Param": 3, }, // //检测场上的小猪数量 // { // "$type": "MoleMole.SetAbilitySpecialAction", // "ParamName": "AS_WoodCount", // "ParamType": "int", // "ModifyFunction": "Add", // "Param": 1, // "Predicates" : // [ // { // "$type": "MoleMole.ByAIParam", // "Target": "Custom", // "CustomKey": "LucyWood_AbilityTargetting_01", // "ParamName": "Bool_WoodShow", // "CompareType": "Equal", // "BoolParamValue": true, // } // ] // }, // //检测场上的小猪数量 // { // "$type": "MoleMole.SetAbilitySpecialAction", // "ParamName": "AS_WoodCount", // "ParamType": "int", // "ModifyFunction": "Add", // "Param": 1, // "Predicates" : // [ // { // "$type": "MoleMole.ByAIParam", // "Target": "Custom", // "CustomKey": "LucyWood_AbilityTargetting_02", // "ParamName": "Bool_WoodShow", // "CompareType": "Equal", // "BoolParamValue": true, // } // ] // }, ] }, //随机跳起动画00 "RandomJumpModifier00": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ { "$type" : "MoleMole.RandomOperator", "Target" : "Self", "Odds" : 0.333, "OnSuccess" : [ { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 3, "ParamName" : "Int_JumpIndex", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", "IntVal" : 0, }, ], "OnFailure": [ { "$type" : "MoleMole.RandomOperator", "Target" : "Self", "Odds" : 0.5, "OnSuccess" : [ { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 3, "ParamName" : "Int_JumpIndex", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", "IntVal" : 1, }, ], "OnFailure": [ { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 3, "ParamName" : "Int_JumpIndex", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_00", "IntVal" : 2, }, ] } ] } ] }, //随机跳起动画01 "RandomJumpModifier01": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ { "$type" : "MoleMole.RandomOperator", "Target" : "Self", "Odds" : 0.333, "OnSuccess" : [ { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 3, "ParamName" : "Int_JumpIndex", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_01", "IntVal" : 0, }, ], "OnFailure": [ { "$type" : "MoleMole.RandomOperator", "Target" : "Self", "Odds" : 0.5, "OnSuccess" : [ { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 3, "ParamName" : "Int_JumpIndex", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_01", "IntVal" : 1, }, ], "OnFailure": [ { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 3, "ParamName" : "Int_JumpIndex", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_01", "IntVal" : 2, }, ] } ] } ] }, //随机跳起动画02 "RandomJumpModifier02": { "ModifierStacking": "Refresh", "Duration": 0.03, "IgnoreTimeScale": false, "OnAdded": [ { "$type" : "MoleMole.RandomOperator", "Target" : "Self", "Odds" : 0.333, "OnSuccess" : [ { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 3, "ParamName" : "Int_JumpIndex", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_02", "IntVal" : 0, }, ], "OnFailure": [ { "$type" : "MoleMole.RandomOperator", "Target" : "Self", "Odds" : 0.5, "OnSuccess" : [ { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 3, "ParamName" : "Int_JumpIndex", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_02", "IntVal" : 1, }, ], "OnFailure": [ { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 3, "ParamName" : "Int_JumpIndex", "Target": "Custom", "CustomKey": "LucyWood_AbilityTargetting_02", "IntVal" : 2, }, ] } ] } ] } }, "AbilitySpecials" : { //在场小猪数量 "AS_WoodCount" : { "Value" : 1 } } }