Scenery Tables: Difference between revisions

From IFWiki

No edit summary
 
(Adding the square brackets round Scenery Objects)
 
(7 intermediate revisions by 2 users not shown)
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:


<pre>
[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.


[Categories:Inform 7 Snippets]
Table of Scenery Objects
StagingAreaItem description
life "Life is a bore."
fun "Fun is cool."
</pre>
 
[[Category:Examples of Inform 7 code]]

Latest revision as of 23:23, 16 August 2020

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.

Table of Scenery Objects
StagingAreaItem		description
life			"Life is a bore."
fun			"Fun is cool."