Chat Script Fact Manual

ChatScript-Fact-Manual

User Manual:

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

Scroll down to view the document on your mobile browser.
ChatScript Fact Manual©Bruce Wilcox, gowilcox@gmail.com www.brilligunderstanding.com Revision6/9/2018 cs8.3•Simple Facts•Advanced Facts•Esoteric FactsSIMPLE FACTSFacts are triples of subject,verb,object – though those are just the names of thefields and may or may not be their content. Facts look like this:(Bob eat fish )The system has a number of facts it comes bundled with and others can becreated and stored either from compiling scripts, or from interactions with theuser.Facts can use words, numbers, or other facts as field values, representing anything.You can build records, arbitrary graphs, treat them as arrays of data, etc.Simple Creating Factsˆcreatefact( subject verb object )this creates a fact triple. The system will not create duplicate facts. If you havea fact (Bob eat fish) then executing^createfact(Bob eat fish)will do nothing further (but it will return the found fact). One way to create afact of a fact is as follows:^createfact( (Bob eat fish) how slowly )The other way is to assign the value of fact creation to a variable and then usethat variable. You need to pass in a flag at creation, to tell the system the valueis a factid.$fact = ^createfact( Bob own fish)^createfact ($fact Bob pet FACTSUBJECT)$fact = ^createfact( Bob own dog)^createfact ($fact Bob pet FACTSUBJECT)1

Navigation menu