Advanced SCI Tutorials and Advanced Said() Strings - Part 3 - Prepositions: Difference between pages
From Sierra Wiki
(Difference between pages)
sierraw>Andrew Branscom Created page with "By Phil Fortier (Troflip)<br /> October 22nd, 2005 <span class="Category">Introduction</span> These are Advanced SCI tutorials written by Troflip, intended to comple..." |
sierraw>Andrew Branscom |
||
Line 1: | Line 1: | ||
[[Category:SCI Pages]] | |||
<div align="center" style="font-size: 22pt"></div><br /><div align="center">Version <br />''Author: ''<br /></div> | |||
===Prepositions (and Unclassified words)=== | |||
Example of the preposition 'in', which is classified in the vocab as a preposition (in the template game): | |||
<div class="CodeBlockHeader">Code:</div> | |||
<syntaxhighlight lang="sci"> // Responds to user input of: 'put key in lock' | |||
(if(Said('put<in/key/lock')) | |||
Print("You put the key in the lock") | |||
)</syntaxhighlight> | |||
Example of the preposition 'with', but has an unclassified word class in the template game: | |||
<div class="CodeBlockHeader">Code:</div> | |||
<syntaxhighlight lang="sci"> // Responds to user input of: 'open door with key' | |||
(if(Said('open/door/key<with')) | |||
Print("You open the door with the key") | |||
)</syntaxhighlight> | |||
Don't despair with this discrepancy. By setting 'with' to a preposition it will behave just like the 'in' preposition example. | |||
==<br /> References == | |||
<references /> | |||
==<br /> Also See == | |||
* | |||
| | ||
[[Category:Tutorials ]] | [[Category:Technical Info]] | ||
[[Category:Guides & Other Help]] | |||
[[Category:References]] | |||
[[Category:SCI References]] | |||
[[Category:Development]] | |||
[[Category:SCI Development]] | |||
[[Category:Tutorials]] | |||
[[Category:SCI Tutorials]] | |||
[[Category:How To]] | |||
[[Category:SCI How To]] | |||
[[Category:Examples]] | |||
[[Category:SCI Examples]] | |||
[[Category:Scripting]] | |||
[[Category:SCI Scripting]] | |||
[[Category:User Input]] | |||
[[Category:User Input (SCI)]] | |||
[[Category:The SCI Parser]] | |||
[[Category:Said() Strings]] | |||
[[Category:Prepositions]] | |||
[[Category:Prepositions (SCI)]] |
Revision as of 17:52, 18 June 2022
Version
Author:
Author:
Prepositions (and Unclassified words)
Example of the preposition 'in', which is classified in the vocab as a preposition (in the template game):
Code:
// 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:
// 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.
References
Also See