It is currently 16 Apr 2024, 19:23
   
Text Size

MTGForge 10/15 (unofficial BETA) version

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: MTGForge 10/15 (unofficial BETA) version

Postby mtgrares » 24 Oct 2009, 19:51

Thanks for the quest updates Chris, it really helps.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: MTGForge 10/15 (unofficial BETA) version

Postby Chris H. » 28 Oct 2009, 14:51

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.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: MTGForge 10/15 (unofficial BETA) version

Postby Marek14 » 28 Oct 2009, 15:30

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?
Marek14
Tester
 
Posts: 2759
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 296 times

Re: MTGForge 10/15 (unofficial BETA) version

Postby Rob Cashwalker » 28 Oct 2009, 16:19

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.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: MTGForge 10/15 (unofficial BETA) version

Postby Marek14 » 28 Oct 2009, 17:49

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.
Marek14
Tester
 
Posts: 2759
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 296 times

Re: MTGForge 10/15 (unofficial BETA) version

Postby Resonantg » 28 Oct 2009, 18:00

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. ;)
Resonantg
 
Posts: 172
Joined: 11 Oct 2009, 16:20
Has thanked: 0 time
Been thanked: 0 time

Previous

Return to Forge

Who is online

Users browsing this forum: No registered users and 48 guests


Who is online

In total there are 48 users online :: 0 registered, 0 hidden and 48 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 48 guests

Login Form