Page 3 of 7

Re: Ai deck builders

Posted: Wed Jul 25, 2012 6:39 pm
by Daemonfey
Excellent. So it *is* possible. Will try it soon.

Re: Ai deck builders

Posted: Wed Jul 25, 2012 6:48 pm
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}])

Re: Ai deck builders

Posted: Wed Jul 25, 2012 7:10 pm
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 :)

Re: Ai deck builders

Posted: Mon Jul 30, 2012 1:32 am
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...

Re: Ai deck builders

Posted: Mon Mar 11, 2013 10:01 pm
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.

Re: Ai deck builders

Posted: Tue Mar 12, 2013 12:44 pm
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

Re: Ai deck builders

Posted: Tue Mar 12, 2013 1:28 pm
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.

Re: Ai deck builders

Posted: Tue Mar 12, 2013 1:46 pm
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

Re: Ai deck builders

Posted: Tue Mar 12, 2013 11:24 pm
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.

Re: Ai deck builders

Posted: Wed Mar 13, 2013 12:29 am
by Zethfox
im weaking somethings about it now btw