Not really knowing what the reaction of this gruff, shadowy person might be you speak in a cautioned voice, asking about {object:fog, wall, corridor, door, stranger}{once:Overcoming your initial shock you begin to formulate many questions you would like to ask this gruff, shadowy stranger.} {object:stranger}SwitchOn (leapinter2b)
NewText (speak)
msg ("Not really knowing what the reaction of this gruff, shadowy person might be you speak in a cautioned voice, asking about {command:leapinterdoor:the door}")msg ("You ask'" + if there is an exit from this corridor? + "'") <object name="stranger">
<inherit name="editor_object" />
<usedefaultprefix type="boolean">false</usedefaultprefix>
<scenery />
<gender type="string"></gender>
<article type="string"></article>
<alt type="stringlist">
<value>owner of voice</value>
<value>person</value>
<value>man</value>
<value>owner of deep voice</value>
</alt>
<displayverbs type="stringlist" />
<usestandardverblist type="boolean">false</usestandardverblist>
<useindividualverblist type="boolean">false</useindividualverblist>
<look><![CDATA[{once:Overcoming your initial shock you begin to formulate many questions you would like to ask this gruff, shadowy stranger.} {object:stranger}<br/><br/>]]></look>
<leapdoor type="simplepattern">leapinterdoor</leapdoor>
<speak type="script">
SwitchOn (leapinter2b)
NewText (speak)
</speak>
<ask type="scriptdictionary">
<item key="corridor">
msg ("A yellow corridor")
</item>
<item key="wall">
msg ("as")
</item>
<item key="fog">
msg ("as")
</item>
<item key="door">
msg ("as")
</item>
<item key="mist">
msg ("as")
</item>
<item key="cloud">
msg ("as")
</item>
<item key="you">
msg ("as")
</item>
<item key="person">
msg ("as")
</item>
<item key="stranger">
msg ("as")
</item>
</ask>
</object>
<object name="wall3">
<inherit name="editor_object" />
<alias>wall</alias>
<alt type="stringlist">
<value>wall</value>
<value>walls</value>
<value>boundary</value>
<value>border</value>
<value>edge</value>
</alt>
<usedefaultprefix type="boolean">false</usedefaultprefix>
<scenery />
<gender type="string"></gender>
<article type="string"></article>
<look>The wall here is very hard and covered with a thick, wavy, yellow cloud which seems to mock the darkness of the corridors other wall.</look>
<kick>You nearly break all of your toes against the hard surface.</kick>
<rub>The wall is very strong, it feels like it is made from huge, well crafted stone blocks forming a formidable barrier.</rub>
<touch>The wall is very strong, it feels like it is made from huge, well crafted stone blocks forming a formidable barrier.</touch>
<punch>Left with nothing but bloody knuckles you discontinue this absurd behaviour.</punch>
</object>
<object name="leapinter2b">
<inherit name="editor_object" />
<inherit name="switchable" />
<visible type="boolean">false</visible>
<usedefaultprefix type="boolean">false</usedefaultprefix>
<scenery />
<gender type="string"></gender>
<article type="string"></article>
</object>
</object>
<verb>
<property>ask</property>
<pattern>ask</pattern>
<defaultexpression>"You can't ask " + object.article + "."</defaultexpression>
</verb>
<command name="leapinterdoor">
<unresolved type="string"></unresolved>
<pattern>door#text#</pattern>
<script>
msg ("Is there an exit from this corridor?")
</script>
</command>
<function name="NewText" parameters="speak" type="string">
msg ("Not really knowing what the reaction of this gruff, shadowy person might be you speak in a cautioned voice, asking about the {object:leap door}")
</function>
</asl>Spindraft wrote:Is it possible to write code in C++ and paste it into the code here or no?
I'm not sure why, but I didn't get the email. (I even looked in my Spam folder.) Could you try again?
As far as the command goes, if it's set up properly, you should be able to just type it in at the command prompt as well (e.g. "leapinterdoor"). Be sure to set your command pattern to "leapinterdoor" to match what you're looking for.
BTW, if you're more familiar with C++, you will probably appreciate writing Quest outside the editor GUI interface. It may be good for novices, but I would go insane trying to code that way. ASLX files are just XML, so you can use any text editor you like (I use Visual Studio Express 2012). You can do some fairly powerful things with the scripts, once you learn the language. I'd be happy to assist a fellow coder if you'd like to go that route.