$execute as @s[scores={svm_ep.level=$(cost)..},advancements={svm_ep:unlocked_ability/$(ability)=false}] run function svm_ep:menu/unlock/success {"ability":"$(ability)","cost":"$(cost)"}
#$function svm_ep:menu/unlock/success {"ability":"$(ability)","cost":"$(cost)"}
#$say $(ability)
#$say $(cost)