Page 1 of 1

Tinkering with a custom card

PostPosted: 29 Jan 2012, 07:41
by randallross420
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.

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 based the ultimate off of nissa's ultimate, but i swapped out elves for lands entering the battlefield tapped, and tried to tack on a draw seven. not sure if i need a SubAbility$ in there for the draw seven. i noticed some cards that did multiple things had the SubAbility$ clause in there. looking at it, i'm also not sure about the first ability. does A:AB$ Animate automatically stop at the end of turn? the only cards i noticed that could permanently change a land type while overwriting original types were all enchantments.

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 :)

Re: Tinkering with a custom card

PostPosted: 29 Jan 2012, 09:00
by Hellfish
If your script is exactly as you posted there, the problem seems to be that the Ultimate root ability(moving lands) and it's subability(drawing seven) seems to have run together onto one line in the script, causing the subability's script code to become part of the root ability's card text.
SVar:DBDraw onward goes on it's own line.Also, the ultimate doesn't declare that it has a subability. Try out the changes below in bold :)
| Open
A:AB$ ChangeZone | Cost$ SubCounter<7/LOYALTY> | Origin$ Library | Destination$ Battlefield | ChangeType$ Land | ChangeNum$ XFetch | Planeswalker$ True | Ultimate$ True | SubAbility$ DBDraw | SpellDescription$ Search your library for any number of land cards and put them onto the battlefield tapped. Then shuffle your library.<newline here>SVar:DBDraw:DB$Draw | Defined$ You | NumCards$ 7 | SpellDescription$ Draw seven cards.

Re: Tinkering with a custom card

PostPosted: 30 Jan 2012, 00:39
by randallross420
many thanks. that did indeed work. but as i suspected the +2 ability only makes the land an island until end of turn. is there a different clause i should use instead of AB$ Animate?

Re: Tinkering with a custom card

PostPosted: 30 Jan 2012, 00:48
by friarsol
Have you seen the wiki? http://www.slightlymagic.net/wiki/Forge ... ry#Animate

Permanent (optional) - set to True if this effect lasts indefinitely

Re: Tinkering with a custom card

PostPosted: 30 Jan 2012, 02:25
by randallross420
no i havent seen the wiki, but thanks. i'll do some reading and expand my knowledge. big ups!

Re: Tinkering with a custom card

PostPosted: 30 Jan 2012, 02:43
by friarsol
randallross420 wrote:no i havent seen the wiki, but thanks. i'll do some reading and expand my knowledge. big ups!
If you are interested in scripting real cards head over to the Card Scripting Questions on the Dev Forum with your questions.