Page 1 of 1

New command, !SET_AI_ATTACK_FACTOR?

PostPosted: 23 Sep 2008, 15:15
by Litude
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?

PostPosted: 23 Sep 2008, 16:01
by kuba11100
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'...

PostPosted: 25 Sep 2008, 12:42
by Thunderwolf
If I get the time, I will check out this command. It could be something usefull.

Re: New command, !SET_AI_ATTACK_FACTOR?

PostPosted: 26 Sep 2008, 04:24
by Lewin
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.
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.