Inform 7 Home Page / Documentation


§18.40. Starting the virtual machine

1. When it happens. This activity is provided solely as a "hook" for any low-level tasks which need to be performed when the virtual computer which runs Inform story files is starting up. This happens much earlier than "when play begins" rules, and should be used only as a last resort.

It should be remembered that Inform can produce story files for several different virtual computers. On some of these, it will not be safe to print any text during this activity, as the windows which would display such text do not yet exist.

2. The default behaviour. None.

3. Examples. No detailed examples will be given here, but the activity might be used (for instance) to set styles for the Glulx windows shortly to be brought into existence.


arrow-up.png Start of Chapter 18: Activities
arrow-left.png Back to §18.39. Amusing a victorious player
arrow-right.png Onward to Chapter 19: Rulebooks: §19.1. On rules

*ExampleBlankness
Emptying the status line during the first screen of the game.