[card]
name=Atarka Beastbreaker
auto={4}{G}:4/4 restriction{compare(powertotalinplay)~morethan~7}
text=Formidable — {4}{G}: Atarka Beastbreaker gets +4/+4 until end of turn. Activate this ability only if creatures you control have total power 8 or greater.
mana={1}{G}
type=Creature
subtype=Human Warrior
power=2
toughness=2
[/card]
[card]
name=Stampeding Elk Herd
auto=@combat(attacking) source(this) restriction{compare(powertotalinplay)~morethan~7}:lord(creature|myBattlefield) trample ueot
text=Formidable — Whenever Stampeding Elk Herd attacks, if creatures you control have total power 8 or greater, creatures you control gain trample until end of turn.
mana={3}{G}{G}
type=Creature
subtype=Elk
power=5
toughness=5
[/card]
kevlahnota wrote:just created pull request on gitub, formidable cards can be coded something like this:
else if (s == "powertotalinplay")//Count Total Power of Creatures you control... Formidable
{
intValue = 0;
for (int j = card->controller()->game->inPlay->nb_cards - 1; j >= 0; --j)
{
if (card->controller()->game->inPlay->cards[j]->hasType(Subtypes::TYPE_CREATURE))
{
intValue += card->controller()->game->inPlay->cards[j]->power;
}
}
}
What's up with Atarka? Not possible to code more than 2 targets (see Arc Lightning)? If so, what about including it with 2 targets, if possible. But prob even then problematic as the amount of damage divided isn't as easy to do I guess.
Next idea; what about to prompt to ask the player to do 1 damage at a time 5 times in a row?
Commands:
Wild guess, the "choose two" - part is causing problems? What about automatically executing the strongest/most used mode and let the user select one of the others as a pseudo workaround?
Atarka command, lifegain block:
- What about inserting token (with shadow?) until end of the turn which has: "opponent gains life: opponent looses life equal to that amount" as a workaround? Wild idea here!
[card]
name=Dragonlord Ojutai
abilities=flying
auto=this(untapped) hexproof
auto=@combatdamaged(player) from(this): deplete:3
auto=@each my endofturn:moveto(myhand) target(*|mygraveyard) restriction{compare(oplifelost)~morethan~0}
text=Flying -- Dragonlord Ojutai has hexproof as long as it's untapped. -- Whenever Dragonlord Ojutai deals combat damage to a player, look at the top three cards of your library. Put one of them into your hand and the rest on the bottom of your library in any order.
mana={3}{W}{U}
type=Legendary Creature
subtype=Elder Dragon
power=5
toughness=4
[/card]
i have code in the works that already adds support for that.
current code supports this type of card.
Look at the top five cards of your library. You may reveal a creature card from among them and put it into your hand. Put the rest on the bottom of your library in any order.
working on scry. currently you can only do set amounts, look at X, do blah to this many, do something else to the others remaining.
for scry I need to be able to allow it to have say put any number, and so on. hoping to have it in soon.