Make the game understand "look object" the same way as "look at object"

torby
31 Dec 2014, 22:15
I've tried searching the forums all the documentation for this, but I'm almost shocked to see nobody has asked this before...

What I want the game to do is respond to "look object" the same as it would for "look at object" (and the same with "talk to", etc.).
I've tried all kinds of methods to make this happen, but I can't seem to get it working! I apologize if I've missed something vital, but it doesn't look like there's any info already written on this. Does someone know how to make this happen?

jaynabonne
31 Dec 2014, 22:26
First of all, I hope you're using the desktop (downloaded Windows) editor. If not, if you're using the online editor, then it's much harder to do what you want.

In the desktop Quest editor:

- Click on Filter in the bottom left, and then choose Show Library Elements. This will make all the internal core elements show up.
- Under Commands in the left pane, look for the "lookat" command. Select it.
- Click the Copy button in the top right of the window. This will put a copy of the command into your game file.
- Change the pattern to be:

look at #object#; x #object#; examine #object#; exam #object#; ex #object#; look #object#

That is the current pattern with "; look #object#" tacked on the end.
That should do it.

I believe "talk XXX" should already work, based on the verb templates I see. This is what's in the core English file:

  <verbtemplate name="speakto">speak to</verbtemplate>
<verbtemplate name="speakto">speak</verbtemplate>
<verbtemplate name="speakto">talk to</verbtemplate>
<verbtemplate name="speakto">talk</verbtemplate>

It supports all four of those variants for the "speakto" verb.

torby
31 Dec 2014, 22:34
Aha! That did the trick!

It looks like I was one step away, I was just looking in the templates list instead of the commands list :P

Thanks for your help! :)