Name:Mojave Desert
ManaCost:no cost
Types:Plane Las Vegas
T:Mode$ PlaneswalkedTo | ValidCard$ Card.Self | Execute$ TrigSearchAll | TriggerDescription$ Whenever you planeswalk to CARDNAME, each player searches their library for up to two basic land or Desert cards and puts them onto the battlefield tapped, then shuffles their library. If a Desert entered the battlefield under a player's control this way, they create a 1/1 black Snake creature token with deathtouch.
SVar:TrigSearchAll:DB$ RepeatEach | RepeatPlayers$ Player | RepeatSubAbility$ DBSearchLand
SVar:DBSearchLand:DB$ ChangeZone | Origin$ Library | Destination$ Battlefield | Tapped$ True | ChangeType$ Land.Basic,Land.Desert | ChangeTypeDesc$ basic land or Desert | ChangeNum$ 2 | DefinedPlayer$ Player.IsRemembered | Chooser$ Player.IsRemembered | Imprint$ True | SubAbility$ DBSnakeCheck
SVar:DBSnakeCheck:DB$ Token | TokenScript$ b_1_1_snake_deathtouch | TokenOwner$ Player.IsRemembered | ConditionDefined$ Imprinted | ConditionPresent$ Land.Desert | ConditionCompare$ GE1 | SubAbility$ DBShuffleOne
SVar:DBShuffleOne:DB$ Shuffle | Defined$ Player.IsRemembered | SubAbility$ DBCleanupOne
SVar:DBCleanupOne:DB$ Cleanup | ClearImprinted$ True
T:Mode$ ChaosEnsues | TriggerZones$ Command | Execute$ TrigChaosRemember | TriggerDescription$ Whenever chaos ensues, create X 1/1 black Snake creature tokens with deathtouch, where X is 1 plus the number of nonbasic land types among lands you control.
SVar:TrigChaosRemember:DB$ Pump | RememberObjects$ Valid Land.YouCtrl | SubAbility$ DBChaosToken
SVar:DBChaosToken:DB$ Token | TokenAmount$ X | TokenScript$ b_1_1_snake_deathtouch | TokenOwner$ You | SubAbility$ DBCleanupChaos
SVar:X:SVar$XNonbasic/Plus.1
SVar:XNonbasic:SVar$XAllTypes/Minus.XBasicTypes
SVar:XAllTypes:Remembered$LandType
SVar:XBasicTypes:Count$Domain
SVar:DBCleanupChaos:DB$ Cleanup | ClearRemembered$ True
Oracle:Whenever you planeswalk to Mojave Desert, each player searches their library for up to two basic land or Desert cards and puts them onto the battlefield tapped, then shuffles their library. If a Desert entered the battlefield under a player's control this way, they create a 1/1 black Snake creature token with deathtouch.\nWhenever chaos ensues, create X 1/1 black Snake creature tokens with deathtouch, where X is 1 plus the number of nonbasic land types among lands you control.
