This page deals with patches relating to the story texts in Keen Vorticons that do not fit on the general Large text files page. A knowledge of that page is recommended.
Name of story text file
|Patch: Name of story text file|
Play a neat sequence for the story
This patch alters things so that when the 'story' option is selected in the main menu the player sees a neat sequence. Note that this removes the 'aware level' sequence from the Keen 3 ending sequence in order to do so.
The following sequence is a complex example of a patch that can be endlessly customized. (Or this existing patch can be tweaked.) The space freed by the patch allows for a much more complex sequence if desired. The patch and text used is taken from the mod The fastest Gun In The Universe.
When the story is selected the game will go to the story window but not large text window will appear. Instead text will be written directly to the screen. The first blue value is the horizontal location of the first line of text on the screen in 8x8 squares. The second blue value is the horizontal location of all other lines of text on the screen. (To line up these values should be the same.) The third blue value is the vertical location of the first line on the screen; all other lines will appear below this.
The first and second brown values (on line 4 of the main code paragraph.) are where the first and second lines of text are called from. Following this is another blue value, the time between printing lines 1\2 and line 3. The call is marked in brown then there is a second pause, marked in blue.
The next two lines write the fourth, fifth and sixth lines of text (brown values) each with a brief (But unalterable) pause between them.
The eighth line draws the first bitmap to the screen. In this example it is bitmap 4 located at 16,16 on the screen. (Three blue values.) At the same time on the next line the seventh line is printed. There then follows a third adjustable pause.
After this line 8 is printed and there is another short, unpatchable pause before line 9 is printed. Following this is the fourth adjustable pause. The next line holds three blue values that print the second bitmap. (Bitmap 5 at 16,16 in this example.) At the same time line 10 is printed.
There then follows a series of pauses and line prints; all the pauses being of unpatchable length. Then there is one final pause and the game returns to the main menu.
|Patch: Keen 3|
Location of screen in Main Menu level
The story text screen is located int he same level as the Main Menu, but at a different location. This location (horizontal and vertical) is defined by four variables. The biggest two define the location in sixteens of tiles. (This a value of 5 is 5*16 or 80 tiles across the level.) The smaller two variables are in 256ths of a pixel meaning that on1 pixel is $100.
Given these rather odd units the default location of the story text is 16 tiles plus 96 pixels (= 22 tiles) horizontal and 0 + 32 pixels (= 2 tiles) vertical.
|Patch: Location of screen in Main Menu level|
Size of story textbox
The story text window will be as wide as the screen. However its height in lines of text is alterable. By default it is 16 lines high and can be as high as the screen. (An invalid value will crash the game with gibberish.)
|Patch: Size of story textbox|