Mmm ... well, using the $PAGETEXT part of the script is only necessary if you're actually going to change the text itself, though. If you're just setting up a stat sheet like, "strength," "speed," "fear," "charisma," "sanity," and so forth, and you just want the variable amount to display as it changes, then it's much simpler to make the corresponding variables and then script it on page:
Strength: %%STRENGTH%%
Stamina: %%STAMINA%%
And so on. (Actually, if the text changes are minor, you could still do it on page like that.)