Page 1 of 1

Smallpox & taxes cards (working with tokens)

Posted: Thu Oct 11, 2012 5:51 pm
by dber
Necessary tokens to force player to sacrifice creature or sacrifice land

Code: Select all

[card]
name=ForceSacrificeCreature
id=-111989898
auto=@movedto(this|nonbattlezone):moveto(mygraveyard) target(creature|mybattlefield) notatarget(enchantment,artifact,creature,land,planeswalker|mybattlefield)
type=nothing
auto=moveto(exile) all(this)
[/card]
[card]
name=ForceSacrificeLand
id=-111989899
auto=@movedto(this|nonbattlezone):moveto(mygraveyard) target(land|mybattlefield) notatarget(enchantment,artifact,creature,land,planeswalker|mybattlefield)
type=nothing
auto=moveto(exile) all(this)
[/card]
Innocent blood

Code: Select all

[card]
name=Innocent Blood
auto=token(-111989898)
auto=token(-111989898) opponent
text=Each player sacrifices a creature.
mana={B}
type=Sorcery
[/card]
Smallpox

Code: Select all

[card]
name=Smallpox
auto=life:-1
auto=life:-1 opponent
auto=choice name(Discard a card) target(*|myhand) reject
auto=ability$!name(Discard a card) target(*|myhand) reject!$ opponent
auto=token(-111989898)*1
auto=token(-111989898)*1 opponent
auto=token(-111989899)*1
auto=token(-111989899)*1 opponent
text=Each player loses 1 life, discards a card, sacrifices a creature, then sacrifices a land.
mana={B}{B}
type=Sorcery
[/card]
Death cloud

Code: Select all

[card]
name=Death Cloud
auto=life:-x
auto=life:-x opponent
auto=choice name(Discard a card) target(<prex>*|myhand) reject
auto=ability$!name(Discard a card) target(<prex>*|myhand) reject!$ opponent
auto=token(-111989898)*x
auto=token(-111989898)*x opponent
auto=token(-111989899)*x
auto=token(-111989899)*x opponent
text=Each player loses x life, then discards x cards, then sacrifices x creatures, then sacrifices x lands.
mana={x}{B}{B}{B}
type=Sorcery
[/card]

Re: Smallpox & taxes cards (working with tokens)

Posted: Thu Oct 11, 2012 7:58 pm
by sandman423
Awsome...So where do I add this code to test these out...I know the actual card codes go into primitives but what about this?

Code: Select all

[card]
name=ForceSacrificeCreature
id=-111989898
auto=@movedto(this|nonbattlezone):moveto(mygraveyard) target(creature|mybattlefield) notatarget(enchantment,artifact,creature,land,planeswalker|mybattlefield)
type=nothing
auto=moveto(exile) all(this)
[/card]
[card]
name=ForceSacrificeLand
id=-111989899
auto=@movedto(this|nonbattlezone):moveto(mygraveyard) target(land|mybattlefield) notatarget(enchantment,artifact,creature,land,planeswalker|mybattlefield)
type=nothing
auto=moveto(exile) all(this)
[/card]
It feels like it belongs in Primitives but where can I copy and paste this to test it out?? Do I add it after each card listed above?

Re: Smallpox & taxes cards (working with tokens)

Posted: Fri Oct 12, 2012 9:05 pm
by dber
sandman423 wrote:Awsome...So where do I add this code to test these out...I know the actual card codes go into primitives but what about this?

You dont need to modify mtg
You just need to add a new "filename.txt" and add all the codes

I've it as:
implementedcards.txt

and all the codes that i've made inside.

The game would read the files and will recognise the implementedcards authomatically. Same happens with the "Official Planeswalkers.txt" and the "Official Eldrazi.txt" that I suppose you have haha