You are in a big room.
>examine wall
You can't see that here.
<function name="OnEnterRoom"><![CDATA[ MoveObject (wall, player.parent) if (StartsWith(player.parent.name, "forest_")) {
MoveObject(booth, player.parent)
} char = FindChar()
if (char <> null) {
if (DoesInherit(char, "female")) {
MoveObject(womans_clothes, player.parent)
}
else {
MoveObject(mans_clothes, player.parent)
}
} <function name="FindChar" type="object">
list = ScopeVisible()
return (null)
foreach (obj, list) {
if (DoesInherit(obj, "male") or DoesInherit(obj, "female")) {
return (obj)
}
}
</function>
<function name="DoAskTell" parameters="object, text, property, defaultscript, defaulttemplate"><![CDATA[
...
if (not handled) {
if (HasScript(object, defaultscript)) {
do (object, defaultscript)
}
else {
DoDefaultAskTell (object, text, property)
}
}
]]></function> <function name="DoDefaultAskTell" parameters="object, text, property"><![CDATA[
handled = false
maxstrength = 0
match = null
text = LCase(text)
dictionary = GetAttribute(default_asks, property)
foreach (keywords, dictionary) {
if (GetKeywordsMatchStrength(LCase(keywords), text) > maxstrength) {
match = ScriptDictionaryItem(dictionary, keywords)
}
}
if (match <> null) {
invoke (match)
handled = true
}
if (not handled) {
msg ("That is not a recognised topic.")
}
]]></function> <command name="smell_subverted">
<pattern>smell; sniff</pattern>
<script>
if (HasString(player.parent, "smell")) {
msg (player.parent.smell)
}
else if (StartsWith(player.parent.name, "forest_")) {
msg ("You can smell the trees.")
}
...
else if (HasString(player.parent.parent, "smell")) {
msg (player.parent.parent.smell)
}
else {
msg ("You sniff the air, but can detect no unusal smells.")
}
</script>
</command>The Pixie wrote:Alex has scheduled an integrated spell check for version 5.2.
http://quest.codeplex.com/workitem/836
The Pixie wrote:I am submitting my game for a competition (IFcomp) next week, so I cannot wait that long!