{ "AbilityName": "Activity_Bangkov_ItemUseHpRecover", "AbilitySpecials": { "AS_IsActive": { "Value": 0 }, "AS_IsNewItem": { "Value": 0 }, "AS_ItemID1": { "Value": 4211001 }, "AS_ItemID2": { "Value": 4211002 }, "AS_ItemID3": { "Value": 4211003 }, "AS_RecoverHP_Amount": { "Value": 0 }, "AS_RecoverHP_Amount1": { "Value": 200 }, "AS_RecoverHP_Amount2": { "Value": 100 }, "AS_RecoverHP_Amount3": { "Value": 50 }, "AS_RecoverHP_Percentage": { "Value": 0 }, "AS_RecoverHP_Percentage1": { "Value": 0 }, "AS_RecoverHP_Percentage2": { "Value": 0 }, "AS_RecoverHP_Percentage3": { "Value": 0 }, "Hub_AS_RecoverHP_Amount": { "Value": 0 }, "Hub_AS_RecoverHP_Percentage": { "Value": 0 }, "TokenCount": { "Value": 0 } }, "AbilityStacking": "Unique", "DefaultModifier": { "OnCustomEventReceived": [ { "$type": "ApplyModifier", "ModifierName": "PrepareModifier1", "Predicates": [ { "$type": "ByCustomEvent", "CompareParam": true, "CompareType": "Equal", "EventKey": "BKItem_ClientUse", "IntVal": "%AS_ItemID1", "ValueType": "Integer" } ] }, { "$type": "ApplyModifier", "ModifierName": "PrepareModifier2", "Predicates": [ { "$type": "ByCustomEvent", "CompareParam": true, "CompareType": "Equal", "EventKey": "BKItem_ClientUse", "IntVal": "%AS_ItemID2", "ValueType": "Integer" } ] }, { "$type": "ApplyModifier", "ModifierName": "PrepareModifier3", "Predicates": [ { "$type": "ByCustomEvent", "CompareParam": true, "CompareType": "Equal", "EventKey": "BKItem_ClientUse", "IntVal": "%AS_ItemID3", "ValueType": "Integer" } ] } ] }, "Modifiers": { "PrepareModifier1": { "Duration": -1, "ModifierStacking": "Replace", "OnAdded": [ { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": "%AS_RecoverHP_Amount1", "ParamName": "AS_RecoverHP_Amount" }, { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": "%AS_RecoverHP_Percentage1", "ParamName": "AS_RecoverHP_Percentage" }, { "$type": "ApplyModifier", "ModifierName": "SubControllerModifier" } ] }, "PrepareModifier2": { "Duration": -1, "ModifierStacking": "Replace", "OnAdded": [ { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": "%AS_RecoverHP_Amount2", "ParamName": "AS_RecoverHP_Amount" }, { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": "%AS_RecoverHP_Percentage2", "ParamName": "AS_RecoverHP_Percentage" }, { "$type": "ApplyModifier", "ModifierName": "SubControllerModifier" } ] }, "PrepareModifier3": { "Duration": -1, "ModifierStacking": "Replace", "OnAdded": [ { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": "%AS_RecoverHP_Amount3", "ParamName": "AS_RecoverHP_Amount" }, { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": "%AS_RecoverHP_Percentage3", "ParamName": "AS_RecoverHP_Percentage" }, { "$type": "ApplyModifier", "ModifierName": "SubControllerModifier" } ] }, "RecoverHPModifier": { "Duration": -1, "ModifierStacking": "Multiple", "OnAdded": [ { "$type": "SkillStartAction", "StartedSkillName": "Bangboo_Eous001_Skill_HpItem_Bangkov" }, { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Add", "Param": 1, "ParamName": "TokenCount" }, { "$type": "RecoverHPAction", "Amount": "%AS_RecoverHP_Amount", "Percentage": "%AS_RecoverHP_Percentage", "Target": "Self" }, { "$type": "FireEffect", "EffectPattern": "Eff_Eous_Attack_Injection_01_01_Buff", "Target": "Self" }, { "$type": "RemoveModifier", "ModifierName": "RecoverHPModifier" } ], "OnRemoved": [ { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Add", "Param": -1, "ParamName": "TokenCount" } ] }, "SubControllerModifier": { "Duration": -1, "ModifierStacking": "Replace", "OnAdded": [ { "$type": "BranchOperator", "Conditions": [ { "$type": "ByAbilitySpecial", "CompareType": "Equal", "Param": 1, "ParamName": "AS_IsNewItem" } ], "FailureActions": [ { "$type": "ApplyModifier", "ModifierName": "RecoverHPModifier", "Predicates": [ { "$type": "ByAbilitySpecial", "CompareType": "Equal", "Param": 0, "ParamName": "TokenCount" } ] } ], "SuccessActions": [ { "$type": "ApplyModifier", "ModifierName": "RecoverHPModifier" } ] } ] } }, "OnAbilityTrigger": [ { "$type": "BranchOperator", "Conditions": [ { "$type": "ByAbilitySpecial", "CompareType": "Equal", "Param": 1, "ParamName": "AS_IsActive" } ], "FailureActions": [ { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": 1, "ParamName": "AS_IsActive" }, { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": 1, "ParamName": "AS_IsNewItem", "Predicates": [ { "$type": "ByOr", "Predicates": [ { "$type": "ByAbilitySpecial", "CompareType": "NotEqual", "Param": "%Hub_AS_RecoverHP_Amount", "ParamName": "AS_RecoverHP_Amount" }, { "$type": "ByAbilitySpecial", "CompareType": "NotEqual", "Param": "%Hub_AS_RecoverHP_Percentage", "ParamName": "AS_RecoverHP_Percentage" } ] } ] }, { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": "%Hub_AS_RecoverHP_Amount", "ParamName": "AS_RecoverHP_Amount" }, { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": "%Hub_AS_RecoverHP_Percentage", "ParamName": "AS_RecoverHP_Percentage" }, { "$type": "ApplyModifier", "ModifierName": "EventReceiveModifier" } ], "SuccessActions": [ { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": 0, "ParamName": "AS_IsActive" }, { "$type": "RemoveModifier", "ModifierName": "EventReceiveModifier" } ] } ] }