Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
AI Availability
Moderator: CCGHQ Admins
AI Availability
by 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?
-
Scion of Darkness - Posts: 235
- Joined: 27 Aug 2012, 13:14
- Has thanked: 17 times
- Been thanked: 23 times
Re: AI Availability
by 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...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 21 guests