Variable Solutions

Sorcery

Alchemy: Secrets of Strixhaven (YSOS) · rare

Oracle Text

If X is 1, seek a basic land card and put it onto the battlefield tapped.
If X is 2, each opponent sacrifices an artifact of their choice.
If X is 3, conjure a random creature card with mana value X onto the battlefield.
If X is 4 or more, you gain 2 life. Then do all of the above.