The script reference says this about altars:
Yet trying to call setActivateAlways(true) on an altar causes an error ("attempt to call a nil value"). In the editor GUI the setting is present on alcove, but not on altar.Altars share the same scripting API with Alcoves. The only difference is that an alcove is a wall item while an altar is placed in the middle of a cell.
The second line in this script will cause the error:
Code: Select all
testAlcove:setActivateAlways(true)
testAltar:setActivateAlways(true)