PDA

View Full Version : Set Computer Process



clawcity
April 22nd, 2011, 15:21
G'day all. I'm updating my Hero Keeper (http://lanotd.viclan.org.au/site/index.php?page=downloads&type=entry&id=1&root=1) mod and I noticed in the level script it is possible to give the AI specific instructions via the SET_COMPUTER_PROCESS command. This looks like a pretty useful feature. Since I'm thinking of creating some maps when I finish updating my mod, I was wondering if there is a list of things you can tell the AI via this command?

Duke Ragereaver
April 22nd, 2011, 16:09
Sadly enough, the SET_COMPUTER_PROCESS documentation is rather limited. Still, it can be useful if you can figure it somehow. Other than building rooms, the only other process I use is the attack command, which is pretty vaguely described.

Look here (http://keeper.lubie.org/dk1_docs/dk_scripting_ref.htm#scrpt_group_compluter)

clawcity
April 22nd, 2011, 16:42
Thanks, that looks like it could be helpful.
On another note, the COMPUTER_PLAYER command apparently supports settings of 0, 1, 3, 4, 5 &10. I just noticed that level 8 (Tickle) has it set as COMPUTER_PLAYER(PLAYER1,2). Is this an error that was never fixed or is the manual wrong?

Duke Ragereaver
April 22nd, 2011, 17:17
Just look a little higher (http://keeper.lubie.org/dk1_docs/dk_scripting_ref.htm#scrpt_cmd_computer_player) up in the documentation. ;)

A little clarification about ''medium'' computers, I'm not really sure what defines this exactly. But I think medium computers are slow to respond to actions, generally speaking.

clawcity
April 23rd, 2011, 04:25
That's heaps different to what's in the manual. I assume this is a reliable site?

Duke Ragereaver
April 23rd, 2011, 06:45
Yes, I use it all the time when creating maps.