objects/obj_banner.lua

classes.obj_banner = {
					_properties = { name = "banner", longname = "a banner with writing", desc = "You see a brightly coloured banner hung across the wall, with writing on it. Maybe you should READ it?" }
				}
				

function classes.obj_banner:_create(e)
	local obj = classes.default._create(self, e);
	obj._properties.text = e.ext.text;
	return obj;
end

function classes.obj_banner:read(e)
	if not self._properties.text then e.person:_tell("It's blank after all!"); return; end
	e.person:_action("reads the writing on the banner");
	e.person:_tell("The banner says '"..self._properties.text.."'");
end