Map Database  •  FAQ  •  RSS  •  Login

Defense-positions order changes entire mission?

<<

Thunderwolf

User avatar

Crossbowman

Posts: 233

Joined: 22 Jan 2008, 23:00

Website: http://thunderwolf.freehost10.com/KaMMissionBuilder/index.php

Location: Netherlands

Post 20 Nov 2008, 14:07

Defense-positions order changes entire mission?

I have been playing around with my defense positions in a mission. I find that the order of the defense positions can have a large effect on the start of the mission.

Example:

2 meelee troops:
  Code:
!SET_GROUP 15 86 106 7 4 12 !SET_GROUP 16 62 122 6 4 8 [/quote] attack used: [code] !SET_AI_ATTACK TYPE 0 !SET_AI_ATTACK TOTAL_AMOUNT 8 !SET_AI_ATTACK TROUP_AMOUNT 0 1 !SET_AI_ATTACK TROUP_AMOUNT 1 0 !SET_AI_ATTACK TROUP_AMOUNT 2 0 !SET_AI_ATTACK TROUP_AMOUNT 3 0 !SET_AI_ATTACK TARGET 0 !COPY_AI_ATTACK 0 [/quote] 3 positions: [code] !SET_AI_DEFENSE 62 122 6 0 15 0 !SET_AI_DEFENSE 86 106 7 0 20 0 !SET_AI_DEFENSE 56 113 0 0 20 1 [/quote] effect: troops will stand on the first 2 positions, meaning they WON'T attack. 3 positions (another order): [code]  !SET_AI_DEFENSE 62 122 6 0 15 0 !SET_AI_DEFENSE 56 113 0 0 20 1 !SET_AI_DEFENSE 86 106 7 0 20 0 [/quote] effect: one troop will move to a defense position, the other one goes attacking. 3 positions (and another): [code] !SET_AI_DEFENSE 56 113 0 0 20 1 !SET_AI_DEFENSE 62 122 6 0 15 0 !SET_AI_DEFENSE 86 106 7 0 20 0 [/quote] effect: one troop will move to a defense position, the other one goes attacking. the troop who is defending will later on attack as well.
~old sig
MissionBuilder v0.9f2 UPDATED!!
Defend The Outer Colony. fight for your king and uncover the secrets of this land.
Temporary version at
http://thunderwolf.x10hosting.com/index.php
"You can't defeat me, I've played Knights and Merchants"
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 21 Nov 2008, 03:50

That's only logical.
The AI will place troops at the defence positions in the order that they are defined. If you place the front line positions first then yes, they won't attack because they need back line troops.

That's why in missions such as 12 TSK, the green enemy will occupy defence positions in order, from his base and drawing closer and closer to yours. He puts troops at defence positions in the order they are defined.

Make sense doesn't it?
Lewin.

Return to “Map Design”

Who is online

Users browsing this forum: Google [Bot] and 20 guests