X costs?

Multikicker seems to work alright... we could probably use the same code for X costs. What do you guys think?
High Quality Resources for Collectible Card Games
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=52&t=2312
`DennisBergkamp wrote:Multikicker seems to work alright...
else //computer
{
while(ComputerUtil.canPayCost(ability)) ComputerUtil.playNoStack(ability);
push(sa);
}
Blaze
X R
Sorcery
no text
spDamageTgtCP:X:Blaze deals X damage to target creature or player.
SVar:X:Count$xPaid