mix ... with ...

Tomsa
05 Apr 2009, 13:40
If you have two objects, say gin and vermouth, how do you make the command "mix ... with ..." equal to "use ... on ..." (in order to make a Martini)? Do I edit the use script to point to a procedure?

Redsun
05 Apr 2009, 21:20
make another object called martini or whatever and once one object is used on the
other object, move them two objects and give the player the martini object.

Tomsa
07 Apr 2009, 10:05
No, that was not the answer I was looking for.
What I want to know is, how do I make Quest understand, that "use gin on vermouth" and "mix gin with vermouth" is the same thing? That is, I want to be able to type "mix ... with ..." in order to make the martini.

Thanatos
08 Apr 2009, 03:42
Just make both of your mix and use commands to equal the same outcome of the Martini. What I mean is making identical triggers, just changing the words around from 'use' to 'mix' or vice versa. This should work.

eg

Mix Gin with Vermoth = Martini
Use Gin on Vermoth = Martini

Just make those two commands the same, change the words, whala.

paul_one
08 Apr 2009, 16:29
Erm, I don't know the QDK way to do this, but:

command <mix #@obj# with #@obj2#; mix #@obj# and #@obj2#> exec <use #@obj# on #@obj2#>


Will mean both mix commands work, and they actually call "use" instead.

Thanatos
09 Apr 2009, 00:36
Apparently you don't need to crawl before you walk, Paul :mrgreen:

paul_one
09 Apr 2009, 16:47
Actually - interesting story - my niece is in such a rush to join in with the rest of the family, that she is indeed SKIPPING crawling, and going straight to walking!!

She tried crawling, and then immediately tried to push up, and has been standing/trying to walk (obviously with help) since... Perhaps my gene pool is just screwed?

AAAAnyway, if you can translate into QDK actions, then please do - I don't use it myself.

Alex
09 Apr 2009, 16:55
Paul, you're close, but it should be:


command <mix #@obj# with #@obj2#; mix #@obj# and #@obj2#> exec <use #obj# on #obj2#>


since you don't want to use the exec command with the displayed version of the object name, you want the internal one - otherwise you might end up displaying a disambiguation menu twice.

paul_one
09 Apr 2009, 21:18
Ahh yes, cheers Alex.

I think I've run into that multiple times, and did think of one reason why I WANTED the proper name to go all the way through - but I forget now.