Page 48 of 85

Re: Card Contributions

PostPosted: 25 Jan 2012, 11:31
by moomarc
I've added Kalitas, Bloodchief of Ghet and Kaervek's Purge. To do it I had to add RememberDestroyed to AbilityFactoryDestroy (it was previously only available to DestroyAll). I checked AbilityFactorySacrifice for the differences in method between the regular and 'All' variants, and it works in all my testing but I'd appreciate one of you guys checking it out.

Edit: Only issue I had (and might be a non-issue) was if you use Snapcaster Mage to flash Kaervek's Purge. I'm not too sure what the correct interaction is seeing as the X in its casting cost is dependant on the target. Currently nothing happens. This is just a general rules thing though and nothing to do with my additions.

Re: Card Contributions

PostPosted: 25 Jan 2012, 12:59
by Iran
moomarc wrote:I've added Kalitas, Bloodchief of Ghet and Kaervek's Purge. To do it I had to add RememberDestroyed to AbilityFactoryDestroy (it was previously only available to DestroyAll). I checked AbilityFactorySacrifice for the differences in method between the regular and 'All' variants, and it works in all my testing but I'd appreciate one of you guys checking it out.

Edit: Only issue I had (and might be a non-issue) was if you use Snapcaster Mage to flash Kaervek's Purge. I'm not too sure what the correct interaction is seeing as the X in its casting cost is dependant on the target. Currently nothing happens. This is just a general rules thing though and nothing to do with my additions.
Text I found in internet (I don't known with its help) =>

havaok wrote:Originally Posted by havaok View Post
It was my understanding that if a card had in its mana cost, when you use snapcaster mage on it, X = 0. Can anyone clarify this?
Your understanding is incorrect. There are indeed situations, where the only legal choice for X is 0:

107.3b. If a player is casting a spell that has an {X} in its mana cost, the value of X isn't defined by the text of that spell, and an effect lets that player cast that spell while paying neither its mana cost nor an alternative cost that includes X, then the only legal choice for X is 0. This doesn't apply to effects that only reduce a cost, even if they reduce it to zero. See rule 601, "Casting Spells."

The bolded part is the important bit here. The flashback cost is an alternative cost, and it does by definition include X, so 0 is not the only legal choice for X.

reference:
http://forums.mtgsalvation.com/showthread.php?t=360199

Re: Card Contributions

PostPosted: 25 Jan 2012, 14:02
by moomarc
I just tested a few more cards and seems that Snapcaster Mage has this problem with all X-cost cards it tries to flash (whether targeted or defined).

Re: Card Contributions

PostPosted: 25 Jan 2012, 19:26
by squee1968
Worthy Cause

Code: Select all
Name:Worthy Cause
ManaCost:W
Types:Instant
Text:no text
SVar:Buyback:2
A:AB$ GainLife | Cost$ W Sac<1/Creature> | LifeAmount$ X | SpellDescription$ You gain life equal to the sacrificed creature's toughness.
SVar:X:Sacrificed$CardToughness
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/worthy_cause.jpg
SetInfo:TMP|Uncommon|http://magiccards.info/scans/tp/en/265.jpg
Oracle:Buyback {2} (You may pay an additional {2} as you cast this spell. If you do, put this card into your hand as it resolves.)\nAs an additional cost to cast Worthy Cause, sacrifice a creature.\nYou gain life equal to the sacrificed creature’s toughness.
End

Re: Card Contributions

PostPosted: 25 Jan 2012, 19:42
by moomarc
squee1968 wrote:Worthy Cause

Code: Select all
Name:Worthy Cause
ManaCost:W
Types:Instant
Text:no text
SVar:Buyback:2
A:AB$ GainLife | Cost$ W Sac<1/Creature> | LifeAmount$ X | SpellDescription$ You gain life equal to the sacrificed creature's toughness.
SVar:X:Sacrificed$CardToughness
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/worthy_cause.jpg
SetInfo:TMP|Uncommon|http://magiccards.info/scans/tp/en/265.jpg
Oracle:Buyback {2} (You may pay an additional {2} as you cast this spell. If you do, put this card into your hand as it resolves.)\nAs an additional cost to cast Worthy Cause, sacrifice a creature.\nYou gain life equal to the sacrificed creature’s toughness.
End
Wow. A lot has changed since I got into the scripting not so long ago. I remember trying this card but couldn't be done yet. The script looks fine though except that it should be A:SP not A:AB (spell instead of activated ability). If no-one else has added it yet when I get to my pc tomorrow I'll test further and commit. Thanks.

Re: Card Contributions

PostPosted: 25 Jan 2012, 20:18
by jeffwadsworth
moomarc wrote:
squee1968 wrote:Worthy Cause

Code: Select all
Name:Worthy Cause
ManaCost:W
Types:Instant
Text:no text
SVar:Buyback:2
A:AB$ GainLife | Cost$ W Sac<1/Creature> | LifeAmount$ X | SpellDescription$ You gain life equal to the sacrificed creature's toughness.
SVar:X:Sacrificed$CardToughness
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/worthy_cause.jpg
SetInfo:TMP|Uncommon|http://magiccards.info/scans/tp/en/265.jpg
Oracle:Buyback {2} (You may pay an additional {2} as you cast this spell. If you do, put this card into your hand as it resolves.)\nAs an additional cost to cast Worthy Cause, sacrifice a creature.\nYou gain life equal to the sacrificed creature’s toughness.
End
Wow. A lot has changed since I got into the scripting not so long ago. I remember trying this card but couldn't be done yet. The script looks fine though except that it should be A:SP not A:AB (spell instead of activated ability). If no-one else has added it yet when I get to my pc tomorrow I'll test further and commit. Thanks.
Forge is lucky. It has insanely talented and dedicated java-wizards.

Re: Card Contributions

PostPosted: 26 Jan 2012, 06:32
by jeffwadsworth
I was looking through some of the python generated card lists that moomarc sent my way. (Thanks).
There seems to be quite a few garbage "cards" in there. What the heck is "I Delight in Your Convulsions" in set_arc?? Or even better, "I Bask in Your Silent Awe". No wonder we have 2000+ left.

Re: Card Contributions

PostPosted: 26 Jan 2012, 07:13
by moomarc
Just tested Worthy Cause and was reminded of the other reason this didn't work before. Buyback as a keyword doesn't support additional costs. Should have remembered this before.

Re: Card Contributions

PostPosted: 26 Jan 2012, 07:23
by Hellfish
jeffwadsworth wrote:I was looking through some of the python generated card lists that moomarc sent my way. (Thanks).
There seems to be quite a few garbage "cards" in there. What the heck is "I Delight in Your Convulsions" in set_arc?? Or even better, "I Bask in Your Silent Awe". No wonder we have 2000+ left.
Those are Archenemy schemes. Just another gamemode to support :)

Re: Card Contributions

PostPosted: 26 Jan 2012, 07:26
by moomarc
jeffwadsworth wrote:I was looking through some of the python generated card lists that moomarc sent my way. (Thanks).
There seems to be quite a few garbage "cards" in there. What the heck is "I Delight in Your Convulsions" in set_arc?? Or even better, "I Bask in Your Silent Awe". No wonder we have 2000+ left.
that list is exhaustive and contains the official casual formats like Planechase, Archenemy and Vanguard as well as the different box sets.

The specific cards you mentioned are Archenemy schemes and are used by the player designated as the archenemy to level the playing field (seeing as its multiplayer 1-vs-many). Similarly VAN has the Vanguard format avatars and HOP contains the plane cards used in planechase formats.

Oneday Forge will hopefully support some of them.

EDIT: we could probably implement a localised single player Archenemy for Forge where the AI is always the archenemy, because it could do with some of those schemes to help level the playing field.

Re: Card Contributions

PostPosted: 26 Jan 2012, 08:12
by jeffwadsworth
Ahh. I got in around Fallen Empires and out at Alliances. Missed all that newer stuff. Thanks for the explanation.

Re: Card Contributions

PostPosted: 26 Jan 2012, 14:16
by Sloth
moomarc wrote:Edit: Only issue I had (and might be a non-issue) was if you use Snapcaster Mage to flash Kaervek's Purge. I'm not too sure what the correct interaction is seeing as the X in its casting cost is dependant on the target. Currently nothing happens. This is just a general rules thing though and nothing to do with my additions.
moomarc wrote:I just tested a few more cards and seems that Snapcaster Mage has this problem with all X-cost cards it tries to flash (whether targeted or defined).
Can you clarify this? What problem are you speaking of?

When i give Kaervek's Purge flashback with Snapcaster Mage its flashback cost is {X} {B} {R} and when i target a creature with cmc 5 i have to pay {5} {B} {R}.

Re: Card Contributions

PostPosted: 26 Jan 2012, 16:14
by moomarc
It wasn't working that way for me. It seemed as though X was always equal to 0. It also wasn't letting me target anything with it so maybe something was corrupt in my local rep. But even untargeted X-cost card like (actually I can't remember offhand which card it was I tested but it was a You gain X life from one of the Portal expansions) weren't giving me an option to pay X. I'll test again tomorrow.

Re: Card Contributions

PostPosted: 27 Jan 2012, 07:50
by moomarc
Arg... Seems I had just slept far too little. Its working fine now. I think I was probably expecting the card selected with SM's to be cast directly after the selection prompt instead of it gaining flashback until EOT. Apologies for wasting your time.

Re: Card Contributions

PostPosted: 29 Jan 2012, 18:54
by ArsenalNut
Looking at Demonmail Huaberk. Since eqPump doesn't support non mana cost, are there any problems implementing like this instead?
Demonmail Hauberk | Open
Name:Demonmail Hauberk
ManaCost:4
Types:Artifact Equipment
Text:no text
A:AB$ Attach | Cost$ Sac<1/Creature> | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select targe creature you control | SorcerySpeed$ True | PrecostDesc$ Equip - | SpellDescription$ Attach CARDNAME to target creature you control.
S:Mode$ Continuous | Affected$ Card.EquippedBy | AddPower$ 4 | AddToughness$ 2 | Description$ Equipped creature gets +4/+2.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/demonmail_hauberk.jpg
End