ENCscript-xmpl.txt
FR1_4
txtst fr1t4
enter
print story,4
exit
search west,5
window story,noyn,2
exit
looks
print story,1
exit
use
useitem north,0,60,lok2
useitem west,0,60,lok2
useitem south,0,60,lok2
useitem east,0,60,lok2
usend
lok2 remove 60
window story,noyn,3
story FR1,5
exit
stend
fr1t4
.1 dc.b "A spring... (no `thing on/it`!)"+
.2 dc.b "There are small excrements of a rodent everywhere."+
.3 dc.b "You set the trap."+
.4 dc.b "There is a spring here. Clear/"
dc.b "water is coming up from it..."+
txtend
spend
;
; This example is an actual "story package" from Enhanced Newcomer,
; the previous major revision of our game.
; Story packages are made of one or two parts:
; 1./ a script package
; 2./ a local string package (optional)
;
; Loading and executing story packages can be triggered by two kinds of events:
; 1./ Entering an X,Y location that has a "story" flag loads the story package set for that location,
; and if the package contains an 'enter' event-handler, that function is immediately executed
; 2./ Timer activation -- we can set up a timer, and specify a story package for it as an arg
;
; -An alternative way to trigger a story package is that any script can invoke and execute another one.