yes, same warning. and this one gives me the:
(I only understood you as far as wanting to ask sp-and-so about something.)
Ok this time I have actually tried the code:
(understand $Words as $Action)
~(implicit action wants direction)
(implicit action is $Implicit)
*(understand $Words as topic $O) %% added for topic coverage
(recover implicit action $Implicit $O into $Action)
yes, that got it.
thx much, i would not have figured that out in a million years.
These short versions are hacks really, they work when everything is in order. But since they conflate topics and objects, one might get inconsistent parser error messages when a topic is given where an objects is expected. The first (long version) fixes that, it just needs itself fixed by removing the last (just) in (understand $Words as $Action); that would incur a slight performance loss in parsing. If you modify it directly in the library, even that performance penalty would go away.
(Obviously you need to use (asking for topic in [ask $Obj about []]) with the longer one.)
Edit: Typo.
hypothetically, is there a way to “turn off the parser” entirely and simply navigate via links?
i know that you can’t actually turn the parser off because it handles the actions triggered by the links. but is there a way to turn off the prompt/input while still allowing for action handling?
Not by default. But it wouldn’t be hard to mod the JavaScript interpreter for that. Just disable the text input field.
so, i don’t know anything about javascript.
i went into frontend.js and aaengine.js (i’m assuming it would have to be in one of those) and poked around and deleted/commented out some things but it didn’t work.
i also looked for something like “<input text” (which seems to be the usual way to input text with javascript). and it’s not there.
so it’s either more complicated or i just don’t know what i’m looking for, very likely the latter.
During gameplay, the input looks like this:
<input id="aainput" type="text" value="" autocomplete="off" spellcheck="false" autocorrect="off" aria-live="off" style="color: rgb(0, 0, 0); max-width: 488.683px; display: inline-block;">
It seems to be created by the createdoc function in frontend.js:
inp = document.createElement("input");
inp.setAttribute("id", "aainput");
inp.setAttribute("type", "text");
inp.setAttribute("value", "");
inp.setAttribute("autocomplete", "off");
inp.setAttribute("spellcheck", "false");
inp.setAttribute("autocorrect", "off");
inp.setAttribute("aria-live", "off");
main.appendChild(inp);
It doesn’t seem to be created anywhere else, so I think this is what you want to change. Just add a line saying:
inp.disabled = true;
And see if that works? I don’t have the Å-machine resources on hand to test this myself I’m afraid.
yes, that did the trick. thanks.