PDA

View Full Version : Keeper building 2x2 rooms.



Woudo
September 11th, 2014, 17:00
Check this out. I took one of the levels from Deeper Dungeons and swapped the player out for an AI. I changed imp allegiance to player 2, CTRL-F'd for "player0" in the script and swapped it to "player2" and carved a little viewing both for the actual player. Just for kicks, see how far the AI got in the players shoes before it killed itself on heroes or something.

The newly placed AI is only building 2x2 rooms and occasionally a room that is slightly larger (say, a 3x4 lair).

I just updated to the latest nightly build, ver 0.4.5.1385 and it's still happening.

It's not worth putting up on the issue board since i've honestly never seen this happen before.

1519

Krizzie
September 12th, 2014, 17:22
I've tried different things in the script but it indeed keeps making 2x2 basic rooms. If you increase the max amount of creatures it does make a bigger lair.

It also makes a 6x6 workshop and 3x4 Barracks, Tortureroom etc..

The other AI does make 5x5 rooms funny enough..

What does the extra number behind the player mean here btw?


COMPUTER_PLAYER(PLAYER1,1)
COMPUTER_PLAYER(PLAYER2,2)

Alliances or something? It doesn't seem to do anything when I change it..

Mothrayas
September 12th, 2014, 17:38
The number argument passed in the COMPUTER_PLAYER function determines the type of computer player. See the scripting reference (http://keeper.lubiki.pl/dk1_docs/dk_scripting_ref.htm#scrpt_cmd_computer_player) about it for more information.

And yeah, I know the AI used to build certain rooms with size dependent on the max creature count set for that player. AI type also determines how big or small it makes certain rooms.