Verbs for 'use'

OhmSweetOhm
28 Aug 2013, 21:06
Hi Everyone, I'm OhmSweetOhm, a Quest newbie!

Please forgive me if this has been asked before before, but can anyone tell me how I can add verbs for the use command for a particular object.

I have a button, and I want the player to be able to use the commands 'use' 'press' or 'push'. Only with the button should the the other two verbs be able to be used instead of 'use'. I'm also not wanting the new verbs to appear in the sidebar... perhaps one of them, but not both.

Many thanks!

sonic102
29 Aug 2013, 19:15
So I assume you want 'use', 'push' and 'pull' to do the same thing?

Easy. You can use a function for this. Click the "Functions" button on the tree, and make a new function. Name it "buttonfunction" and leave the parameters empty. Put whatever you want in the script.

In the use script, double click the script that says "Call function" and type in "buttonfunction". Do the same for the two verbs.

To remove a verb, go the the Object tab, and under the Verbs list remove a verb.

OhmSweetOhm
30 Aug 2013, 21:11
Thanks for your help, this has kind of half worked for me. I am simply setting the flag for the object 'button' to 'on'

I can add the verbs 'push' and 'press' in the object verb menu and set the same script, but the verbs still appear as separate verbs in the object's pane.

I did it your way and set a function but all that appears to do is add another layer of code. What I really want to do, is effectively hide the other verbs. It's quite intuitive to type "press button" when you see a button, as opposed to 'use button' but it looks messy in the side pane with three or four verbs in there that all do the same thing. Is there any way you know of that I can hide them?

Many thanks again!

HegemonKhan
31 Aug 2013, 17:13
Unfortunately, I don't think you can have just the "button" Object itself act as your verb (doing the action you want from just clicking on it), save for any fancy coding methods that are way beyond my noob knowledge, lol. Either, you'll just have to be content with an "Explore" button (Object) -> and then clicking on the -> "Explore" button (Verb), or you can just work with the hyperlinks (the blue text) in the big text box in the middle, and not use the right panes~boxes at all. I'm sure I saw this being posted about on how to do it somewhere on here, lol.

Though, with some creativity, it's actually not bad to have an "button" Object with multiple "choice button" Verbs, as this allows you to group stuff, for examples:

Object: "equipment" button
Verbs: "equip", "unequip", "unequip_all", "imbue", "enchant", "remove_curse", "view_equipment", "put_equipment_in_storage", "get_equipment_from_storage", and etc etc etc

Object: "diplomacy" button
Verbs: "ask_about", "socialize", "insult", "intimidate", "threaten", "bribe", "blackmail", "flatter", "fluant", "flirt", "joke", "tease", "haggle_price", "barter", "buy", "sell", "taunt", "lookat", "steal", "lie", "trick", "plant_something_on_the_npc", etc etc etc...

have the "button" Object be a broader category, and then use the "button" Verbs as your specific action choices that all fall within that broader category.

sonic102
31 Aug 2013, 20:16
sonic102 wrote:
To remove a verb, go the the Object tab of the button, and under the Verbs list remove any verbs you hate.


See?