It is currently 24 Aug 2019, 12:01
   
Text Size

AI Availability

Moderators: Xander9009, CCGHQ Admins

AI Availability

Postby Scion of Darkness » 20 Apr 2013, 01:04

This might be a silly question, but i've been wondering this, tonight when i was testing some of my decks, in one of the matches i played against my time lapse deck that revolves in gaining infinite turns, and the Ai was playing well, but when was time to use the combo eternal witness followed steps the AI wasn't able to perceive the the combo, is there any way to make the AI sometimes play in a defined order?
User avatar
Scion of Darkness
 
Posts: 235
Joined: 27 Aug 2012, 13:14
Has thanked: 17 times
Been thanked: 23 times

Re: AI Availability

Postby thefiremind » 20 Apr 2013, 09:58

The AI just "thinks" by scores, so if a card has a good score, it will be played: there's no clean way to make the AI wait for a certain card before playing another one. It's possible to "guide" the AI's decisions by changing the card code, as many challenge cards do, but this will probably make the card specific for that deck, or limit the AI's decisions too much. In your example, you could code a special version of Followed Footsteps with a TARGET_DEFINITION that restricts its possible targets to creatures called Eternal Witness if the AI controls at least one... but there could be a scenario where playing Followed Footsteps on something else would make the difference between winning or losing, and the AI will be forced to take the wrong decision.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 717 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 3 guests


Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 10 minutes)
Most users ever online was 287 on 31 Mar 2019, 04:11

Users browsing this forum: No registered users and 3 guests

Login Form