hmm. sounds like something i made. it's kinda a text rpg, but the story plays in a box.
first, you got to figure out how much letters your box can hold widthwise. then you have to find out how many lines it could hold. Create a variable to hold lines in. in the sub that prints the text into the box, have another variable hold the length of your text, with the len statement. there's tons more, but ihave sourcecode for you to use. just copy it to a notepad document, save it and load it up with qbasic. then run it. take it apart and experiment. this code actually runs very well. this piece of code will print these sentances letter per letter, moving the sentence to the next line if the word is too big for the box. if you want paragraphs, then just do this.
story = "This is one paragraph."
storywriter
story = "this is another paragraph!"
storywriter
this will tell this script to make a new paragraph. this works well if you want to write a story in qbasic. and if the paragraph reaches the end of the box, it will wait for a keypress, then continue on a new page. note that this was designed in screen 9, so it should work perfectly. all you need to do is give this a few teaks.
'start code!
screen 9
LINE (250, 22)-(620, 172), , B
story = "The quick brown fox jumped over the lazy dog the quick brown fox jumped over the lazy dog the quick brown fox jumped over the lazy dog the quick brown fox jumped over the lazy dog."
storywriting
LINE (250, 22)-(620, 172), , B
sub storywriting
keypress = INKEY$
storyypos = storyypos + 1
storyxpos = 33
story2 = LEN(story)
story5% = 0
story3 = 0
DO
IF storyypos = 22 THEN
storyypos = 4
storyxpos = 33
DO: LOOP UNTIL keypress <> ""
clearstorybox
END IF
story3 = story3 + 1
story5% = story5% + 1
story4 = MID$(story, story5%, 1)
storyxpos = storyxpos + 1
IF story3 > 37 AND story3 < 45 AND story4 = " " THEN
storyypos = storyypos + 1
storyxpos = 33
story3 = 0
END IF
IF INKEY$ <> "" THEN
ELSE
FOR i& = 1 TO 55000
NEXT i&
END IF
LOCATE storyypos, storyxpos
PRINT story4
LOOP UNTIL story5% = story2
end sub
SUB clearoptionbox
'this box displays your options
LINE (1, 23)-(119, 170), 0, BF
END SUB