Is it possible to force an allied AI to use a specific custom made deck?

Pretty much what says in the title. Is it possible?

1 Like

Yes it is. I will give you an idea of how much control you have. The control you have over the AI’s deck-making is such that you can choose what cards to add to your deck based on the game type, the game mode, the number of players, the amount of starting resources, the random number generator (if you want to take decisions randomly), the civilizations of the allies and the enemies, the map type, the map name, and pretty much any factor that you have in mind, obviously including whether there’s a human ally or not. You can even memorize each game the AI plays and do something along the lines of “if we have never played against this person, the first strategy should be rushing” or “in the last 3 games, the strategy was to fast-age3 and it kept failing… maybe use a different strategy this time?” And adjust the deck accordingly — all handled by the code, obviously, i.e. without updating the AI files. Heck, there’s even a possibility that you can cheat by overflowing the deck with more cards than the maximum allowed — unless the devs have fixed this bug in DE.

I can’t show you any code because I suck.

But maybe @AssertiveWall20 can help?

2 Likes

Everything @AlistairJah said is true, but I want to add a couple words of warning. I consider deck building and card picking to be one of the most convoluted processes the AI goes through. Those two actions, building a deck and picking which cards to send is about as lengthy as the entire economic manage system and you’re likely going to have to rewrite a good chunk of it to get it completely specific. Forcing a few cards here or there will be relatively straightforward, though, and you should be able to make those kinds of edits without breaking things.

If you’re less interested in diving into the code and just getting the end result, @EsteGringo came up with a system to create custom decks but I haven’t looked too much into how he does that or what you have to do to use that feature.

2 Likes

I belive that EsteGringo’s system don’t really work, as I followed it thoroughly, testing with all the “team bonus” cards, and I did not recive a single bonus.

Ay, here we go again.

@LtSturm1, my custom deck building system does work, but it requires an amount of technical skill that is probably beyond that of the average player of the game. I am not saying that as an insult either. If you are not familiar with XML or HTML types of languages, then understanding how to put these custom decks together will not likely be easy.

Instead of just saying it doesn’t work, why not send me the deck you tried to build. When I have time, I will find what you did incorrectly so your deck may work.