Tinkering with a custom card

good evening. i've been fooling with scripting a custom 4 ability planeswalker. i'm pretty sure the first three abilities are correct, but the ultimate is giving me problems. here is what i'm working with.
i would greatly appreciate any help you guys could offer. i am no programmer by any means, but i am trying my best to learn.
thanks in advance
- Code: Select all
Name:Kiora Atua
ManaCost:1 G U
Types:Planeswalker Kiora
Text:no text
Loyalty:2
A:AB$ Animate | Cost$ AddCounter<2/LOYALTY> | ValidTgts$ Land | TgtPrompt$ Select target land | Types$ Island | OverwriteTypes$ True | KeepSupertypes$ True | KeepCardTypes$ True | Planeswalker$ True | SpellDescription$ Target land becomes an Island. (This effect lasts indefinitely.)
A:AB$ Dig | Cost$ AddCounter<1/LOYALTY> | DigNum$ 1 | Reveal$ True | ChangeNum$ All | ChangeValid$ Land | DestinationZone$ Battlefield | DestinationZone2$ Hand | Planeswalker$ True | SpellDescription$ Reveal the top card of your library. If it's a land card, put it onto the battlefield. Otherwise, put that card into your hand.
A:AB$ ChangeZone | Cost$ 0 | Origin$ Library | Destination$ Battlefield | ChangeType$ Permanent.namedKiora's Sentry | ChangeNum$ 1 | Planeswalker$ True | SpellDescription$ Search your library for a card named Kiora's Sentry and put it onto the battlefield. Then shuffle your library.
A:AB$ ChangeZone | Cost$ SubCounter<7/LOYALTY> | Origin$ Library | Destination$ Battlefield | ChangeType$ Land | ChangeNum$ XFetch | Planeswalker$ True | Ultimate$ True | SpellDescription$ Search your library for any number of land cards and put them onto the battlefield tapped. Then shuffle your library.SVar:DBDraw:DB$Draw | Defined$ You | NumCards$ 7 | SpellDescription$ Draw seven cards.
SVar:XFetch:Count$TypeInYourLibrary.Land
SVar:RemRandomDeck:True
Oracle:[+2] Target land becomes an Island. (This effect lasts indefinitely.)\n[+1] Reveal the top card of your library. If it's a land card, put it onto the battlefield. Otherwise, put that card into your hand.\n[0] Search your library for a card named Kiora’s Sentry and put it onto the battlefield. Then shuffle your library.\n[-7] Search your library for any number of land cards, put them onto the battlefield tapped, then shuffle your library. Draw seven cards.
End
i would greatly appreciate any help you guys could offer. i am no programmer by any means, but i am trying my best to learn.
thanks in advance
