Skip to content

Instantly share code, notes, and snippets.

@sarah-j-smith
Created November 4, 2015 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarah-j-smith/a309e8331613060d3f5a to your computer and use it in GitHub Desktop.
Save sarah-j-smith/a309e8331613060d3f5a to your computer and use it in GitHub Desktop.
DemoLookProblem
<!--Saved by Quest 5.6.5621.18142-->
<asl version="550">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="DemoLookProblem">
<gameid>dd090fb4-755b-4ed8-8a78-debf97652988</gameid>
<version>1.0</version>
<firstpublished>2015</firstpublished>
<appendobjectdescription />
</game>
<object name="room">
<inherit name="editor_room" />
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
</object>
<exit alias="out" to="garden">
<inherit name="outdirection" />
</exit>
<object name="walls">
<inherit name="editor_object" />
<look>By heck, its getting boring sitting here looking at the walls. I know, lets {command:look south:look out} at the garden.</look>
<usedefaultprefix type="boolean">false</usedefaultprefix>
</object>
<exit name="south" alias="south" to="garden">
<inherit name="southdirection" />
<lookonly />
<look type="script">
OutputTextNoBr ("Looking out the front window you see the garden outside. ")
foreach (obj, ScopeVisibleNotHeldForRoom(garden)) {
if (HasAttribute(obj, "inroomdescription")) {
msg (obj.inroomdescription)
}
}
</look>
</exit>
</object>
<object name="garden">
<inherit name="editor_room" />
<object name="pig">
<inherit name="editor_object" />
<look>Harold is one charming pig. And quite well fed.</look>
<inroomdescription>Snuffling about and generally looking adorable is Harold the very charming {object:pig}. He's eaten approximately 2/3 of your garden leaving only the {object:silverbeet} and {object:broad_beans}.</inroomdescription>
</object>
<exit alias="in" to="room">
<inherit name="indirection" />
</exit>
<object name="silverbeet">
<inherit name="editor_object" />
<inroomdescription>Silver beet abounds in iron, and is extremely healthy - but not so tasty. </inroomdescription>
</object>
<object name="broad_beans">
<inherit name="editor_object" />
<alias>broad beans</alias>
<inroomdescription>Harold the pig does not like broad beans.</inroomdescription>
</object>
</object>
</asl>
@sarah-j-smith
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment