The value of X is determined at the time you announce this spell, and you choose the targets and the division of damage among those targets as part of the announcement as well.

Artwork
Loading artwork…
Volcanic Wind
Mercadian Masques · #223 · EN
Nonfoil—Foil—
Card rules
Volcanic Wind deals X damage divided as you choose among any number of target creatures, where X is the number of creatures on the battlefield as you cast this spell.
The Cho-Arrim call it "the fury of Ramos."
Uncommon · Illustrated by Rebecca Guay
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
PreDH Legal
Premodern Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If there are no creatures on the battlefield when you cast this, you do not pick any targets and it deals no damage.