Verb and Command issues
timetolose
19 Jun 2012, 13:58I explored several source codes, but I did not find an answer to this.
I have a phone and I want a verb (or command?) "answer".
I put the verb to the phone object and Quest automatically created a verb.
Now, if I >ANSWER THE PHONE everything is fine. But I want also:
1) a message if player enters only >ANSWER, something like: "Answer to what? You should be more specific, man."
2) a message if player enters the verb and an object: >ANSWER TO THE COUCH, something like: "You cannot answer to that, are you crazy?"
3) a message if player enters the verb + an "unknown" object: ANSWER TO XYYDY, something like "I cannot understand you.".
I attached my verb ANSWER (rispondi in italian), at the moment if I answer the phone, everything is ok; if I enter only ANSWER, Quest says "I cannot understand", and if I enter "ANSWER TO any object", Quet answer "I can't see that".
So, ANSWER should be a verb or a command????
Thanks in advance.
ps. I think somebody should kindly write a tutorial for verbs/commands.
I have a phone and I want a verb (or command?) "answer".
I put the verb to the phone object and Quest automatically created a verb.
Now, if I >ANSWER THE PHONE everything is fine. But I want also:
1) a message if player enters only >ANSWER, something like: "Answer to what? You should be more specific, man."
2) a message if player enters the verb and an object: >ANSWER TO THE COUCH, something like: "You cannot answer to that, are you crazy?"
3) a message if player enters the verb + an "unknown" object: ANSWER TO XYYDY, something like "I cannot understand you.".
I attached my verb ANSWER (rispondi in italian), at the moment if I answer the phone, everything is ok; if I enter only ANSWER, Quest says "I cannot understand", and if I enter "ANSWER TO any object", Quet answer "I can't see that".
So, ANSWER should be a verb or a command????
Thanks in advance.
ps. I think somebody should kindly write a tutorial for verbs/commands.


Pertex
19 Jun 2012, 14:20timetolose wrote:
So, ANSWER should be a verb or a command????
Oh this is really easy to say. If you want to add a spezific word to a spezific object, so that only this object reacts with this word, use a verb. If you want to use this word with lots of other objects (like "ANSWER TO THE COUCH"), use a command.
For your answer command you would need 2 commands. One for 1) and another for 2) and 3) where you have to evaluate the text after ANSWER


timetolose
19 Jun 2012, 15:08Fine, now it's clear! Pertex, you are great.
Important: this way, under the object "phone", I DO NOT have to add the verb ANSWER, correct?
So, every action regarding an object under a command must be managed under the command itself using expressions, correct?
Important: this way, under the object "phone", I DO NOT have to add the verb ANSWER, correct?
So, every action regarding an object under a command must be managed under the command itself using expressions, correct?

Pertex
19 Jun 2012, 18:45Right
Sharpturn
22 Jun 2012, 23:10I used the same sort of thing to peek through doors in my upcoming horror game (Very innovative, hoping it will make a splash!
), Staircase, to peek through doors.
