Map Database  •  FAQ  •  RSS  •  Register  •  Login

New command, !SET_AI_ATTACK_FACTOR?

<<

Litude

User avatar

King Karolus

Posts: 1231

Joined: 01 May 2006, 22:00

Location: Finland

Post 23 Sep 2008, 15:15

New command, !SET_AI_ATTACK_FACTOR?

I was looking through the script of mission 17 TSK and I noticed an AFAIK unknown command, "!SET_AI_ATTACK_FACTOR 200" (Lewin's editor discarded it, hence the conclusion).
Now I haven't tested whether this command actually does something but it is present in the game code so I assume it does actually have an effect on the AI. Anyone here know anything more about it?
<<

kuba11100

Sword Fighter

Posts: 286

Joined: 16 Jul 2008, 22:00

Location: Poland

Post 23 Sep 2008, 16:01

I've found some unknown commands when watching the main exe in hex editor, there was also a discussion about them in some old topic. All the commands looked like parts of another, though. If only I had more time to check them out... Is that a normal command, or a 'lost feature'...
<<

Thunderwolf

User avatar

Crossbowman

Posts: 233

Joined: 22 Jan 2008, 23:00

Location: Netherlands

Post 25 Sep 2008, 12:42

If I get the time, I will check out this command. It could be something usefull.
~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: 3821

Joined: 16 Sep 2007, 22:00

Location: Australia

KaM Skill Level: Skilled

Post 26 Sep 2008, 04:24

Re: New command, !SET_AI_ATTACK_FACTOR?

Litude wrote:I was looking through the script of mission 17 TSK and I noticed an AFAIK unknown command, "!SET_AI_ATTACK_FACTOR 200" (Lewin's editor discarded it, hence the conclusion).

He he, my editor shouldn't be taken as the reference of known commands, but your right, no one knows what it does.
I was unaware that it was used in any of the missions, I know about it from the EXE but I simply assumed it wasn't enabled.

Litude wrote:Now I haven't tested whether this command actually does something but it is present in the game code so I assume it does actually have an effect on the AI. Anyone here know anything more about it?

I'd say it does do something, but don't ask me what.
Here are my ponderings... The word factor was used in WORKER_FACTOR and so it is probably something to do with the AIs character. Factor kind of implies that it is not a direct value, just like WORKER_FACTOR. (which goes 1-9 and represents how many serfs they have)
Maybe it effects how the AI behaves when the troops are not in defence positions? (notice that this mission 17 has no defence positions marked)
I can't remember this mission at all, but the AI only has two attacks, and they take 1 mounted group. This hardly covers there army, so maybe this command tells the AI to attack you even without any marked attacks?
Or doesn't the AI attack you in this mission?

Just some ideas... If someone works it out then I'll happily add it to my editor.
Lewin.

Return to Map Design

Who is online

Users browsing this forum: No registered users and 4 guests