Smallpox & taxes cards (working with tokens)

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.
Post Reply
dber
Posts: 68
Joined: Sun Jan 08, 2012 4:28 am

Smallpox & taxes cards (working with tokens)

Post 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]
sandman423
Posts: 739
Joined: Thu Sep 10, 2009 8:59 pm

Re: Smallpox & taxes cards (working with tokens)

Post 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?
dber
Posts: 68
Joined: Sun Jan 08, 2012 4:28 am

Re: Smallpox & taxes cards (working with tokens)

Post 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
Post Reply