I had already done so declaring a variable ''{effects.%player%::*}'' that contains all the active potions in the player, but i deleted by mistake and now it does not work anymore.
code_language.skript:
set {effects.%player%::*} to a all of active potion effects on player