[SOLVED]
Hi all,
I’ve nearly driven myself mad searching for an answer to this one for the past few days:
I would very much like Inform 7 to
understand "ASK [something] TO [text]" and "TELL [something] TO [text]" as {ASKING IT TO TRY}.
.
It seems that ‘asking it to try’ isn’t recognized, unlike ‘asking it about’, ‘asking it for’, ‘telling it about’, or ‘answering it that’, so I know ‘asking it to try’ is incorrect. (I just put it there as a placeholder.)
I’m also not certain that [text] is the correct grammar token.
I currently have this dirty hack setup for asking or telling the NPC to jump or attack:
[code]
Understand “ask [something] to [text]” as answering it that.
Understand “tell [something] to [text]” as answering it that.
instead of answering something (called the instructed) that something when the player’s command includes “say/tell”:
say “Try entering that command this way: [The instructed], [the topic understood]”.
before trying answering something (called the instructed) that something when the player’s command includes “jump” and the player’s command includes “say/tell”:
try the instructed jumping;
rule succeeds instead.
commanding a kill is an action applying to two things.
understand “tell [something] to kill/attack/murder/fight/shoot/cut/stab/decapitate/destroy [something]” as commanding a kill.
carry out commanding a kill:
try asking the noun to try attacking the second noun.[/code]
This pulls it off, but I’d have to write a line for each action that the NPC could possible perform, and I bet there is a much more precise method.
Anyone every dealt with this or have any ideas (or even good links)?
Thanks in advance!