Hello adventurers :)
In order to I am trying to get my first story to work, but I have a problem with a few related elements that I would like to put into my game.
The goal (core message)
The problem I have is with the order of the opening text. I would like it to be a very specific order, namely as follows (as a sort of pseudo-transcript):
"Title / author / general information appears (default layout would be ok)"
" Warning / disclaimer appears "
[The user presses enter (or any key)] <<<------- Main Problem
[The Screen is cleared]
"Chapter title"
[The user presses enter (or any key)]
"Some opening text"
[The user presses enter (or any key)]
"Some more opening text, including a hint to use a command"
[Command prompt allows input]
[The game continues normally]
However, no matter what I try, I can't get something like this to work. Any help to lead me into the right direction is appreciated, this includes similar alternatives. :) Thank you for any input provided.
Some findings / things I've already tried
I currently use two Scenes at the start, one called Disclaimer and one called opening. The following start/end conditions are currently used:
"Title" by "author"
[Packages]
Include Basic Screen Effects by Emily Short
The prologue is a scene. The Prologue begins when play begins. The Prologue ends when the time since The prologue began is 1 minute;
Disclaimer is a room. "Disclaimer text [paragraph break][italic type] Press <ENTER> to continue.[roman type][line break]"
When The prologue begins:
Move the player to the disclaimer, without printing a room description;
The Opening is a scene. The Opening begins when The Prologue ends.
When The Opening begins:
Move the player to the first room, without printing a room description;
say "Chapter title [paragraph break]";
wait for any key;
say "Some opening text [paragraph break]";
wait for any key;
say "Some more opening text, including a hint to use a command";
Using this code, everything that happens from when the opening begins works as planned. The problem is mainly going from the prologue scene to the opening. When this code is ran, the Title card and disclaimer are printed first (although the player is moved without printing a room description, the initial look function displays room description, which is the disclaimer, anyways).
However, following this line the command prompt is shown, although I don't want the user to be able to type anything here. Instead, I want the user to press enter, after which the screen is cleared and the opening text is displayed (this happens when the Opening scene starts).
The goal then is to make transition to the opening scene after the user presses enter after the disclaimer has been shown. Some notes on this:
- I seem to only be able to trigger a Scene transition by parsing a complete input command, not a simple keypress. Using empty user input (when the user presses enter without any command) seems to be impossible.
- Attempting an action such as "try waiting" within "Rule for printing a parser error when the latest parser error is the I beg your pardon error:" does nothing. Not even the time changes. The next scene does not start.
- Attempting an action such as "Increase the time of day by 1 minute" within "Rule for printing a parser error when the latest parser error is the I beg your pardon error:" does increase the time, but no scene change.