A guide to the AI of planeswalkers using ability factories
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
33 posts
• Page 1 of 3 • 1, 2, 3
A guide to the AI of planeswalkers using ability factories
by Sloth » 11 Oct 2011, 09:58
Now that 14 of the 21 implemented Planeswalkers use AbilityFactory abilities and are no longer hardcoded, I've added some basic AI checks especially for Planeswalkers:
1. Abilities that are flagged as ultimate will be considered before the other abilities.
2. At the end of the turn the computer will use one of its abilities (with some rare exceptions).
I will now list the AF using Planeswalkers with their current AI usage and possible weaknesses that should be improved.
Ajani Goldmane - hardcoded.
Ajani Vengeant:
The AI will use his ultimate as soon as possible in Main1/Main2.
Will use his second ability if it can kill a creature during Main1.
Will use his first ability during Main2 if the ultimate is not available (I'm still working on improving this ability).
Verdict: Playable
Chandra Nalaar - hardcoded.
Chandra, the Firebrand:
Will use her ultimate if it could kill one creature or the human during Main1/Main2.
Never uses the second ability.
Will use her first ability to kill a creature/human in Main1/Main2 or to ping the human in Main2 if the ultimate is not available.
Verdict: Playable
Elspeth, Knight-Errant - hardcoded.
Elspeth Tirel:
Will use her ultimate in Main1/Main2 when he things the trade is in his favor.
Will use her second ability in Main2 if he controls no creatures.
Will use her first ability in Main2 if he controls any creatures and the ultimate is not available.
Verdict: Borderline Playable
Garruk, Primal Hunter:
Will use his ultimate in Main2.
Will never use his second ability.
Will use his first ability in Main2 if the ultimate is not available.
Verdict: Very Playable
Garruk Wildspeaker:
Will use his ultimate in Main1 (but AF PumpAll is not very advanced).
Will only use his second ability in Main2 if he controls no tapped lands.
Will use is first ability in Main1/Main2 (but AF Untap is also not so AI friendly).
Verdict: Borderline Playable
Gideon Jura: the effect of the ultimate is not supported for the AI in forge.
Jace Beleren:
Will use his ultimate in Main2.
Will never use his second ability.
Will use his first ability in Main2 if the ultimate is not available.
Verdict: Only useful in the right deck
Jace, Memory Adept:
Will use his ultimate only to deck the human in Main2.
Will never use his second ability (only when his own library is empty).
Will use his first ability in Main2.
Verdict: Very Playable
Jace, the Mind Sculptor - hardcoded.
Koth of the Hammer - hardcoded.
Liliana Vess:
Will use her ultimate if there are any creatures in a graveyard in Main1/Main2.
Will never use her second ability.
Will use her first ability in Main2 if the ultimate is not available.
Verdict: Very Playable
Nicol Bolas, Planeswalker:
Will use his ultimate as soon as possible in Main1/Main2.
Will only use his second ability if the first finds no targets in Main1/Main2.
Will use his first ability in Main1/Main2 if the ultimate is not available.
Verdict: Playable (but expensive)
Nissa Revane:
Will use her ultimate in Main1/Main2 if there are elves in his library.
Will use her second ability in Main2 if there are no longer Nissa's Chosen in his library.
Will use her first ability in Main1/Main2 if there are Nissa's Chosen in his library and the ultimate is not available.
Verdict: Very Playable (in the right deck)
Sarkhan the Mad - hardcoded.
Sarkhan Vol:
Will use his ultiamte ability only in Main2 (but will only get there if there are no creatures on the board, because the AI will use the first or second ability in Main1).
Will use his second ability if he controls no creatures but the human does in Main1.
Will use his first ability if he controls creatures in Main1 (AF PumpAll AI is still lacking).
Verdict: Borderline Playable
Tezzeret, Agent of Bolas:
His ultimate is not flagged as such and will thus only be used if he can kill the human in Main1.
Will never use his second ability (no AI has been written for targeted AF Animate)
Will use his first ability in Main2.
Verdict: Playable (quite good with lots of artifacts)
Tezzeret the Seeker - hardcoded.
Venser, the Sojourner: got SVar:RemAIDeck:True because his first ability won't be used.
If anyone wants to convert a planeswalker to keyword or wants to improve one of the existing, I can share further testing results.
1. Abilities that are flagged as ultimate will be considered before the other abilities.
2. At the end of the turn the computer will use one of its abilities (with some rare exceptions).
I will now list the AF using Planeswalkers with their current AI usage and possible weaknesses that should be improved.
Ajani Goldmane - hardcoded.
Ajani Vengeant:
The AI will use his ultimate as soon as possible in Main1/Main2.
Will use his second ability if it can kill a creature during Main1.
Will use his first ability during Main2 if the ultimate is not available (I'm still working on improving this ability).
Verdict: Playable
Chandra Nalaar - hardcoded.
Chandra, the Firebrand:
Will use her ultimate if it could kill one creature or the human during Main1/Main2.
Never uses the second ability.
Will use her first ability to kill a creature/human in Main1/Main2 or to ping the human in Main2 if the ultimate is not available.
Verdict: Playable
Elspeth, Knight-Errant - hardcoded.
Elspeth Tirel:
Will use her ultimate in Main1/Main2 when he things the trade is in his favor.
Will use her second ability in Main2 if he controls no creatures.
Will use her first ability in Main2 if he controls any creatures and the ultimate is not available.
Verdict: Borderline Playable
Garruk, Primal Hunter:
Will use his ultimate in Main2.
Will never use his second ability.
Will use his first ability in Main2 if the ultimate is not available.
Verdict: Very Playable
Garruk Wildspeaker:
Will use his ultimate in Main1 (but AF PumpAll is not very advanced).
Will only use his second ability in Main2 if he controls no tapped lands.
Will use is first ability in Main1/Main2 (but AF Untap is also not so AI friendly).
Verdict: Borderline Playable
Gideon Jura: the effect of the ultimate is not supported for the AI in forge.
Jace Beleren:
Will use his ultimate in Main2.
Will never use his second ability.
Will use his first ability in Main2 if the ultimate is not available.
Verdict: Only useful in the right deck
Jace, Memory Adept:
Will use his ultimate only to deck the human in Main2.
Will never use his second ability (only when his own library is empty).
Will use his first ability in Main2.
Verdict: Very Playable
Jace, the Mind Sculptor - hardcoded.
Koth of the Hammer - hardcoded.
Liliana Vess:
Will use her ultimate if there are any creatures in a graveyard in Main1/Main2.
Will never use her second ability.
Will use her first ability in Main2 if the ultimate is not available.
Verdict: Very Playable
Nicol Bolas, Planeswalker:
Will use his ultimate as soon as possible in Main1/Main2.
Will only use his second ability if the first finds no targets in Main1/Main2.
Will use his first ability in Main1/Main2 if the ultimate is not available.
Verdict: Playable (but expensive)
Nissa Revane:
Will use her ultimate in Main1/Main2 if there are elves in his library.
Will use her second ability in Main2 if there are no longer Nissa's Chosen in his library.
Will use her first ability in Main1/Main2 if there are Nissa's Chosen in his library and the ultimate is not available.
Verdict: Very Playable (in the right deck)
Sarkhan the Mad - hardcoded.
Sarkhan Vol:
Will use his ultiamte ability only in Main2 (but will only get there if there are no creatures on the board, because the AI will use the first or second ability in Main1).
Will use his second ability if he controls no creatures but the human does in Main1.
Will use his first ability if he controls creatures in Main1 (AF PumpAll AI is still lacking).
Verdict: Borderline Playable
Tezzeret, Agent of Bolas:
His ultimate is not flagged as such and will thus only be used if he can kill the human in Main1.
Will never use his second ability (no AI has been written for targeted AF Animate)
Will use his first ability in Main2.
Verdict: Playable (quite good with lots of artifacts)
Tezzeret the Seeker - hardcoded.
Venser, the Sojourner: got SVar:RemAIDeck:True because his first ability won't be used.
If anyone wants to convert a planeswalker to keyword or wants to improve one of the existing, I can share further testing results.
Last edited by Sloth on 11 Oct 2011, 14:42, edited 1 time in total.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: A guide to the AI of planeswalkers using ability factori
by moomarc » 11 Oct 2011, 12:18
Would it not be worth adding an if clause that lets the ai use the first ability if it has creatures (or other permanents) with a positive ETB ability or 'leaves play' ability. I just think it could be a powerful card for the AI; so even if you keep the SVar so that it won't show up in randomly generated decks, is it possible to add the AI checks so that Venser could still be added to constructed decks and played well by the AI (seeing as it will have appropriate support cards).Sloth wrote:Venser, the Sojourner: got SVar:RemAIDeck:True because his first ability won't be used
-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: A guide to the AI of planeswalkers using ability factori
by Hellfish » 11 Oct 2011, 12:32
There may be a case for implementing an AF_Blink as the AI doesn't handle two separate things interacting very well (which is what blinking currently is). I may hop on this, but I've got one other project I want to focus on first.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: A guide to the AI of planeswalkers using ability factori
by Sloth » 11 Oct 2011, 14:47
The AI can use blink abilities to rescue permanents that would be destroyed, but that does not help Venser.Hellfish wrote:There may be a case for implementing an AF_Blink as the AI doesn't handle two separate things interacting very well (which is what blinking currently is). I may hop on this, but I've got one other project I want to focus on first.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: A guide to the AI of planeswalkers using ability factori
by Hellfish » 11 Oct 2011, 14:59
With an AF there could be a generalized AI that could look for posistive ETB triggers.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: A guide to the AI of planeswalkers using ability factori
by Sloth » 11 Oct 2011, 15:30
I don't think we need a special AF for that. I will try to add this to AF ChangeZone.Hellfish wrote:With an AF there could be a generalized AI that could look for posistive ETB triggers.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: A guide to the AI of planeswalkers using ability factori
by Doublestrike » 12 Oct 2011, 00:09
Wow, this is a thankful bunch of people! 

---
A joke is a very serious thing.
A joke is a very serious thing.
-
Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
Re: A guide to the AI of planeswalkers using ability factori
by friarsol » 12 Oct 2011, 00:27
Planeswalkers were easily the card type that lost the most ground when we changed over to our current scripting system, while the abilities could be scripted the AI stopped being able to use them effectively. These types of changes is exactly what we need to cover when streamlining everything.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: A guide to the AI of planeswalkers using ability factori
by friarsol » 29 Oct 2011, 00:21
It looks like Koth of the Hammer 's first ability is wrong (isn't granting Red) The AI won't use the second ability right now at all, would it be worth converting him since the AFs would be pretty similar?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: A guide to the AI of planeswalkers using ability factori
by jeffwadsworth » 29 Oct 2011, 00:50
Done.friarsol wrote:It looks like Koth of the Hammer 's first ability is wrong (isn't granting Red) The AI won't use the second ability right now at all, would it be worth converting him since the AFs would be pretty similar?
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: A guide to the AI of planeswalkers using ability factori
by jeffwadsworth » 29 Oct 2011, 02:21
Elspeth, Knight-Errant also looks doable now. Done.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: A guide to the AI of planeswalkers using ability factori
by slapshot5 » 29 Oct 2011, 04:25
. Ajani Goldmane should be scriptable too.
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: A guide to the AI of planeswalkers using ability factori
by jeffwadsworth » 29 Oct 2011, 04:54
Done.slapshot5 wrote:. Ajani Goldmane should be scriptable too.
Last edited by jeffwadsworth on 29 Oct 2011, 05:24, edited 1 time in total.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: A guide to the AI of planeswalkers using ability factori
by slapshot5 » 29 Oct 2011, 05:11
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: A guide to the AI of planeswalkers using ability factori
by jeffwadsworth » 29 Oct 2011, 05:26
I will add it tomorrow unless someone else does it. Sleep beckons.slapshot5 wrote:and Tezzeret the Seeker
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
33 posts
• Page 1 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 49 guests