| 1 | classes.obj_banner = { |
| 2 | _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?" } |
| 3 | } |
| 4 | |
| 5 | |
| 6 | function classes.obj_banner:_create(e) |
| 7 | local obj = classes.default._create(self, e); |
| 8 | obj._properties.text = e.ext.text; |
| 9 | return obj; |
| 10 | end |
| 11 | |
| 12 | function classes.obj_banner:read(e) |
| 13 | if not self._properties.text then e.person:_tell("It's blank after all!"); return; end |
| 14 | e.person:_action("reads the writing on the banner"); |
| 15 | e.person:_tell("The banner says '"..self._properties.text.."'"); |
| 16 | end |