Here is a more complicated example that does it more simply:
<!--Saved by Quest 5.5.5328.26617-->
<asl version="550">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<template name="GoListHeader">Links:</template>
<game name="Making a text game look like a gamebook">
<gameid>a0d4b06b-2264-428a-bd5d-49c4c30a15f6</gameid>
<version>1.0</version>
<firstpublished>2014</firstpublished>
<author>The Pixie</author>
<enablehyperlinks />
<showlocation type="boolean">false</showlocation>
<showcommandbar type="boolean">false</showcommandbar>
<showborder />
<autodescription />
<echocommand type="boolean">false</echocommand>
<autodisplayverbs />
<attr name="autodescription_description" type="int">1</attr>
<attr name="autodescription_youarein" type="int">0</attr>
<attr name="autodescription_youcansee" type="int">0</attr>
<attr name="autodescription_youarein_useprefix" type="boolean">false</attr>
<start type="script">
</start>
<showpanes type="boolean">false</showpanes>
</game>
<object name="room">
<inherit name="editor_room" />
<description>You wake up and sunlight is stream in the window. It is a fine day.</description>
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
<dressed type="boolean">false</dressed>
<showered type="boolean">false</showered>
<snoozecount type="int">0</snoozecount>
</object>
<exit alias="Take a shower" to="take_a_shower" />
<exit alias="Get dressed" to="get_dressed" />
<exit alias="Have breakfast" to="have_breakfast" />
<exit alias="Press snooze" to="snooze" />
</object>
<object name="take_a_shower">
<inherit name="editor_room" />
<firstenter type="script">
player.showered = true
</firstenter>
<description>A brisk shower is just what you eed to wake you up.</description>
<exit alias="Get dressed" to="get_dressed" />
<exit alias="Have breakfast" to="have_breakfast" />
</object>
<object name="snooze">
<inherit name="editor_room" />
<description>It is too earlier! you press snooze on the alarm and go back to sleep.</description>
<enter type="script">
player.snoozecount = player.snoozecount + 1
</enter>
<exit alias="Wake" to="room" />
</object>
<object name="get_dressed">
<inherit name="editor_room" />
<description>You quickly put on some random clothes</description>
<firstenter type="script">
player.dressed = true
</firstenter>
<exit alias="Have breakfast" to="have_breakfast" />
</object>
<object name="have_breakfast">
<inherit name="editor_room" />
<description type="script"><![CDATA[
msg ("You head down to breakfast.")
if (not player.dressed) {
msg ("'Why are you naked?' says Ben.")
}
if (not player.showered) {
msg ("Linda sniffs the air. 'Have you had a shower?' she asks doubtfully.")
}
if (player.snoozecount > 5) {
msg ("'You should've been down more than an hour ago,' says Pat.")
}
else if (player.snoozecount > 1) {
msg ("'Here at last,' says Pat.")
}
else {
msg ("'Good to see you're prompt,' says Pat.")
}
]]></description>
</object>
</asl>