SCI1.1 and Advanced Said() Strings - Part 3 - Prepositions: Difference between pages

From Sierra Wiki
(Difference between pages)
Jump to navigationJump to search
m 2 revisions imported
 
m 3 revisions imported
 
Line 1: Line 1:
#REDIRECT [[Sierra Creative Interpreter#SCI1.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 ==
 
*
 
&nbsp;
 
[[Category:Technical Info]]
[[Category:Guides & Other Help]]
[[Category:References]]
[[Category:SCI References]]
[[Category:Development]]
[[Category:SCI Development]]
[[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)]]

Latest revision as of 09:03, 16 February 2025


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