I'll show you what I do:
Let's say my character is going on a mission. Now, in this mission, they can either try to knock out a guard or sweet talk them. What I want the text, then, to depend on would be the stats they need to succeed with either action AND the action they took. Sure, I could make multiple pages, but let's say I want it all on one page.
Well, let's make a variable to represent their choice, such as CHOICE. If CHOICE = 1, then their character is going to knock out the guard. If CHOICE = 2, then their character is going to sweet talk the guard. Let's make POWER and AGILITY for their "knock out guards" status. Let's say it takes no less than 15 points in POWER and no less than 10 points in AGILITY, and for sweet talking a guard, you need 15 points in CHARISMA and 20 points in SEDUCTION.
Got it? In the script for the page, you'd put something like this:
IF CHOICE = 1 THEN
IF POWER >= 15 THEN
IF AGILITY >= 10 THEN
BEGIN
$PAGETEXT := "You creep up behind the castle guard and bash him on the back of the head. He falls to the ground and you take his gold. <p> </p>
Now that you're done here, you move on to the next guard. Yay! <p> </p>"
END
BUT, if you want text that's written on the actual page to display, you must add + $PAGETEXT after that second quote. Also, if you want characters to talk within your scripting, you must use two single quotes, no double quotes except the ones surrounding your pagetext.
ALSO, you'll want to make an alternative text for if they don't have those stats...
IF CHOICE = 1 THEN
IF POWER < 15 THEN
IF AGILITY < 10 THEN
BEGIN
$PAGETEXT := "You creep up behind the castle guard and try to bash him on the head, but you are too slow and he catches you and runs you through. <p> </p>
You are dead. <p> </p>"
END
And so on, with sweet-talking the guard. This can be done with as many variables as you damn well please. Also, if you're wondering what <p> </p> means, it's a spacer so you don't wind up with a huge, ugly block of text.