mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-23 00:14:25 +00:00
1 line
2.0 KiB
Plaintext
1 line
2.0 KiB
Plaintext
.. -*-save,fill,fillw:70,indent:0-*-
|
||
|
||
..
|
||
|
||
.. rstory.rff - rstory description
|
||
|
||
.. Robert Heller. Created: Tue Feb 25, 1986 19:35:32.61
|
||
|
||
.. Last Mod:
|
||
|
||
..
|
||
|
||
.. (c) Copyright 1986 by Robert Heller
|
||
|
||
.. All Rights Reserved
|
||
|
||
..
|
||
|
||
..
|
||
|
||
..
|
||
|
||
.ow 80
|
||
|
||
.rm 70
|
||
|
||
.in 10
|
||
|
||
.sp 4
|
||
|
||
.ce 4
|
||
|
||
^BRstory Grammer and Action Files
|
||
|
||
\date\
|
||
|
||
Robert Heller
|
||
|
||
\copyright\ Copyright 1986 by Robert Heller^b
|
||
|
||
.par
|
||
|
||
Rstory's Grammer file (RSTORY.SYN) is an Rsentence grammer file.
|
||
|
||
There are several terminal variables used:
|
||
|
||
.sp 1
|
||
|
||
.nf
|
||
|
||
<OPENING> - this is the opening. It must setup rsentence
|
||
|
||
registers 0 (the main character), 1 (the
|
||
|
||
secondary character - the pet), and 2 (the
|
||
|
||
barrier).
|
||
|
||
<REFUSAL> - this is the refusal. Registers 3 thru 6 are set-
|
||
|
||
up as follows: 3 is the last agent to be acted
|
||
|
||
upon, 4 is the new agent on the scene, 5 is what
|
||
|
||
this new agent won't do to the last agent and 6
|
||
|
||
is the list of previous problems.
|
||
|
||
<PERSUADED> - this is the persuasion. Registers are setup
|
||
|
||
as for the refusal.
|
||
|
||
.sp 1
|
||
|
||
.fi
|
||
|
||
Additional terminal variables are used to generate new agents and
|
||
|
||
things as specified in the actions file.
|
||
|
||
.par
|
||
|
||
The actions file contains three word lines. Each line contains the
|
||
|
||
following:
|
||
|
||
.sp 1
|
||
|
||
.nf
|
||
|
||
SUBJECT VERB OBJECT
|
||
|
||
.fi
|
||
|
||
.sp 1
|
||
|
||
The SUBJECT is a new actor on the scene, the VERB is something SUBJECT
|
||
|
||
can do to OBJECT. There needs to be a mapping between OBJECTs and
|
||
|
||
SUBJECTs - that is there should be at least one SUBJECT for each OBJECT
|
||
|
||
and at at least one of the OBJECTS should match up with the secondary
|
||
|
||
character (the pet). Any of SUBJECT, VERB or OBJECT can be a syntax
|
||
|
||
variable reference (ie have "<>" around the name of a syntax variable
|
||
|
||
defined in RSTORY.SYN). The file can be terminated with the word END,
|
||
|
||
in caps, on a line by itself. VERB should be something that SUBJECT
|
||
|
||
could reasonably do to OBJECT. It would not make sense for an ant to
|
||
|
||
throw a rhinoceros...
|
||
|
||
|