kts.AddMonster

Name

kts.AddMonster – add a monster to the dungeon

Synopsis

result = kts.AddMonster(pos, monster_type)

Description

If possible, a monster of the given MonsterType will be created, and placed into the dungeon at position pos.

If not possible (for example, because there is no room at position pos), then nothing will happen.

Return Value

If placement succeeds, a Creature userdata object, representing the new monster, will be returned.

Otherwise, nil is returned.

Errors

If any of the input parameters are invalid then an error is raised.

See Also

kts.MonsterType

kts.AddMonsters