kts.LimitTotalMonsters – place a limit on the total number of monsters in the dungeon
kts.LimitTotalMonsters(limit)
Sets the maximum number of monsters that can exist in the dungeon at any one time. The only argument is the limit value (as an integer).
Note that if monsters are placed "manually" using kts.AddMonster then it is possible to exceed the maximum; that function ignores any monster limits that are in place. However, the "automatic" monster generation (via kts.AddMonsterGenerator or kts.SetZombieActivity) will respect the limits, and will not generate further monsters if the monster limit has already been reached.
This function can only be called during game setup – it is not possible to change the monster limits mid-game.
No value is returned.
An error results if the input parameter is not an integer.
If the limit value is set to a negative number, then that is the same as not setting a limit at all.