When foo enters the battlefield, return bar to your hand
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
7 posts
• Page 1 of 1
When foo enters the battlefield, return bar to your hand
by mark » 27 Mar 2012, 08:58
Some time ago I saw a problem where the AI played a land that enforces to return a land to AI's hand. As this land was the only available land, the AI produced an endless loop. I cannot recall which land this was and I think that this was fixed (not sure about this, though).
Now I see the same problem with Whitemane Lion: when it enters the battlefield, return a creature (which is Whitemane Lion as it is the only creature)...
Now I see the same problem with Whitemane Lion: when it enters the battlefield, return a creature (which is Whitemane Lion as it is the only creature)...
Re: When foo enters the battlefield, return bar to your hand
by friarsol » 27 Mar 2012, 12:15
This seems to be the same situation I was just talking about in the other thread. ETB effects are "tested" by the AI if they have start with DB in the script and not AB. It looks like the Lion has a DB, and thus isn't tested. We should probably make sure any ETB triggers have a DB on their trigger line so these loops won't happen.mark wrote:Some time ago I saw a problem where the AI played a land that enforces to return a land to AI's hand. As this land was the only available land, the AI produced an endless loop. I cannot recall which land this was and I think that this was fixed (not sure about this, though).
Now I see the same problem with Whitemane Lion: when it enters the battlefield, return a creature (which is Whitemane Lion as it is the only creature)...
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: When foo enters the battlefield, return bar to your hand
by moomarc » 27 Mar 2012, 12:22
Wrong Marc, but I see what you were referring to now. Thanksfriarsol wrote:This seems to be the same situation I was just talking about in the other thread. ETB effects are "tested" by the AI if they have start with DB in the script and not AB. It looks like the Lion has a DB, and thus isn't tested. We should probably make sure any ETB triggers have a DB on their trigger line so these loops won't happen.
EDIT: I've tried changing it in my local copy and it works great (unless the ai ends up with two in hand). But I find you have better control over situations like these using something like
- Code: Select all
SVar:NeedsToPlayVar:X GE1
SVar:X:Count$Valid Creature.YouCtrl
EDIT2: Regardless of all this, the AI shouldn't have had the Whitemane Lion because it has RemAIDeck.
-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
Re: When foo enters the battlefield, return bar to your hand
by friarsol » 27 Mar 2012, 13:53
Yea I know, but it seemed appropriate to mention it, since it was just discussed on the forum. The AI testing was more designed for cards like Foul Imp so the AI wouldn't kill themselves with it (as a replacement for etbLoseLife), but works in these situations as well.moomarc wrote:Wrong Marc, but I see what you were referring to now. Thanksfriarsol wrote:This seems to be the same situation I was just talking about in the other thread. ETB effects are "tested" by the AI if they have start with DB in the script and not AB. It looks like the Lion has a DB, and thus isn't tested. We should probably make sure any ETB triggers have a DB on their trigger line so these loops won't happen.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: When foo enters the battlefield, return bar to your hand
by Chris H. » 28 Mar 2012, 21:16
`friarsol wrote:The AI testing was more designed for cards like Foul Imp so the AI wouldn't kill themselves with it (as a replacement for etbLoseLife), but works in these situations as well.
It looks like there are over 600 ETB cards that need to be converted from AB to DB. Do you want all of them handled this way?
-
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: When foo enters the battlefield, return bar to your hand
by Sloth » 29 Mar 2012, 06:09
I've converted most of the important ones already and i don't think a general conversion is needed. I left some cards with AB on purpose, because the AI won't play them otherwise (or hold them back needlessly).Chris H. wrote:`friarsol wrote:The AI testing was more designed for cards like Foul Imp so the AI wouldn't kill themselves with it (as a replacement for etbLoseLife), but works in these situations as well.
It looks like there are over 600 ETB cards that need to be converted from AB to DB. Do you want all of them handled this way?
These are reasons to not convert them to DB:
- The new permanent makes the ability useful, when it wasn't before (for example Inner-Flame Acolyte).
- There are Conditions in the ability (the AI does not check conditions).
- The ability is so minor (and the body of the creature so big) that it's not worth waiting for targets.
- The ability is too complex for the AI anyway (with AB you can force the AI to use it if it's not optional).
For some cards it doesn't really matter:
- Triggers with "OptionalDecider$ You" (these will always be played even when they have a DB ability).
- Token makers
- etc.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: When foo enters the battlefield, return bar to your hand
by Chris H. » 29 Mar 2012, 14:46
`Sloth wrote:I've converted most of the important ones already and i don't think a general conversion is needed. I left some cards with AB on purpose, because the AI won't play them otherwise (or hold them back needlessly).
Yeah, I felt that the cards that could best use a AB to DB conversion had for the most part already been changed. I seem to remember some discussion on this taking pace a number of months ago and we decided that it would be best to convert some of them but not all of them.
-
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
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 39 guests