Community

SCI Programming => SCI Community How To's & Tutorials => Topic started by: gumby on November 30, 2010, 11:38:18 AM

Title: Advanced Said() Strings - Part 3 - Prepositions (and Unclassified words)
Post by: gumby on November 30, 2010, 11:38:18 AM
Example of the preposition 'in', which is classified in the vocab as a preposition (in the template game):
Code: [Select]
   // Responds to user input of: 'put key in lock'
    (if(Said('put<in/key/lock'))
       Print("You put the key in the lock")
    )  

Example of the preposition 'with', but has an unclassified word class in the template game:
Code: [Select]
   // Responds to user input of: 'open door with key'
    (if(Said('open/door/key<with'))
       Print("You open the door with the key")
    )

Don't despair with this discrepancy.  By setting 'with' to a preposition it will behave just like the 'in' preposition example.
Title: Re: Advanced Said() Strings - Part 3 - Prepositions (and Unclassified words)
Post by: MusicallyInspired on November 30, 2010, 01:46:53 PM
Good to know!
Title: Re: Advanced Said() Strings - Part 3 - Prepositions (and Unclassified words)
Post by: Cloudee1 on January 21, 2015, 01:48:10 PM
Add to Tutorials > SCI > Your First Game > Handling the Player's "Said" Input