Tinkering with a custom card
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
6 posts
• Page 1 of 1
Tinkering with a custom card
by randallross420 » 29 Jan 2012, 07:41
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

- randallross420
- Posts: 49
- Joined: 24 Jun 2011, 00:46
- Location: new orleans, LA
- Has thanked: 23 times
- Been thanked: 1 time
Re: Tinkering with a custom card
by Hellfish » 29 Jan 2012, 09:00
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
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.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Tinkering with a custom card
by randallross420 » 30 Jan 2012, 00:39
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?
- randallross420
- Posts: 49
- Joined: 24 Jun 2011, 00:46
- Location: new orleans, LA
- Has thanked: 23 times
- Been thanked: 1 time
Re: Tinkering with a custom card
by friarsol » 30 Jan 2012, 00:48
Have you seen the wiki? http://www.slightlymagic.net/wiki/Forge ... ry#Animate
Permanent (optional) - set to True if this effect lasts indefinitely
Permanent (optional) - set to True if this effect lasts indefinitely
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Tinkering with a custom card
by randallross420 » 30 Jan 2012, 02:25
no i havent seen the wiki, but thanks. i'll do some reading and expand my knowledge. big ups!
- randallross420
- Posts: 49
- Joined: 24 Jun 2011, 00:46
- Location: new orleans, LA
- Has thanked: 23 times
- Been thanked: 1 time
Re: Tinkering with a custom card
by friarsol » 30 Jan 2012, 02:43
If you are interested in scripting real cards head over to the Card Scripting Questions on the Dev Forum with your questions.randallross420 wrote:no i havent seen the wiki, but thanks. i'll do some reading and expand my knowledge. big ups!
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 50 guests