silentscience
Chieftain
- Joined
- Oct 27, 2016
- Messages
- 41
anyone can make a mod to make army organize into groups and auto attack?
Not exactly sure if I understand what you're asking. Are you wanting combat units to basically auto attack if enemy comes near, or are you wanting them to actively seek out enemies (sorta like auto-explore but for combat)?
Not sure about doing all that currently without mod tools, especially the grouping part. Might could do the auto-attack, similar to way I currently do the fortified alert, but would have to happen at turn begin or end. Also, running a check of all combat units against all other units in range might slow turns down a bit, especially in later game and on larger maps.
That is the part I am worried about. Until I look into it farther and test out, my first thought was to run a check against combat odds and if it was better than a certain threshold then issue attack command, but there is definitely no way I could currently (or probably ever) allow for all the factors a human would take into consideration for when to attack.
The game developers struggled to do this with the AI. Look at how bad they are at fighting? Are you sure you want your units to be so brain dead?
In theory it should be possible to use the existing AI that the computer uses and just apply it to your own forces. Almost certainly not with current tools though.
The game developers struggled to do this with the AI. Look at how bad they are at fighting? Are you sure you want your units to be so brain dead?
In theory it should be possible to use the existing AI that the computer uses and just apply it to your own forces. Almost certainly not with current tools though.
That is the part I am worried about. Until I look into it farther and test out, my first thought was to run a check against combat odds and if it was better than a certain threshold then issue attack command, but there is definitely no way I could currently (or probably ever) allow for all the factors a human would take into consideration for when to attack.
I had a little time to look at it today, and it's nowhere near complete, but here is a little test mod if you want to test it out. You use the guard button in action panel(or G) and units will fortify until they see an enemy, then they will attack if within range as long as their strength is greater, or health not too low. If their strength is low they will head to nearest city. Of course, all hopefully.
I had a little time to look at it today, and it's nowhere near complete, but here is a little test mod if you want to test it out. You use the guard button in action panel(or G) and units will fortify until they see an enemy, then they will attack if within range as long as their strength is greater, or health not too low. If their strength is low they will head to nearest city. Of course, all hopefully.
This was just to test the attacking call. The units will only move if they can attack other unit, ranged units will attack if in range. I still have to work on the health bit, I have to work tomorrow, but will have time Wednesday.
This was just to test the attacking call. The units will only move if they can attack other unit, ranged units will attack if in range. I still have to work on the health bit, I have to work tomorrow, but will have time Wednesday.
Thank-you. I got burned out with modding working on a humongous mod for civ v(something like 5,000 files--Not all me had been a community project), so I'm trying to keep it simple for a while.I commend your efforts to keep creating these little mods/tweaks ect.
okay,i think health lost value can custom is better