Ai deck builders

All created AI or player decks. All discussion related to Wagic AI deck competion and results.
Daemonfey
Posts: 67
Joined: Mon Mar 28, 2011 7:18 pm

Re: Ai deck builders

Post by Daemonfey »

Excellent. So it *is* possible. Will try it soon.
OverlordZetta
Posts: 15
Joined: Sat Jan 14, 2012 3:06 am

Re: Ai deck builders

Post by OverlordZetta »

Zethfox wrote: #HINT:combo(hold[bad moon|myhand]^until[Nightmare|inplay]^until[unholy strength|myhand]^thenCast[bad moon,holy strength,target=nightmare|mybattlefield]^totalmananeeded[{b}{b}{b}{2}])
Holy crepes this is so awesome! Seriously, this sounds downright amazing. My only idea would be, since you're still working on it, would be to be able to specify multiple cards as a requirement. This way you would be able to do something like this with one of two cards needed: (Using one of my own decks as an example.)

#HINT:combo(hold[Tabernacle at Pendrell Vale|myhand]^until[Armageddon;Ravages of War|myhand]^thenCast[Armageddon,Tabernacle at Pendrell Vale]^totalmananeeded[{W}{3}])
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Ai deck builders

Post by Zethfox »

not going into detail what that system is going to do or not, reason being becuase its still in the process of being coded :)
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Ai deck builders

Post by Zethfox »

on hold for a couple weeks, my keyboard fried after getting wet, and im too poor to just go buy a new one. keep posting through ...still looking at the 2 main ai threads daily...
Tacoghandi
Posts: 1197
Joined: Thu Apr 28, 2011 11:34 pm

Re: Ai deck builders

Post by Tacoghandi »

Hey Zeth I was just wondering if the combo hint was ever finished being coded. I have been working on a.i. decks for my wagic game for a long time now and am now just seeing this topic. I am gonna be using what is available for sure in my a.i. decks and was just hoping that I could get the Combo decks to work a little more smoothly. Thanks for all the hard work you put into this game.
!!Check out My Created Sets and other Stuff!!

viewtopic.php?f=22&t=3380
excessum
Posts: 220
Joined: Wed Jan 16, 2013 5:03 am
Contact:

Re: Ai deck builders

Post by excessum »

I tried out the other hints as suggested but they do not seem to be working. Other than the venerable dontattackwith hint, the other two hints do not work at all. The AI still casts whatever it has in hand randomly and totally disregards the enchant one creature heavily hint OR to wait until the spawnwrithe is out before enchanting hint.

Code: Select all

#NAME:Spawners
#HINT:dontattackwith(creature[power<=0])
#HINT:castpriority(creature,enchantment,enchantment,enchantment,enchantment)
#HINT:combo(hold[rancor|myhand]^until[spawnwrithe|inplay]^thenCast[rancor,target=spawnwrithe|mybattlefield]^totalmananeeded[{g}])

spawnwrithe * 1
birds of paradise * 4

rancor * 4

Forest * 6
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Ai deck builders

Post by Zethfox »

Castpriority that I see you coded is. lo
ok for a creature, then enchantment, then enchantment, ect.
It changes the order ai looks for card to cast. it doesn't tell it to cast all the enchantment on a creature. to see how it works. make a deck with it using 3 dark rituals and a 6 drop creature. Without it ai will tap 6 lands to play the creature, then cast dark rituals. cause that's the default order. with it ai will tap one land, cast the rituals then cast the creature with mana from the dark. understand what that hint does?
Ai still has a chance to cast outside a combo. Might be to high at 5 percent, I'll debug it tonight.
Usually it breaks out of holding for a combo when it's been many turns trying to hold for it.
Last I checked it, it was working fine.
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Ai deck builders

Post by Zethfox »

Oh and careful with castpriority, in that line with just creatures and enchantment, ai will not cast anything but those 2 types. Current order is something like planewalker,creature,artifact,enchantment,instant,sorcery.
When looking for something to play, ai will search for the most expansive card it can play in that order. that hint allows you to change the order so for example, ai will play wrath of god first, then play a creature if it still has enough mana. just remember it will start the search from the start so if it had wog, dark ritual,a creature. it will play wog, then dark, then a creature. but it might also play a useless instant first. if instant have more priority than creature in that hint.seems confusing but you'll understand instantly once you see it in action. you ever had ai holding gaint growth, and a creature that cost 1 and just wanted ai to cast the gaint growth so bad but instead it cast the creature. that's what this fixes
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Ai deck builders

Post by Zethfox »

#HINT:combo hold(rancor|myhand)^until(spawnwrithe|inplay)^Cast(rancor|myhand) targeting(spawnwrithe|mybattlefield)^totalmananeeded({g})

cast() has to be a valid targetchooser, it does not automatically assume the card is in your hand. targeting() also has to be a valid targetchooser, and must be placed in the same ^section^, targeting( is optional, you don't need it you can let ai pick a target on it's own for the casted card.
the usable syntax are
hold(blah|blah) however many you want or different types/names
until(blah|blah) however many you want or different types/names

limitation above, if you need to hold 2 dark rituals for example you need to use the following
restriction{any ingame restriction}
restriction{type(dark ritual|myhand)~morethan~1}
this insures that it won't attempt the combo unless it has 2 or more dark rits.

cast(blah|blah)
optional target modding
cast(blah|blah) targeting(blah|blah)

totalmananeeded(a mana cost)

this is the corrected syntax of that line, thats why it wasnt working.
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Ai deck builders

Post by Zethfox »

im weaking somethings about it now btw
Post Reply