Help with custom commands
mostlyuseless
29 Nov 2012, 01:39Hi, I used an ancient version of Quest a few years ago and having just downloaded Quest 5. I'm liking the interface but having trouble working a few things out.
Right now I want to create a typable command for looking out of a window so the player can type "look (ANYTHING) window" and it will run the same script, avoiding the need to create a bunch of commands. For example, they could type 'look through window', 'look out of window', or even 'look circus window', the outcome will be the same regardless. In the old Quest (2.0, I think) #...# meant any word or group of words could be used. How do I do this in Quest 5?
Apologies if this has been answered elsewhere, I've scoured the forums and read the custom commands wiki page but found nothing. Thanks!
Right now I want to create a typable command for looking out of a window so the player can type "look (ANYTHING) window" and it will run the same script, avoiding the need to create a bunch of commands. For example, they could type 'look through window', 'look out of window', or even 'look circus window', the outcome will be the same regardless. In the old Quest (2.0, I think) #...# meant any word or group of words could be used. How do I do this in Quest 5?
Apologies if this has been answered elsewhere, I've scoured the forums and read the custom commands wiki page but found nothing. Thanks!

jaynabonne
29 Nov 2012, 06:37Try: look #text# window
BTW, be sure to give the command a script to run, or you'll see complaints of a bad object reference.
BTW, be sure to give the command a script to run, or you'll see complaints of a bad object reference.
mostlyuseless
30 Nov 2012, 00:21Perfect, many thanks for your help!

guzmere
30 Nov 2012, 07:05jaynabonne grrrrrr, Like mostlyuseless, I too for the past 10 moths have been using multiple custom commands like ( open window, open the window, open the glass window etc etc. But reading your reply has got me headbutting the walls going derr derr. I know that you can use the #text# when you are talking to someone but I didn't know you could use it like that. still you live and learn. That will help tremendously, maybe I should have read the instructions better on the packet before embarking on this journey. But that's me .Thanks again have a good day. Terry





The Pixie
30 Nov 2012, 08:25guzmere, you would probably do better to set the window as Openable/Closeable on the Container tab (you need to set the isopen attribute in your open and close scripts), and set "glass window" as an alternative name on the Object tab. The word "the" seems to get ignored autmatically.
For a commands not already implemented:
1. Go to the "Verb" tab and create a new verb (put in as many synonyms as you can, separated by semi-colons), with an appropriate script
2. Go to the "Object" tab and add synonyms for the object in the top box. Add your new verb to the display and inventory verbs.
For a commands not already implemented:
1. Go to the "Verb" tab and create a new verb (put in as many synonyms as you can, separated by semi-colons), with an appropriate script
2. Go to the "Object" tab and add synonyms for the object in the top box. Add your new verb to the display and inventory verbs.

guzmere
30 Nov 2012, 08:44Thanks The Pixie for that I will look into it. It will certainly make things easier for me . I've always done things the long winded way round, so to hear that was no surprise to me. Once again many thanks Terry.
P.S. Have a good day.




P.S. Have a good day.