Advanced SCI Tutorials and Advanced Said() Strings - Part 3 - Prepositions: Difference between pages

From Sierra Wiki
(Difference between pages)
Jump to navigationJump to search
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:
By Phil Fortier (Troflip)<br />
[[Category:SCI Pages]]
October 22nd, 2005
<div align="center" style="font-size: 22pt"></div><br /><div align="center">Version <br />''Author: ''<br /></div>


<span class="Category">Introduction</span>
===Prepositions (and Unclassified words)===


&nbsp;
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>


These are Advanced SCI tutorials written by Troflip, intended to complement the information provided in Brian Provinciano's first two sets of tutorials.
Don't despair with this discrepancy.  By setting 'with' to a preposition it will behave just like the 'in' preposition example.


<span class="Category">Table of Contents</span>
==<br /> References ==


* [[Advanced Said() Strings - Part 1|Chapter 1 - Advanced Said() Strings - Part 1]]
<references />
* [[Regions and Locales|Chapter 2 - Regions and Locales]]
* [[Scripting Props and Acts|Chapter 3 - Scripting Props and Acts]]
* [[Loopers|Chapter 4 - Loopers]]
* [[Jumping Bug|Chapter 5 - Jumping Bug]]
* [[The z-coordinate|Chapter 6 - The z-coordinate]]
* [[Memory Management|Chapter 7 - Memory Management (advanced)]]
* [[Advanced Use of Control Areas|Chapter 8 - Advanced Use of Control Areas]]


&nbsp;
==<br /> Also See ==


<span style="float: left">[[SCI_Studio_Tutorial_2|&lt; Previous: Brian Provinciano's SCI Studio Tutorial 2]]</span><span style="float: right">[[Advanced Said() Strings - Part 1|Next: Chapter 1 - Advanced Said() Strings - Part 1 &gt;]]</span><br />
*


&nbsp;
&nbsp;


[[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:

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