Pazyryk
Deity
- Joined
- Jun 13, 2008
- Messages
- 3,584
My mod has the whole archer line-up acting like G&K machine gunners (range 1). I want these units to be able to capture cities if they knock them down to 0 hp.
I've already devised a way to do this, but I was hoping someone would tell me a better way (without need for plot iteration):
No AI needed here because AI will move these adjacent to cities due to having only range 1 (I don't allow any range extending promos for these). I just wish the AI was capable of move & shoot in one turn.
I've already devised a way to do this, but I was hoping someone would tell me a better way (without need for plot iteration):
- Use Events.EndCombatSim to identify any archer that has made an attack and is alive (attacking unit alive, took no damage, and has special PROMOTION_ARCHER_ CONQUEROR).
- Iterate through all adjacent plots and look for city with 0 hp.
- If there is one: convert city, kill remaining units, move archer to plot.
No AI needed here because AI will move these adjacent to cities due to having only range 1 (I don't allow any range extending promos for these). I just wish the AI was capable of move & shoot in one turn.