Log inGet started
Package

townsfolkKit.package

This package holds more than this page lists. See all of its files in its world.

README.md

api

The one interface to townsfolkKit, local TF = require("townsfolkKit.api"): add townsfolk, activity spots, homes and groups from code; read what each person is doing (TF.state, TF.census, TF.near); cause trouble townsfolk react to (TF.noise, TF.alarm, TF.addBody, TF.knockOut, TF.weaponDrawn); ask whether a player walks hidden inside a group (TF.groupOf, TF.isInGroup); switch the whole crowd's look (TF.setLook); listen to events (TF.on); and read the cost of the crowd (TF.stats). Called by game code, scene entrypoints and tests.