Order of Yawgmoth (Working - Borderline)

In this forum you will find all cards that COULD be added to the game but aren't because they don't work 100%.
Kalmana
Posts: 13
Joined: Thu Jun 03, 2010 12:19 am

Order of Yawgmoth (Working - Borderline)

Post by Kalmana » Mon Jun 21, 2010 5:29 am

I noticed that you guys didn't have a Order of Yawgmoth(http://sales.starcitygames.com/carddisp ... oduct=7819)
so i made one that works for the most part:

Code: Select all

[card]
name=Order of Yawgmoth
color=black
rarity=U
mana={B}{B}{2}
type=Creature
subtype=Zombie Knight
power=2
toughness=2
abilities=Fear
auto=@damaged(player)[from(this)]:discard:1 opponent
text=Fear, When ever Order of Yawgmoth deals damage to a player, that player discards a card
[/card]
The only problem that that card has, is that the actual card has the opponent choose a card, while the code has you randomly discard a card.

For the code question that i have...The card is called Phyrexian Processor:http://sales.starcitygames.com//carddis ... duct=35498

Pretty much the problem that i'm facing is bringing the sacrificed life to the token creature that is made. I was thinking that if it puts a counter on the card based on the amount of life lost than depending on the counter, thats where the power / toughness comes from.

any ideas?

[EDIT ABRA - Renamed]

Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Order of Yawgmoth (and one card question)

Post by Zethfox » Mon Jun 21, 2010 11:11 am

that looks like a card thats needs hard coding....no way to get the life X and even with counter i dont see the tokens coming out right...maybe...ill try something tomarrow.

User avatar
ph34rbot
Posts: 265
Joined: Thu Jan 07, 2010 6:33 am

Re: Order of Yawgmoth (and one card question)

Post by ph34rbot » Mon Jun 21, 2010 3:34 pm

Cards with "discrad" aren't added to the game, this ability lets you make a choice of what card to discard, and I think the AI ins't capable of doing tat.

From now only cards that say "discard at random" are codeable.

abrasax
Posts: 976
Joined: Wed Oct 15, 2008 7:46 am
Location: Switzerland

Re: Order of Yawgmoth (and one card question)

Post by abrasax » Mon Jun 21, 2010 3:43 pm

Hi,

The correct code for Order of Yawgmoth is

Code: Select all

auto=@damaged(player) from(this):discard:1 opponent
You don't need to put the "from(this)" into brackets...

The fact that the opponent cannot choose a card is not so dramatic as the AI would be totally stupid in choosing a card anyway... so this card is crappy and should nevertheless word perfectly well if you want to add it to your working copy of wagic.

Regarding Phyrexian Processor you cannot use life as a casting cost, therefore it would be difficult to code this card, it would be probably doable with some kind of chained token with some "may" when comes into play... but that's a workaround that would be have an inituivive user interface for this card... but should be doable anyway. It would have been different if the card text was saying pay {X} and loose X life... that would have be 100% doable.

Grü

Abra
We need your Help !!!
New to wagic ? Be sure to check the following :

Bug report: Bug reporting
Help us: Add cards & Compiling.
Customize: Themes FAQ, All images thread, Abra's Mediafire folder

felgrand89
Posts: 12
Joined: Tue Nov 10, 2009 9:22 pm

Card not working, freezes game

Post by felgrand89 » Sat Jun 26, 2010 5:46 pm

I'm trying to code Order of Yawgmoth, this is what I have right now:

[card]
primitive=Order of Yawgmoth
id=7819
rarity=U
mana={3}{B}{B}
color=black
type=Creature
subtype=Zombie Knight
power=2
toughness=2
text=Order of Yawgmoth cannot be blocked except by artifact creatures and black creatures. Whenever Order of Yawgmoth successfully deals damage to a player, that player chooses and discards a card.
abilities=fear
auto=@damaged(player) from(this):draw:{S(*|opponenthand)}
[/card]

The problem is that when I buy it in the shop its name is blank, and when I put it in a deck and use that deck th game freezes when I pick the deck to use in a duel.

[EDIT ABRA : merged topic, please post your question about card coding in the correct section, and use the search before posting, this card is already discussed]

Onitenshi
Posts: 122
Joined: Sun Apr 12, 2009 12:56 pm
Location: Austria

Re: Card not working, freezes game

Post by Onitenshi » Sat Jun 26, 2010 6:01 pm

Check http://wololo.net/miki/index.php/Wagic/CardCode for Card Code reference:
primitive=Order of Yawgmoth
If you add this, the card code must be implemented in the primitives.txt
auto=@damaged(player) from(this):draw:{S(*|opponenthand)}
the bold code is not valid

Code: Select all

[cost:]draw:n [playertarget] - draw n cards. n may be a variable. 
and you can't sacrifice cards in you opponents hand, for discarding use

Code: Select all

[cost:]discard:n [playertarget] - randomly discard n cards 
but this is random discard (AI choosing cards to discard is not implemented yet).

My card coding knowledge is unfortunately a bit outdated, but that should be correct
ImageImageImageImageImage

felgrand89
Posts: 12
Joined: Tue Nov 10, 2009 9:22 pm

Re: Card not working, freezes game

Post by felgrand89 » Sat Jun 26, 2010 6:43 pm

So, would this work?

auto=@damaged(player) from(this):discard:1 (opponent)

Onitenshi
Posts: 122
Joined: Sun Apr 12, 2009 12:56 pm
Location: Austria

Re: Card not working, freezes game

Post by Onitenshi » Sat Jun 26, 2010 7:21 pm

felgrand89 wrote:So, would this work?

auto=@damaged(player) from(this):discard:1 (opponent)
withoud the brackets at the end:

Code: Select all

auto=@damaged(player) from(this):discard:1 opponent
should work
ImageImageImageImageImage

felgrand89
Posts: 12
Joined: Tue Nov 10, 2009 9:22 pm

Re: Card not working, freezes game

Post by felgrand89 » Sat Jun 26, 2010 7:28 pm

Ok, so now i have this:

[card]
name=Order of Yawgmoth
rarity=U
mana={3}{B}{B}
color=black
type=Creature
subtype=Zombie Knight
power=2
toughness=2
text=Order of Yawgmoth cannot be blocked except by artifact creatures and black creatures. Whenever Order of Yawgmoth successfully deals damage to a player, that player chooses and discards a card.
abilities=fear
auto=@damaged(player) from(this):discard:1 opponent
[/card]

and its in the _card.txt for PVC, thats thats the Phyrexian vs Coalition. Now the next problem is it wont show up in Shop or the Pack list. I hate this new coding style.

Saint
Posts: 434
Joined: Sat Jan 09, 2010 4:57 pm
Location: Netherlands

Re: Card not working, freezes game

Post by Saint » Sat Jun 26, 2010 8:33 pm

[card]
name=Order of Yawgmoth
abilities=fear
auto=@damaged(player) from(this):discard:1 opponent
text=Order of Yawgmoth cannot be blocked except by artifact creatures and black creatures. Whenever Order of Yawgmoth successfully deals damage to a player, that player chooses and discards a card.
mana={3}{B}{B}
type=Creature
subtype=Zombie Knight
power=2
toughness=2
[/card]

try it in this order (it's just an example) instead of the order you used this should cover it (color= isen't needed(only wen working with tokens that don't have a mana cost), the manacost tells the engine the color, ID isen't needed you need to put that in the ._card.dat)

Ok now for the card.dat info:

[card]
primitive=Order of Yawgmoth
id=7819
rarity=U
[/card]

Try that, hope that clears it up a bit :)

Greetz,

Saint.
"The bird of the Hermes is my name, eating my wings to make me tame." - Ripley Scrowle, Elias Ashmole's Theatrum Chemicum Britannicum - 1652

Post Reply