Page 1 of 1

New Here, Love Magic, Do Not Know Java...

PostPosted: 31 Oct 2010, 22:17
by RedSypher
So, I've been fiddling around with the .txt files for some of the cards, and i have made 2 successes (cards that work like the real card) and a few almosts.
Here are (what I think) are my successes:
Code: Select all
Name:Tireless Tribe
ManaCost:W
Types:Creature Human Nomad
Text:no text
PT:1/1
K:abPump Discard<1/Any>:+0/+4
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/tireless_tribe.jpg
End
Code: Select all
Name:Breakthrough
ManaCost:X U
Types:Sorcery
Text:Draw four cards, then choose and discard all but X cards in your hand
K:spDrawCards:4:Drawback$YouDiscard:X:Draw 4 cards.:Breakthrough - Draw four cards, then choose and discard all but X cards in your hand.
SVar:X:Count$CardsInYourHand/Minus.Count$xPaid
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/breakthrough.jpg
End
Code: Select all
Name:Stinkweed Imp
ManaCost:2 B
Types:Creature Imp
Text:no text
PT:1/2
K:Flying
K:Deathtouch
K:Dredge 5
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/stinkweed_imp.jpg
End
And here Are the cards I just cannot get to work, mostly due to little things:

Cannot get it to put it on top of deck, right now it just sends it to the library...
Code: Select all
Name:Golgari Thug
ManaCost:1 B
Types:Creature Human Warrior
Text:no text
PT:1/1
K:WheneverKeyword:PermanentIntoGraveyard:Self:Graveyard:MoveFrom-Graveyard-Library:SearchShuffle_Type/Creature/Graveyard:ASAP:No_Condition:SearchType/Creature:When Golgari Thug is put into a graveyard from play, put target creature card in your graveyard on top of your library.
K:Dredge 4
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/Golgari_Thug.jpg
End
Have no idea how to get it to give a cost to exile cards in graveyards, right now its just set to Yes_No
Code: Select all
Name:Ichorid
ManaCost:3 B
Types:Creature Horror
Text:no text
PT:3/1
K:Haste
K:At the beginning of the end step, sacrifice CARDNAME.
K:WheneverKeyword:BeginningOfUpkeep:No_Initiator:Graveyard:MoveFrom-Graveyard-Play:Self:ASAP:Yes_No:ControllerUpkeep!No_Initiator:At the beginning of your upkeep, if Ichorid is in your graveyard, you may exile a black creature card other than Ichorid from your graveyard. If you do, return Ichorid to the battlefield.

SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/Ichorid.jpg
End
Both of these cards are fine (and pretty simple), though i have no idea how to make static or activated abilities only available under a condition (in this case Threshold).
Code: Select all
Name:Cephalid Coliseum
ManaCost:no cost
Types:Land
Text:no text
K:paintap:1:U
K:abDrawCards U T Sac<1/CARDNAME>:3:Drawback$YouDiscard/3:Draw three cards, then discard three cards.:Cephalid Coliseum - draw cards and discard cards
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/grand_coliseum.jpg
End
Code: Select all
Name:Putrid Imp
ManaCost:B
Types:Creature Zombie Imp
Text:no text
PT:1/1
K:abPump Discard<1/Any>:Flying
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/tireless_tribe.jpg
End
I have other questions, but those can be for later.

(PS, Forge rocks and is super fun)
(PPS I like Dredge if you could not tell)

Re: New Here, Love Magic, Do Not Know Java...

PostPosted: 01 Nov 2010, 02:20
by jeffwadsworth
For your last card issue, check this thread.
viewtopic.php?f=52&t=3370&p=44725&hilit=Threshold#p44725

Re: New Here, Love Magic, Do Not Know Java...

PostPosted: 01 Nov 2010, 03:04
by friarsol
Hah. Yep, the SA_Restriction should be able to do that "soon"-ish I've been tied up in some Infrastructure work the last few weeks, that stemmed from the Restriction work. For Putrid Imp it should be able to use one of the st keywords I think? Maybe Sloth can pop in and say which one. It may be stPumpSelf.

As for Stinkweed Imp, it doesn't quite have Deathtouch since it only cares about combat damage. Feel free to look at the API for some more information.

I'd say it'd be better to use the new AbilityFactory instead of using the older keywords, as they give a bit more flexibility in general.

So Tireless Tribe's ability
Code: Select all
K:abPump Discard<1/Any>:+0/+4
would look like this
Code: Select all
A:AB$Pump|Cost$Discard<1/Any>|NumDef$+4|SpellDescription$Tireless Tribe gets +0/+4 until end of turn.
it may be a bit more verbose, but will allow for much more flexibility, since it can include optional parameters like the above SA_Restriction.

Re: New Here, Love Magic, Do Not Know Java...

PostPosted: 01 Nov 2010, 14:42
by silly freak
I noticed that the SVar:Pictures for the last two are mixed up...

Re: New Here, Love Magic, Do Not Know Java...

PostPosted: 01 Nov 2010, 20:47
by RedSypher
oh, heh, sorry, that comes from what files I started with....

Re: New Here, Love Magic, Do Not Know Java...

PostPosted: 06 Nov 2010, 02:11
by RedSypher
Hey, quick question. Is there any way in ability factory to give a spell 2 drawbacks? Like lifegain and discard on a draw spell?

Re: New Here, Love Magic, Do Not Know Java...

PostPosted: 06 Nov 2010, 02:26
by friarsol
Not yet. What card are you talking about? We might be able to handle it in a different way though.

Re: New Here, Love Magic, Do Not Know Java...

PostPosted: 06 Nov 2010, 22:46
by RedSypher
Im talking about frantic search. it needs both a discard and untap lands drawback.