Discard alternate cost for creatures?

For all your questions regarding Image Card Coding.
Please read the Image Posting Guideline & Index before posting in this forum.
Forum rules
DO NOT POST BUG REPORT IN THIS FORUM !!

Please read carefully the forum rules related to the card coding section : viewtopic.php?f=21&t=1545

All post will be edited to follow forum rules.
Locked
mrfatbard
Posts: 198
Joined: Fri Jul 10, 2015 6:14 pm

Discard alternate cost for creatures?

Post by mrfatbard »

I am trying to create a card that has an alternate cost to discard it from your hand, so far I have thought of two things, but neither of them work. the first just plays it onto the field and the second seems to work properly, but then when you cast it from the grave it dies again... :roll:

Image

Code: Select all

[card]
name=Dsich Collossus
abilities=indestructible, trample
other={2}{B},discard:this
auto=protection from(white)
type=Creature
subtype=Dsich Giant
text=indestructible, trample, protection from white -- {2}{B}: discard Dsich Collossus from your hand
mana={5}{U}{B}
power=10
toughness=10
[/card]

Code: Select all

[card]
name=Dsich Collossus
abilities=indestructible, trample
other={2}{B}
auto=if paid(alternative) then this -10/-10 ueot
auto=protection from(white)
type=Creature
subtype=Dsich Giant
text=indestructible, trample, protection from white -- {2}{B}: discard Dsich Collossus from your hand
mana={5}{U}{B}
power=10
toughness=10
[/card]
Tacoghandi
Posts: 1197
Joined: Thu Apr 28, 2011 11:34 pm

Re: Discard alternate cost for creatures?

Post by Tacoghandi »

What you want is the ability to discard the card from your hand. This means that the ability needs to be usable in hand. This requires an autohand= line. Looks like the way you have it worded is that it is discarded as a resolution of the ability.

Code: Select all

autohand={2}{B}:choice name(Discard Dsich Collossus) reject all(this|myhand)
Try this code instead of other and if paid(alternative). I believe it should work. Also make sure to test it with more than one Colossus in your hand. And Colossus is spelled with one "l" in case that matters to you.
!!Check out My Created Sets and other Stuff!!

viewtopic.php?f=22&t=3380
Locked