diff -r 000000000000 -r cc66ad6b0d75 objects/obj_banner.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/objects/obj_banner.lua Sat Mar 27 17:43:08 2010 +0000 @@ -0,0 +1,17 @@ + +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 \ No newline at end of file