[CODE] Counter Improvements (Now Included in SVN)

All additions requested or suggested to improve the card coding language.

Re: Counter Improvements

Postby salmelo » Wed Mar 24, 2010 3:56 pm

i just copied your code and edited the one line like i said above:

[card]
name=Aven Riftwatcher
abilities=flying
auto=counter(0/0,3,Time)
auto=life:2
auto=@movedTo(this|exile,graveyard,hand,library) from(myBattlefield):life:2
auto=@each my upkeep:counter(0/0,-1,Time)
auto=lord(aven riftwatcher[-counter{0/0.1.Time}]|myBattlefield) -99/-99
text=Flying -- Vanishing 3 (This permanent enters the battlefield with three time counters on it. At the beginning of your upkeep, remove a time counter from it. When the last is removed, sacrifice it.) -- When Aven Riftwatcher enters the battlefield or leaves the battlefield, you gain 2 life.
mana={2}{W}
type=Creature
subtype=Bird rebel Soldier
power=2
toughness=3
[/card]
salmelo
 
Posts: 47
Joined: Thu Mar 11, 2010 4:11 pm

Re: Counter Improvements

Postby Dr.Solomat » Wed Mar 24, 2010 3:59 pm

sorry if i am getting on your nerves:

Aven Riftwatchers with 2 or 3 fade counters don't get killed by this auto line (because they fulfill the conditions to be killed...)???
Sets Coded/Released: Legends, Visions, Weatherlight, Tempest, Stronghold, Portal I & III, Urza's Saga BLOCK, Mercadian Masques, Invasion BLOCK, Mirrodin, Ravnica, Guildpact, Conflux, Alara Reborn
Dr.Solomat
 
Posts: 975
Joined: Mon Dec 15, 2008 5:12 pm
Location: Germany

Re: Counter Improvements

Postby salmelo » Wed Mar 24, 2010 4:04 pm

Dr.Solomat wrote:sorry if i am getting on your nerves:

Aven Riftwatchers with 2 or 3 fade counters don't get killed by this auto line (because they fulfill the conditions to be killed...)???


I'm not entirely sure I know what you mean here, but currenty the auto=lord will only kill aven riftwatchers that have no (0) time counters on them. So if it has any counters on it at all it will not die from that effect.

Hopefully this answers your question.
salmelo
 
Posts: 47
Joined: Thu Mar 11, 2010 4:11 pm

Re: Counter Improvements

Postby Dr.Solomat » Wed Mar 24, 2010 4:24 pm

If one reads this code line: aven riftwatcher[-counter{0/0.1.Time}] and has to formulate it into a normal sentence it would mean:

All Aven Riftwatchers with no time counters or with time counters >2. Excluded are those with just 1 time counter on it... . and this is what the line shouldn't do, just for the case that "-" means what a "-" means normally. ;)
Sets Coded/Released: Legends, Visions, Weatherlight, Tempest, Stronghold, Portal I & III, Urza's Saga BLOCK, Mercadian Masques, Invasion BLOCK, Mirrodin, Ravnica, Guildpact, Conflux, Alara Reborn
Dr.Solomat
 
Posts: 975
Joined: Mon Dec 15, 2008 5:12 pm
Location: Germany

Re: Counter Improvements

Postby salmelo » Wed Mar 24, 2010 5:32 pm

i think i see what your saying now. Let me see if I can explain things a little better now.

Normally counter{0/0.1.Time} in the target code means "cards with at least 1 time counter" or "time counters >= 1" a minus "-" in target code generally means "Not" in a boolean sense. So "NOT Time counters >= 1" is the same as "Time counters < 1" since we can't have negative counters on a card, to my knowledge, that means it will only trigger on things with 0 time counters.

Hopefully this makes sense.
salmelo
 
Posts: 47
Joined: Thu Mar 11, 2010 4:11 pm

Re: Counter Improvements

Postby Dr.Solomat » Wed Mar 24, 2010 6:05 pm

Okay, makes sense.

Can you write wololo a private message that you have another update? I can only test the new cards when the update is added to the svn... . ;)
Sets Coded/Released: Legends, Visions, Weatherlight, Tempest, Stronghold, Portal I & III, Urza's Saga BLOCK, Mercadian Masques, Invasion BLOCK, Mirrodin, Ravnica, Guildpact, Conflux, Alara Reborn
Dr.Solomat
 
Posts: 975
Joined: Mon Dec 15, 2008 5:12 pm
Location: Germany

Re: Counter Improvements

Postby salmelo » Wed Mar 24, 2010 6:11 pm

I could do that, although it seems like you should be able to apply the patch to your working copy well enough.

If your using tortoise svn after extracting the patch file you can right click it and hit "apply patch" then browse to where you keep your local copy of the svn, it should apply all the changes, then if you want to revert back to the normal svn you can right click on the folder and hit revert.

Of course, I don't know what your using, and if its not tortoise than i don't know whether or how you can apply the patch locally.
salmelo
 
Posts: 47
Joined: Thu Mar 11, 2010 4:11 pm

Re: Counter Improvements

Postby Dr.Solomat » Wed Mar 24, 2010 6:13 pm

i use tortoise....i will try it out...

EDIT: Can i load it up to the svn after I patched my local version??
Sets Coded/Released: Legends, Visions, Weatherlight, Tempest, Stronghold, Portal I & III, Urza's Saga BLOCK, Mercadian Masques, Invasion BLOCK, Mirrodin, Ravnica, Guildpact, Conflux, Alara Reborn
Dr.Solomat
 
Posts: 975
Joined: Mon Dec 15, 2008 5:12 pm
Location: Germany

Re: Counter Improvements

Postby salmelo » Wed Mar 24, 2010 6:17 pm

I imagine you could, if you have write access to the svn. I do not know exactly how though.
salmelo
 
Posts: 47
Joined: Thu Mar 11, 2010 4:11 pm

Re: Counter Improvements

Postby Dimoutzi » Wed Mar 24, 2010 6:32 pm

Glad to see Wagic supports counters now. That's going to be useful with the new expansion set.

Image
Dimoutzi
 
Posts: 10
Joined: Mon Feb 15, 2010 3:06 pm

Advertising

PreviousNext

Return to Card Coding & Parser

Who is online

Users browsing this forum: No registered users and 1 guest