Ai deck builders
Posted: Wed Apr 11, 2012 5:58 pm
wagic 18 brings new toys for you to play with when it comes to building an ai deck
first I'll cover hints
#HINT:castpriority(blah,blah,blah,blah,ect)
this is a method to set the order in which ai decides to play cards, you can for
example tell ai to look for 2 instants, before trying to find a creature.
be sure to list all main types of the deck otherwise ai will pass on stuff
this is the current
const char* types[] = {"planeswalker","creature", "enchantment", "artifact",
"sorcery", "instant"};
so be sure you include them if the decks need them.
other the above example would be coded
HINT:castpriority(instant,instant,creature,planeswalker,enchantment,artifact,sor
cery)
as you can see this deck will now look for and play if possible, 2 instants
before any of the other types.
this will really help with decks which rely on cards like dark ritual to produce
mana to cast creature, simply by listing instant before creature. if the deck
had dark rituals, in the above example, and it had them in hand, it would then
cast dark ritual, dark ritual, then one of the remaining types.
next
#HINT:dontattackwith(targetchooser)
this allows you to tell ai not to attack with a certain card or cards of a certain type...for instance
#HINT:dontattackwith(elvish piper)
that tells ai that elvish piper should only be used as a blocker and for its ability to bring creatures in play....
#HINT:dontattackwith(creature[power<=0])
this means if it doesn't have a power greater then 0 then don't attack with it.
you can come up with some strategies with this, to help ai better understand what a creature was meant for.
and lets not forget
toggledifficulty:easy card|hard card
toggledifficulty:lotus petal|black lotus
while the deck you are fighting considers you easy, it will use lotus petals...but if you are considered hard to that ai deck it replaces that lotus petal with a black lotus.
with these 3 tool you can tailor your ai deck to be much more difficult they don't seems so at first, until you realize that a elvish piper that is only on the field to use it's ability in a deck with eldrazis is a scary thing. or when ai finally can cast dark ritual chains to get out a creature in turn 1 thats 7 mana.....
first I'll cover hints
#HINT:castpriority(blah,blah,blah,blah,ect)
this is a method to set the order in which ai decides to play cards, you can for
example tell ai to look for 2 instants, before trying to find a creature.
be sure to list all main types of the deck otherwise ai will pass on stuff
this is the current
const char* types[] = {"planeswalker","creature", "enchantment", "artifact",
"sorcery", "instant"};
so be sure you include them if the decks need them.
other the above example would be coded
HINT:castpriority(instant,instant,creature,planeswalker,enchantment,artifact,sor
cery)
as you can see this deck will now look for and play if possible, 2 instants
before any of the other types.
this will really help with decks which rely on cards like dark ritual to produce
mana to cast creature, simply by listing instant before creature. if the deck
had dark rituals, in the above example, and it had them in hand, it would then
cast dark ritual, dark ritual, then one of the remaining types.
next
#HINT:dontattackwith(targetchooser)
this allows you to tell ai not to attack with a certain card or cards of a certain type...for instance
#HINT:dontattackwith(elvish piper)
that tells ai that elvish piper should only be used as a blocker and for its ability to bring creatures in play....
#HINT:dontattackwith(creature[power<=0])
this means if it doesn't have a power greater then 0 then don't attack with it.
you can come up with some strategies with this, to help ai better understand what a creature was meant for.
and lets not forget
toggledifficulty:easy card|hard card
toggledifficulty:lotus petal|black lotus
while the deck you are fighting considers you easy, it will use lotus petals...but if you are considered hard to that ai deck it replaces that lotus petal with a black lotus.
with these 3 tool you can tailor your ai deck to be much more difficult they don't seems so at first, until you realize that a elvish piper that is only on the field to use it's ability in a deck with eldrazis is a scary thing. or when ai finally can cast dark ritual chains to get out a creature in turn 1 thats 7 mana.....