It is currently 27 Aug 2025, 08:19
   
Text Size

Tinkering with a custom card

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Tinkering with a custom card

Postby 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.

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

Postby 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 :)
| 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
User avatar
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

Postby 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

Postby 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
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

Postby 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

Postby friarsol » 30 Jan 2012, 02:43

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.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 17 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 17 users online :: 0 registered, 0 hidden and 17 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 17 guests

Login Form