I haven't found anything in the forums dealing with this yet. What I'm discussing here is the ability to conduct pre-processing of storygame pages before they are displayed to the reader. The goal being that certain strings within the page would be replaced by other strings specified in a global script. Here's a hypothetical example:
I have 3 characters in my story that may possibly accompany the protagonist, let's name them Tom, Dick, and Harry. During the scenes that have them, they're going to say and do the same things, only the name will change. Their name will be used within the text, not at the beginning or end, so this won't work:
$PAGETEXT := $PAGETEXT + " Dude's name is Dick."
is there a way to search through the $PAGETEXT variable and replace a code, to prevent overlap to other story elements, I'd use something like "0AP34GHTXP" where the names would be. I'd imaging the code to look something like:
IF $FRIEND = 1 THEN
REPLACE "0AP34GHTXP" WITH "Tom" IN $PAGETEXT
ELSE IF $FRIEND = 2 THEN
REPLACE "0AP34GHTXP" WITH "Dick" IN $PAGETEXT
ELSE
REPLACE "0AP34GHTXP" WITH "Harry" IN $PAGETEXT
Any thoughts? Has this been discussed and I missed it?
I've been through all the tutorials that related to scripting and didn't find anything about this in specific, but it seems like the kind of feature that would have at least been thought about by someone.