Basically what I'm suggesting is being able to place "toggles" on the text of a page, by typing &&1/&&2/&&3 etc. These would work in a similar way to displaying variables on the page with %%VARIABLE%%, except instead of showing variable values it would show text that is defined in the page script. Currently, $PAGETEXT can get the same results as what I'm proposing, but it's messy and time-consuming, as you will see in the examples below:
Currently, if I had the following page, where the part in brackets is the part I want to appear only if the variable %VARIABLE equals 1:
A stun spell is a wise move. Not only will you stop the goreworm from devouring you, you won't kill it in the process. (Usually your stun spells aren't even strong enough to temporarily paralyse a frog, let alone a giant worm, but you know that with your master channelling his power through you nothing can go wrong.) You start picturing the two basic symbols for electricity that you know in your mind.
Now usually, I would have to write in the script:
IF %VARIABLE = 1 THEN
$PAGETEXT := "A stun spell is a wise move. Not only will you stop the goreworm from devouring you, you won't kill it in the process. Usually your stun spells aren't even strong enough to temporarily paralyse a frog, let alone a giant worm, but you know that with your master channelling his power through you nothing can go wrong. " + $PAGETEXT
ELSE
$PAGETEXT := "A stun spell is a wise move. Not only will you stop the goreworm from devouring you, you won't kill it in the process. " + $PAGETEXT
..where I would have the last sentence from the italicised paragraph above on the regular page (ie. out of the script).
Now, this isn't really much of a big deal in the example I gave - but what if there are five sentences that appear/disappear based on different variables, and they have non-changing sentences in between them? If you wanted to do this currently, you would have to make a super long page script detailing every combination of sentences. Now what if we did something like this:
A stun spell is a wise move. Not only will you stop the goreworm from devouring you, you won't kill it in the process. &&1 You start picturing the two basic symbols for electricity that you know in your mind.
And you would have the script read:
%%1 := "Usually your stun spells aren't even strong enough to temporarily paralyse a frog, let alone a giant worm, but you know that with your master channelling his power through you nothing can go wrong."
# this part of the script defines &&1 as the text you see above (this also opens up a whole new doorway for defining toggles based on variables etc.)
IF %VARIABLE = 1 THEN
$&1 := 1
# $&(number) signifies a system variable, 0 means that in any instances where the toggle is written on the page (for example, in the second italicised example above) that it is ignored and not displayed - 1 means that it is displayed.
"$&" seems a bit weird looking, but it'd make sense because the $ makes it a system variable, any suggestions for this?
* * *
Okay, does that actually make sense? What do you guys think of the idea?
(If you don't know how to script, there's no need to post in this thread, so please don't.)