kts.LimitTotalMonsters

Name

kts.LimitTotalMonsters – place a limit on the total number of monsters in the dungeon

Synopsis

kts.LimitTotalMonsters(limit)

Description

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.

Return Value

No value is returned.

Errors

An error results if the input parameter is not an integer.

Notes

If the limit value is set to a negative number, then that is the same as not setting a limit at all.

See Also

kts.AddMonster

kts.AddMonsterGenerator

kts.AddMonsters

kts.LimitMonster

kts.MonsterType

kts.SetZombieActivity