Created
November 4, 2015 11:45
-
-
Save sarah-j-smith/a309e8331613060d3f5a to your computer and use it in GitHub Desktop.
DemoLookProblem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Game is uploaded on an unlisted link here: http://textadventures.co.uk/games/view/tzcm_qftoeqmbwy_1v8vog/demolookproblem
Forums post here:
http://forum.textadventures.co.uk/viewtopic.php?f=10&t=5594