Scenery Tables: Difference between revisions
From IFWiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
The following Inform 7 sample shows how to define room scenery objects using a table: | The following Inform 7 sample shows how to define room scenery objects using a table: | ||
< | <nowiki> | ||
"Scenery Objects" | "Scenery Objects" | ||
Line 13: | Line 13: | ||
life "Life is a bore." | life "Life is a bore." | ||
fun "Fun is cool." | fun "Fun is cool." | ||
</ | </nowiki> | ||
[ | [Category:Inform 7 Snippets] |
Revision as of 19:46, 2 May 2006
The following Inform 7 sample shows how to define room scenery objects using a table:
"Scenery Objects" The Staging Area is a room. A SceneryItem is a kind of thing. It is scenery. Some SceneryItems in the Staging Area are defined by the Table of Scenery Objects. The Kitchen is west of the Staging Area. Table of Scenery Objects StagingAreaItem description life "Life is a bore." fun "Fun is cool."
[Category:Inform 7 Snippets]