_cards.dat

Additional Ressources for WTH : new cards, card images & more

Re: _cards.dat

Postby wololo » Tue Nov 24, 2009 2:12 am

Agreed with psyringe. I used to know the effects of all cards when I was a kid, but at that time, only Alpha, Beta, and revised were out so there was like 500 cards...


dvdira wrote:1. Darksteel Colossus -- am I right in assuming I should use the "Beacon" Cards for the "shuffle into library" effect?

No, the beacon cards get shuffled into your library as soon as they are played, which is not what you want here.
You can try:
auto=@movedTo(this|graveyard): moveTo(mylibrary) && shuffle

Note that (if it works at all) this will only work when Darksteel colossus is put into graveyard from play. "auto=" lines only take effect when the card comes into play right now

2. Venser, Shaper Servant -- this is effectively just a "bounce" card, right?
3. Sower of Temptation -- can I use the "Confiscate" or "Control Magic" wording? Or the "Eternal Witness" wording with the target area as "battlefield".
7. Angel of Despair -- same as Sower, but with destroy effect?

We cannot code cards that have an effect on a target when they enter the battlefield right now, unless there is a "may" keyword in the ability


4. Psychatog and Wild Mongrel -- these are just "pump" effects right? Can I use the "Vampire Hounds" wording?

Psychatog: We have no easy way to target several cards at once right now, unless in some very rare and hardcoded cases (fireball comes to mind)
Wild Mongrel: there is no official way to change the color of a card through the parser, although you can give a try to the experimental "becomes" keyword


5. Thoughtseize and Duress -- ???

No way to have a player reveal their hand currently

6. Mana Leak, Force Spike, Spell Snare -- ???

No way to code "unless controller pays..." currently
No way to have the converted mana cost as a parameter for a target currently

8. Arcbound Ravager -- same as Nantuko Husk, but with permanent counters?

Modular is not implemented in Wagic yet

9. Goblin Piledriver and Goblin Ringleader --- ???

Goblin Piledriver: could probably be done, but I think we have no way to code "Whenever ... attacks" right now
Goblin ringleader: no way to reveal cards

10. Urza lands --- ???

Card names --- ???


11. Wildfire and Plow Under -- ??? Can I use the wording of "Fallow Earth" on this? How do I spread it to two lands?

No way to target more than one target
No way to ask an opponent to sacrifice stuff

12. Careful Study -- Combining card draw wording and discard?

No easy way to discard as an effect currently. We have discard as a cost, and discard random as an effect, but no "discard the cards you want" as an effect


13. Man-lands (Blinkmoth Nexus, Mutavault, Treetop Village) -- Can I just adjust the "Living Plane" wording?

try the experimental "Becomes" keyword

14. RAV Dual lands (Stomping Ground, Overgrown Tomb, Breeding Pool, etc...) -- Can I use the wordings on "Tropical Island, Taiga, Savannah, etc..."

I think these could be coded. Abrasax came with a pretty clever workaround for that kind of land (he implemented it in the starwars mod). By replacing the wording to: ... enters the battelfield tapped. When ... enters the battelfield, you may pay 2 life. If you do, untap ..."
auto=tap
auto=may untap && life:-2


Note that when a set is included in Wagic's official release, if a card of this set is not included in the release, there's usually a good reason. We forget some cards of course, but there are so many eyes on these sets that we actually tend to add more cards that shouldn't be here rather than the other way around (forgetting some cards). In other words, don't try too hard to work on sets of the official Wagic release, they're pretty much taken care of...
wololo
Site Admin
 
Posts: 3709
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: _cards.dat

Postby Psyringe » Mon Dec 07, 2009 10:20 pm

I have a question about the new ">" and "<" functionality for aslongas() and foreach().

I tried to code Skullcage (5DN): At the beginning of each opponent's upkeep, Skullcage deals 2 damage to that player unless he or she has exactly three or exactly four cards in hand.

This is basically a combines The Rack/Black Vise except that the effect is fixed at damage:2 (instead of a variable amount depending on the number of cards in the opponent's hand).

I started by taking this line from the new "Black Vise" softcode:

auto=@each opponent upkeep:foreach(*|opponenthand) damage:1 opponent >4

and adjusting it like this:

auto=@each opponent upkeep:aslongas(*|opponenthand) damage:2 opponent >4

My assumption was that would cause 2 damage if there were more than 4 cards in the opponent's hand. However, this code turned out to cause 2 damage for every card after the 4th. There was no difference between using "aslongas" or "foreach", both had the same effect.

This puzzled me, because another example you gave (Krosan Beast) uses aslongas and applies the effect only once:

auto=aslongas(*|mygraveyard) 7/7 >6

I had assumed that "aslongas(getN) effect >criterion" would apply the effect once (if N is greater than the criterion), and that "foreach(getN) effect >criterion" would apply the effect N - criterion times. However, this doesn't seem to be the case.

Further investigation revealed that the effect is applied once if it is a "pump" effect (e.g. 7/7), and N - criterion times if it is a "life" or "damage" effect. This raises the following questions:

1. Is this analysis correct (I haven't tested all eventualities)?
2. Is this intended behavior, or a known limitation, or a bug?
3. What is the best way to apply a damage effect only once if a threshold has been surpassed? I suppose I could code it this way ...:

auto=@each opponent upkeep:foreach(*|opponenthand) life:2 opponent >5
auto=@each opponent upkeep:foreach(*|opponenthand) damage:2 opponent >4

... but that looks pretty inefficient (and will also cause problems if we implement triggers which trigger at life gain later on). Any suggestions?
Psyringe
 
Posts: 1163
Joined: Mon Aug 31, 2009 10:53 am

Re: _cards.dat

Postby wololo » Mon Dec 07, 2009 11:32 pm

Psyringe wrote:1. Is this analysis correct (I haven't tested all eventualities)?

I usually trust your tests more than mine

2. Is this intended behavior, or a known limitation, or a bug?

That would be a bug. I expect aslongas to work the way you initially supposed it would work

3. What is the best way to apply a damage effect only once if a threshold has been surpassed? I suppose I could code it this way ...:

The way you wrote it.

Do submit a bug, that would be great. You might want to add the card to _cards.dat as well. This is the way the code should work and (hopefully) the fix will be simple enough...
wololo
Site Admin
 
Posts: 3709
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: _cards.dat

Postby Psyringe » Tue Dec 08, 2009 1:08 pm

wololo wrote:Do submit a bug, that would be great. You might want to add the card to _cards.dat as well. This is the way the code should work and (hopefully) the fix will be simple enough...

Done - see issue 239. I wasn't able to do thorough testing due to my testing environment suddenly behaving strangely, but will do so once I got that sorted out.
Psyringe
 
Posts: 1163
Joined: Mon Aug 31, 2009 10:53 am

Re: _cards.dat

Postby lawrenzium » Tue Dec 29, 2009 4:35 am

i need help, i don't have any idea how to make march of the machine...
lawrenzium
 
Posts: 2
Joined: Tue Dec 29, 2009 4:22 am

Re: _cards.dat

Postby wololo » Tue Dec 29, 2009 4:58 am

For those who would like to help but don't know the 10'000 cards of MTG by heart:
Image
I think something could be done with lord and becomes...
wololo
Site Admin
 
Posts: 3709
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: _cards.dat

Postby Thedark » Tue Dec 29, 2009 12:38 pm

Wololo,What do you say about cards as necropotence, Yawgmoth's Bargain, vampiric tutor?
Thedark
 
Posts: 58
Joined: Sun Aug 16, 2009 7:52 am

Re: _cards.dat

Postby lawrenzium » Sun Jan 03, 2010 11:29 am

how to make the power and toughness equal to their mana cost?
lawrenzium
 
Posts: 2
Joined: Tue Dec 29, 2009 4:22 am

Re: _cards.dat

Postby Psyringe » Sun Jan 03, 2010 12:29 pm

lawrenzium wrote:how to make the power and toughness equal to their mana cost?

Not possible currently. You *can* reference a card's manacost in this situation (see Parsed Integers), but you can only add to (or subtract from) its power or toughness, not set it to given level.
Psyringe
 
Posts: 1163
Joined: Mon Aug 31, 2009 10:53 am

Re: _cards.dat

Postby TYRANOS » Fri Feb 05, 2010 5:13 pm

Hello, i´m a newbie and i´ve searched many magic cards that i can text program but i have a answer of this :

[cost:][-]ability [target] If i put - before an abbility that actually have this creature, he lost this ability??

Sorry for my english people.
TYRANOS
 
Posts: 3
Joined: Mon Feb 01, 2010 7:01 pm

Advertising

PreviousNext

Return to Custom Cards & Images

Who is online

Users browsing this forum: No registered users and 2 guests