This page has resources for using the SLang utility for IF prototyping.
SLang is basically logic programming, like Prolog, and that makes for compact code that's tricky to write.
To download the SLang utility: (http://www.freefilmsoftware.co.uk/)
OVERVIEW. In SLang, you define a number of text descriptions (in standard screenplay format), which contain rules determining what prior events need to be true in order to happen. Then, there are two automatic procedures: in the first (automatic listing: CTRL-A) asks you to define the initial conditions, and it cranks through the rules to determine what follows. In the second (find shortest, or longest, path), you specify the event you want it to end on and it works backwards to find the preceeding events.
From what I'm seeing, these seem to give slightly different results: That seems to be because the backwards tracing necessarily traverses the logical space differently. Use the trace logic function to see what's going on, and keep in mind that events have three truth values: true, false, and undetermined.
Files donwloadable here::
|