In Inform 6:
How could one make every new room that is entered start with a cleared screen followed by the room description?
A example code-snipplet rather than a explanation would be great!
In Inform 6:
How could one make every new room that is entered start with a cleared screen followed by the room description?
A example code-snipplet rather than a explanation would be great!
[code]Include “parser.h”;
[ NewRoom;
ClearScreen(WIN_MAIN); !WIN_ALL 0, WIN_STATUS 1, WIN_MAIN 2
];
Include “verblib.h”;
Include “grammar.h”;
[ Initialise;
lookmode = 2;
location = theroom1;
];
Object theroom1 “The Room 1”
with
description “This is just a plain room 1 like any other.”,
s_to theroom2,
has light;
Object theroom2 “The Room 2”
with
description “This is just a plain room 2 like any other.”,
n_to theroom1,
has light;[/code]
Something is wrong, there’s an empty line between status line and the name of the room!?
It is better with:[ NewRoom;
ClearScreen(); !WIN_ALL 0
];