I’m running into situations with my ScottKit-based game in development where, under limited but repeatable circumstances, print strings are appearing out-of-sequence and with a substituted string, typically one from much higher up in the source file. I can’t find documentation that says there’s a hard-and-fast limit on print-able strings in a SA-format game, and the first time I ran into it (and coded around it), a maneuver to save strings was causing the problem. It’s now showed up in a different spot where I’m not trying anything particularly tricksy, so I’m at a loss to explain or fix it.
Any ideas? A fuller summary is on the Github tracker but the basic behavior is that
action read book when carried book and !exists script print "Words words words" print "Paper you used as a bookmark FALLS out!" put_with script book
Tell me what to do ? read book Paper you used as a bookmark FALLS out! #this is in the wrong order You are PRINCE HAMLET # this is an early string
action read script when carried script print "Play script: The MURDER of GONZAGO!" print "about fratricide & other TERRIBLE acts" print "CLAUDIUS is also guilty of!"
Tell me what to do ? read script about fratricide & other TERRIBLE acts What are you going to DO about it? # this is another early line CLAUDIUS is also guilty of! Tell me what to do ?
Behavior is identical in scottfree and in the scottkit built-in interpreter.