objects/obj_banner.lua

Sat, 27 Mar 2010 17:43:08 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 27 Mar 2010 17:43:08 +0000
changeset 0
cc66ad6b0d75
permissions
-rw-r--r--

Initial commit (importing from old SVN repo which got lost)


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

mercurial