Dragons of Tarkir WIP

All user created custom sets, custom game mode and modded official content.
kevlahnota
Posts: 619
Joined: Tue Feb 08, 2011 3:00 pm
Location: Philippines
Contact:

Re: Dragons of Tarkir WIP

Post by kevlahnota »

test suite additions...
formidable mechanic test:

Code: Select all

#Testing Atarka Beastbreaker,Stampeding Elk Herd -- Formidable
#Atarka Beastbreaker will become 6/6, and then attacks along with Stampeding Elk Herd, trample effect will trigger
#then p2 will block with Steel Wall, p2 must have 13 life...
[INIT]
COMBATATTACKERS
[PLAYER1]
inplay:Atarka Beastbreaker,Krosan Tusker,Stampeding Elk Herd
manapool:{4}{G}
[PLAYER2]
inplay:Steel Wall
life:20
[DO]
Atarka Beastbreaker
choice 1
Atarka Beastbreaker
Stampeding Elk Herd
next
Steel Wall
#blockers 
next
#combatdamage 2
next
next
#endofcombat 2
[ASSERT]
COMBATEND
[PLAYER1]
inplay:Atarka Beastbreaker,Krosan Tusker,Stampeding Elk Herd
manapool:{0}
[PLAYER2]
graveyard:Steel Wall
life:13
[END]
the cards:

Code: Select all

[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:

Atarka Beastbreaker

Code: Select all

auto={4}{G}:4/4 restriction{compare(powertotalinplay)~morethan~7}
if you can't wait try adding the code to AllAbilities.h then compile...

Code: Select all

       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;
                }
            }
        }
KF1
Posts: 1952
Joined: Tue Apr 06, 2010 7:04 pm

Re: Dragons of Tarkir WIP

Post by KF1 »

Thank you kevlahnota.
User avatar
Bas
Posts: 425
Joined: Sat Dec 26, 2015 10:55 pm
Location: Germany

Re: Dragons of Tarkir WIP

Post by Bas »

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?
Forums are down atm.

Please join the discord server in order to not miss stuff and be reachable:
https://discord.gg/JHK5pVaK5p

(You are not required to install the software, you can use it in a browser as well, albeit I recommend installing)
User avatar
Bas
Posts: 425
Joined: Sat Dec 26, 2015 10:55 pm
Location: Germany

Re: Dragons of Tarkir WIP

Post by Bas »

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!
Forums are down atm.

Please join the discord server in order to not miss stuff and be reachable:
https://discord.gg/JHK5pVaK5p

(You are not required to install the software, you can use it in a browser as well, albeit I recommend installing)
mrfatbard
Posts: 198
Joined: Fri Jul 10, 2015 6:14 pm

Re: Dragons of Tarkir WIP

Post by mrfatbard »

here is a workaround for ojutai

Code: Select all

[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]
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Dragons of Tarkir WIP

Post by Zethfox »

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.
Tacoghandi
Posts: 1197
Joined: Thu Apr 28, 2011 11:34 pm

Re: Dragons of Tarkir WIP

Post by Tacoghandi »

Awesome Zeth and welcome back. :D
!!Check out My Created Sets and other Stuff!!

viewtopic.php?f=22&t=3380
Locked