Page 4 of 4

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 24 Oct 2009, 19:51
by mtgrares
Thanks for the quest updates Chris, it really helps.

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 28 Oct 2009, 14:51
by Chris H.
DennisBergkamp wrote:New cards:

- Rukh Egg
`
I like the Rukh Egg card that was recently added. And I had an idea. When the computer summons a creature with Devour, the code checks to see if the computer has any small creatures that it can sacrifice to pump up the Devour ability.

if (c.getNetAttack() <= 1 && c.getNetDefense() <= 2)

It might be interesting to add the Rukh Egg to this test as a special case.

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 28 Oct 2009, 15:30
by Marek14
Chris H. wrote:
DennisBergkamp wrote:New cards:

- Rukh Egg
`
I like the Rukh Egg card that was recently added. And I had an idea. When the computer summons a creature with Devour, the code checks to see if the computer has any small creatures that it can sacrifice to pump up the Devour ability.

if (c.getNetAttack() <= 1 && c.getNetDefense() <= 2)

It might be interesting to add the Rukh Egg to this test as a special case.
BTW, I wanted to ask for some time - Devour and other "as enters the battlefield" abilities going on stack: is this a limitation of engine or error in rules implementation?

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 28 Oct 2009, 16:19
by Rob Cashwalker
Chris H. wrote:if (c.getNetAttack() <= 1 && c.getNetDefense() <= 2)

It might be interesting to add the Rukh Egg to this test as a special case.
Instead of adding it by name the if statement should just be turned into an OR.
Code: Select all
if (c.getNetAttack() <= 1 || c.getNetDefense() <= 2)
Granted, it might choose a Birds of Paradise once in a while. (though no more likely than as is) But then we could add some sorting logic, such that any creatures with abilities or keywords become less desirable fodder; the sorting logic would be the place to add the exception for placing Rukh Egg ahead of others.

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 28 Oct 2009, 17:49
by Marek14
Rob Cashwalker wrote:
Chris H. wrote:if (c.getNetAttack() <= 1 && c.getNetDefense() <= 2)

It might be interesting to add the Rukh Egg to this test as a special case.
Instead of adding it by name the if statement should just be turned into an OR.
Code: Select all
if (c.getNetAttack() <= 1 || c.getNetDefense() <= 2)
Granted, it might choose a Birds of Paradise once in a while. (though no more likely than as is) But then we could add some sorting logic, such that any creatures with abilities or keywords become less desirable fodder; the sorting logic would be the place to add the exception for placing Rukh Egg ahead of others.
Basically: some abilities make the creature better sacrifice, some worse. Negative abilities, like defender, make it better sacrifice (you'd rather sacrifice Steel Wall than Kraken Hatchling, all other things being equal). But creatures with leaves-battlefield or graveyard abilities are things you positively want to sacrifice. Not only Rukh Egg, but Hornet Harasser, Abbyssal Gatekeeper... things like that.

I'd definitely advise against generic "abilities and keywords make better creatures" logic.

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 28 Oct 2009, 18:00
by Resonantg
Chris H. wrote:
DennisBergkamp wrote:New cards:

- Rukh Egg
`
I like the Rukh Egg card that was recently added. And I had an idea. When the computer summons a creature with Devour, the code checks to see if the computer has any small creatures that it can sacrifice to pump up the Devour ability.

if (c.getNetAttack() <= 1 && c.getNetDefense() <= 2)

It might be interesting to add the Rukh Egg to this test as a special case.
Waayyyy back in the day. A friend of mine had a Ruhk Egg/Implements of Sacrifice/Lord of the Pit deck. Took a little to get rolling, but once it did, you were torched. Now we just need the other two cards. ;)