
King Karolus Servant
Posts: 2154
Joined: 29 Aug 2007, 22:00
KaM Skill Level: Veteran
Location: In his dark thunderstormy castle
Static script attacks
I use these attacks in the script for player A:
- Code:
!SET_AI_ATTACK TYPE 0 !SET_AI_ATTACK TOTAL_AMOUNT 36 !SET_AI_ATTACK TROUP_AMOUNT 0 1 !SET_AI_ATTACK TROUP_AMOUNT 1 2 !SET_AI_ATTACK TROUP_AMOUNT 2 0 !SET_AI_ATTACK TROUP_AMOUNT 3 0 !SET_AI_ATTACK TARGET 2 SET_AI_ATTACK POSITION 133 35 !COPY_AI_ATTACK 0 !SET_AI_ATTACK TYPE 0 !SET_AI_ATTACK TOTAL_AMOUNT 36 !SET_AI_ATTACK TROUP_AMOUNT 0 1 !SET_AI_ATTACK TROUP_AMOUNT 1 1 !SET_AI_ATTACK TROUP_AMOUNT 2 1 !SET_AI_ATTACK TROUP_AMOUNT 3 0 !SET_AI_ATTACK TARGET 2 SET_AI_ATTACK POSITION 133 35 !COPY_AI_ATTACK 1
Now here is the thing: as it is now, TOTAL_AMOUNT is the total amount of units on defence positions with importance 1. What TOTAL_AMOUNT should be is the total amount of units that attack. So with the first attack, the AI should attack with 36 soldiers spread out over 2 groups of anti-cavalry units and 1 group of melee. Whether that's 35 pikemen and 1 sword fighter doesn't matter, but it must be 36 units. What happens in the Remake is that the AI attacks with 16 units (4 crossbowmen, 8 pikemen, 4 sword fighters, both attacks get triggered).