Name:Variable Solutions
ManaCost:X G
Types:Sorcery
A:SP$ GainLife | LifeAmount$ 2 | ConditionCheckSVar$ X | ConditionSVarCompare$ GE4 | SubAbility$ DBSeek | StackDescription$ None
SVar:DBSeek:DB$ Seek | Type$ Card.Land+Basic | SubAbility$ DBPut | RememberFound$ True | ConditionCheckSVar$ X | ConditionSVarCompare$ EQ1 | OrOtherConditionSVarCompare$ GE4 | StackDescription$ SpellDescription | SpellDescription$ If X is 1, seek a basic land card and put it onto the battlefield tapped.,,,,,,
SVar:DBPut:DB$ ChangeZone | Origin$ Hand | Destination$ Battlefield | Defined$ Remembered | Tapped$ True | ConditionCheckSVar$ X | ConditionSVarCompare$ EQ1 | OrOtherConditionSVarCompare$ GE4 | StackDescription$ None | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True | SubAbility$ DBSac
SVar:DBSac:DB$ Sacrifice | Defined$ Opponent | SacValid$ Artifact | Amount$ 1 | ConditionCheckSVar$ X | ConditionSVarCompare$ EQ2 | OrOtherConditionSVarCompare$ GE4 | SubAbility$ DBNameCard | StackDescription$ SpellDescription | SpellDescription$ If X is 2, each opponent sacrifices an artifact of their choice.,,,,,,
SVar:DBNameCard:DB$ NameCard | AtRandom$ True | ValidCards$ Creature.cmcEQX | SubAbility$ DBConjure | ConditionCheckSVar$ X | ConditionSVarCompare$ GE3 | StackDescription$ SpellDescription | SpellDescription$ 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.
SVar:DBConjure:DB$ MakeCard | Name$ ChosenName | Conjure$ True | Zone$ Battlefield | ConditionCheckSVar$ X | ConditionSVarCompare$ GE3 | SubAbility$ DBClearNamed
SVar:DBClearNamed:DB$ Cleanup | ClearNamedCard$ True
SVar:X:Count$xPaid
Oracle:If X is 1, seek a basic land card and put it onto the battlefield tapped.\nIf X is 2, each opponent sacrifices an artifact of their choice.\nIf X is 3, conjure a random creature card with mana value X onto the battlefield.\nIf X is 4 or more, you gain 2 life. Then do all of the above.
