Stack Exchange Network
Stack Exchange community consists of 182 Q&A communities together with Stack Overflow, the biggest, most trusted on-line group for builders to study, share their data, and construct their careers.
Game Development Stack Exchange is a query and reply website for skilled and unbiased recreation builders. It solely takes a minute to enroll.
Anybody can ask a query
Anybody can reply
The finest solutions are voted up and rise to the highest
I began making a Vue3 model of the traditional Sid Meier recreation Colonization. I’ve the fundamental participant mechanics in place and even created a map editor. So I’ve 3 of the 4X in place: Explore, Expand and Exploit, what’s lacking is Exterminate. But right here it will get difficult as I want an AI for the natives and different European nations. I do not even know the place to begin. I’ve seen this query however that is extra about path discovering and actual time AI. What I want is a tactical AI in a flip based mostly surroundings. As I do not know what the unique recreation did I can solely guess a number of factors.
- Place a number of vilages in the identical common space of the map -> I believe with some random logic I ought to be capable of try this (I already use seedrandom for putting the particular assets on the map)
- Character motion -> Already will get a bit trickier: what boundaries ought to the motion have
- Agression -> When are they getting pissed by the Europeans and begin attacking and find out how to decide how briskly they will produce models
- The fundamental from the natives apply as properly, however they should discovered their settlements with some logic behind, so no easy randomization. Maybe near particular assets
- Different behaviours from the unique recreation, eg. the Spanish are agressive in opposition to natives, the Dutch focus totally on commerce, and so forth.
- Diplomacy between one another and the participant
- I believe this ought to be simpler once more, simply add models to their military relying on the scale of the participant popoluation, cities and cash and assault the coastal cities in waves.
So my query is: find out how to implement such an AI?
You should log in to reply this query.