Noob question on the verb USE
sbangs
18 Nov 2010, 20:48Hi all, I am new to quest and hope I can get some help, which I'm sure is very simple, but I cant seem to solve it and I read all of the tutorial and doesn't address this issue.
I have an object, a Keg Tap. When a player enters "use tap" or "use keg" the quest engine replies with the default response.
I want a different response for the Keg Tap. So I add a use verb in the object with a direct print response of "try another verb!"
Because I want the player to type "pump keg" to get the desired effect.
Now here is what happens, after I add the use verb as stated above to the Keg Tap, it breaks the use verb for when the player has the pint glass and the keg is "on" and he types "use glass on keg" which should generate that the glass is filled up with beer. But if I have my added use verb on the keg object as stated above, all scripts that have a use item on another item fail to work.
I hope I have explained this well and any advice would be much appreciated.
Cheers,
Scott
I have an object, a Keg Tap. When a player enters "use tap" or "use keg" the quest engine replies with the default response.
I want a different response for the Keg Tap. So I add a use verb in the object with a direct print response of "try another verb!"
Because I want the player to type "pump keg" to get the desired effect.
Now here is what happens, after I add the use verb as stated above to the Keg Tap, it breaks the use verb for when the player has the pint glass and the keg is "on" and he types "use glass on keg" which should generate that the glass is filled up with beer. But if I have my added use verb on the keg object as stated above, all scripts that have a use item on another item fail to work.
I hope I have explained this well and any advice would be much appreciated.
Cheers,
Scott
Alex
19 Nov 2010, 20:14By adding your own "use" verb to the game, you override the built-in "use" behaviour.
To fix this, go to Game/Verbs in the tree, and delete the "use" verb.
Then, to achieve the result you want for the Keg Tap, set up a "use" response by selecting the object, then going to the Inventory tab and selecting "Edit 'Use' Details". Select "Use Keg Tap (on its own)" from the bottom of the screen and click the Edit script button, then add a script command to print the message you want.
To fix this, go to Game/Verbs in the tree, and delete the "use" verb.
Then, to achieve the result you want for the Keg Tap, set up a "use" response by selecting the object, then going to the Inventory tab and selecting "Edit 'Use' Details". Select "Use Keg Tap (on its own)" from the bottom of the screen and click the Edit script button, then add a script command to print the message you want.
sbangs
22 Nov 2010, 05:49Thanks much. I actually did this already, however I will do this again. I might have had another "use" verb set to another object in the game that remained. Not sure, but will do this again using your advice.
Thanks much,
Thanks much,
sbangs
22 Nov 2010, 18:51Hello again. I did what you said and I did try this before and here is what happened. When I add the use script on the keg object for "use on its own", I just have a print command that says "try another verb".
When I am in the same room as the keg and I type "use keg" I get the response, "you don't have that".
Thats the issue I cant seem to solve, as this item is not takable and just an object in the room that can be interacted with.
Thanks again for any assistance.
Scott
When I am in the same room as the keg and I type "use keg" I get the response, "you don't have that".
Thats the issue I cant seem to solve, as this item is not takable and just an object in the room that can be interacted with.
Thanks again for any assistance.
Scott
Alex
22 Nov 2010, 19:36Ah, I see. This is a limitation in Quest 4 - you can only "use" objects which are in your inventory. (In Quest 5 I have changed the design, so you can use any "reachable" object)
The way to work around this would be to set up a custom command for the same room. In QDK, select the room and go to the Advanced tab, and click "Edit Custom Player Commands". Add "use keg" as a custom command and enter your script there.
The way to work around this would be to set up a custom command for the same room. In QDK, select the room and go to the Advanced tab, and click "Edit Custom Player Commands". Add "use keg" as a custom command and enter your script there.
sbangs
22 Nov 2010, 19:53right, and I believe when I did this in the past, it broke the behavior of the object in inventory "use" command.
I will try this again, maybe I missed something.
I will try this again, maybe I missed something.
sbangs
22 Nov 2010, 19:54Ah, i never did custom command tied to the room. Will try that now.
sbangs
22 Nov 2010, 20:06Yep, worked like a charm! Thanks and thanks again.