Chat Script Advanced User Manual

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 26

Scroll down to view the document on your mobile browser.
ChatScript Advanced User’s Manual©Bruce Wilcox, gowilcox@gmail.com www.brilligunderstanding.com Revision3/24/2019 cs9.2•Review•Advanced Tokenization•Out of Band Communication•System callback functions•Advanced :build•Editing Non-topic Files•Common Script Idioms•Esoterica and Fine Detail•Self-Reflection•Updating CS versions Easily•The DictionaryThis manual is a grab bag of various capabilities. There are separate otherAdvanced manuals like Advanced Topic Manual, Advanced Pattern Manual,Advanced Concept manual, and Advanced Variable Manual for in-depth extrason main CS ideas.Review: Overview of how CS worksCS is a scripting language for interactivity. Each time CS communicates withthe user, this is called a volley.Volleys are always asynchronous. In CS, each volley actually consists ofaccepting an incoming input from an arbitrary user, loading data about the userand their state, computing a response, writing out a new state, and sending aresponse to the user.Topics and RulesThe fundamental code mechanism of ChatScript is the topic, which is a collectionof rules.Rules have pattern and code components.Within a topic each rule is considered in turn by matching its pattern component.Patterns can access global data and the user’s input, can perform comparisons,and can memorize sections of input data.If the pattern fails, the next rule in the topic is considered. If a pattern succeeds,the rule’s code section is then executed to completion (barring error conditions).1

Navigation menu