Serp
King
- Joined
- Apr 1, 2015
- Messages
- 666
Hi 
1) Is it possible to change the fighting behaviour of the AI with xml/sql or lua scripts? If not, whoward are you there?
Is it possible to change it in your DLL with another mod?
I noticed that, at least barbarians melee units do not attack my range units, even if they stand next to them. Only Mounted and other range units do attack my range units.
I'm not sure, which restriction is forcing them to do this, but I guess it is something like "I'm only a warrior and this is a marksmen. Because marksmen is a heavy upgrade, I won't attack him". But of course this tactic is rubbish against range units.
So I would like to see the following changes:
2) I would like to change the XP system a bit. As a base value, Archers get 2 XP per shot. Now you can add some promotions or other things, that gives a % bonus on the XP. But the problem ist, that it is round off. So a 40% more XP bouns, wuold result in 2,8 XP per shot, which is rounded to 2XP per shot.
Now I see two possibilities:

1) Is it possible to change the fighting behaviour of the AI with xml/sql or lua scripts? If not, whoward are you there?

I noticed that, at least barbarians melee units do not attack my range units, even if they stand next to them. Only Mounted and other range units do attack my range units.
I'm not sure, which restriction is forcing them to do this, but I guess it is something like "I'm only a warrior and this is a marksmen. Because marksmen is a heavy upgrade, I won't attack him". But of course this tactic is rubbish against range units.
So I would like to see the following changes:
- AI melee units should attack range units regardless of the update level. Maybe it would be good, if in ~70% of the time they do attack. In 20% they do fortify and 10% they move away.
- If the barbarian is in a camp, they also should attack range units standing next to them, without leaving the camp.
2) I would like to change the XP system a bit. As a base value, Archers get 2 XP per shot. Now you can add some promotions or other things, that gives a % bonus on the XP. But the problem ist, that it is round off. So a 40% more XP bouns, wuold result in 2,8 XP per shot, which is rounded to 2XP per shot.
Now I see two possibilities:
- Make decimal numbers up to 2 decimal places possible.
- Or multiply the total needed XP by 10 or 100, and of course also the XP per shot, so we don't have this rounding problem anymore.