Phylactery Lich [Attempt]

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.

Phylactery Lich [Attempt]

Postby OverlordZetta » Thu Jul 26, 2012 6:14 am

I came across this thought and though that it was probably something that could be coded for Wagic, so I gave it a swing.

[card]
name=Phylactery Lich
abilities=indestructible
target=artifact|mybattlefield
auto=counter(0/0,1,Phylactery)
auto=aslongas(counter{0/0,1,Phylactery}|myBattlefield) all(this) sacrifice while <0
text=As Phylactery Lich enters the battlefield, put a Phylactery counter on an artifact you control. -- Phylactery Lich is indestructible. -- When you control no permanents with phylactery counters on them, sacrifice Phylactery Lich.
mana={B}{B}{B}
type=Creature
subtype=Zombie
power=5
toughness=5
[/card]
This coding works to an extent- you need to choose a target as you cast it, but the lich comes into play and works fine. Unfortunately, I just discovered a minute ago that this ties the creature to a specific counter- so if you play 2, each targeting different artifacts, and then sacrifice 1 artifact, 1 lich dies, which shouldn't happen. I can't seem to pinpoint why. The sacrifice code is really odd, but it seems to work perfectly with just one lich.

The version below is more faithful to the card, but it doesn't work- it adds the counter but sacrifices the creature before you get to choose where it goes. Help would be appreciated.
[card]
name=Phylactery Lich
abilities=indestructible
auto=counter(0/0,1,Phylactery) target(artifact|mybattlefield)
auto=aslongas(counter{0/0,1,Phylactery}|myBattlefield) all(this) sacrifice while <1
text=As Phylactery Lich enters the battlefield, put a Phylactery counter on an artifact you control. -- Phylactery Lich is indestructible. -- When you control no permanents with phylactery counters on them, sacrifice Phylactery Lich.
mana={B}{B}{B}
type=Creature
subtype=Zombie
power=5
toughness=5
[/card]
OverlordZetta
 
Posts: 15
Joined: Sat Jan 14, 2012 3:06 am

Re: Phylactery Lich [Attempt]

Postby Zethfox » Thu Jul 26, 2012 11:27 am

[card]
name=Phylactery Lich
abilities=indestructible
auto=target(artifact|mybattlefield) counter(0/0,1,Phylactery)
auto=aslongas(*[-counter{0/0.1.Phylactery}]|myBattlefield) all(this) sacrifice while <0
text=As Phylactery Lich enters the battlefield, put a Phylactery counter on an artifact you control. -- Phylactery Lich is indestructible. -- When you control no permanents with phylactery counters on them, sacrifice Phylactery Lich.
mana={B}{B}{B}
type=Creature
subtype=Zombie
power=5
toughness=5
[/card]

try this.
Zethfox
 
Posts: 2784
Joined: Thu Jun 10, 2010 11:28 pm

Re: Phylactery Lich [Attempt]

Postby OverlordZetta » Thu Aug 02, 2012 11:15 pm

I tested that, and it worked the same as another attempt I tested: the Lich doesn't die when the counter is gone from the battlefield. Oh well, it was just an attempt at a new card.
OverlordZetta
 
Posts: 15
Joined: Sat Jan 14, 2012 3:06 am

Advertising


Return to Card Coding

Who is online

Users browsing this forum: No registered users and 1 guest