Author Topic: Need help with syntax/vocab  (Read 7321 times)

0 Members and 1 Guest are viewing this topic.

Offline Brian Provinciano

Re:Need help with syntax/vocab
« Reply #15 on: November 30, 2003, 12:50:13 AM »
couldn't you do "inside"/"in"? Many problems are simply due to improper use of vocab resources.

Offline Cloudee1

Re:Need help with syntax/vocab
« Reply #16 on: November 30, 2003, 11:10:20 AM »
Hey Brian

Here is an example that I am going to guess is relatively common for those people who have seemed to struggle with this.

Any form of sentence which includes "look" and "shoe" produce the final response only.  . . Remove the last response and regardless of what combination you type in, the game has been left responseless.

(if(Said('look>'))      //  imperative verb
 (if(Said('/inside>')) //  preposition
  (if(Said('//shoe'))   //  noun
  Print("It is dark inside the shoe!")
  )
 )
  (else(if(Said('/under>'))  //  preposition
   (if(Said ('//shoe'))          //  noun
   Print("There is mud under the shoe!")
   )
  )
   (else(if(Said('/shoe'))
   Print("It's a shoe!")
   )
  )
 )
)
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline Jim C

Re:Need help with syntax/vocab
« Reply #17 on: November 30, 2003, 05:02:12 PM »
Yes, cloudee, thank you. That's a good example of what I've been having trouble with.

Offline Jim C

Re:Need help with syntax/vocab
« Reply #18 on: December 05, 2003, 03:38:27 PM »
Does anybody know how to get it to accept the command "give *** to ***" from the user?

Specifically, I'm trying to "give/package/to/steve", where steve and package are both defined as nouns in the vocab file. This does not compute. The best I can come up with that works is "give/package" or "give/package[<to,steve]". But that results in giving the package to steve even if the user said to give it to someone else.

Any advice? Thanks.

Offline Brian Provinciano

Re:Need help with syntax/vocab
« Reply #19 on: December 05, 2003, 03:54:50 PM »
You would do GIVE/SOMETHING/SOMEONE. Like the docs say, the, to and others are removed.

Offline Jim C

Re:Need help with syntax/vocab
« Reply #20 on: December 05, 2003, 06:02:14 PM »
Oh, of course. Thanks Brian, it works perfectly. Hope you had a good Thanksgiving, btw.

Offline Brian Provinciano

Re:Need help with syntax/vocab
« Reply #21 on: December 06, 2003, 03:50:34 AM »
Erm...thanks, though I am Canadian ;)

Offline Jim C

Re:Need help with syntax/vocab
« Reply #22 on: December 06, 2003, 09:45:52 AM »
hahahahaha I'm stupid! sorry


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.032 seconds with 20 queries.