user interface initialisation script
init script of object in library file
init script of object in game's code
You are in a room.
Did I miss anything?
InitInterface(which you probably only care about if you're replacing rather than adding to it)
InitUserInterface(which is blank by default, made for you to override)
StartGame(which you probably only care about if you're replacing rather than adding to it)
_initialise_scripts (in the order they appear in the XML file; which usually means libraries first, but not necessarily)
I figured it's worth mentioning the default stuff, in case you want to use the data from it. For example, if you enable the default health/money status attributes, they are added during
StartGame, so the statusattributes dictionary might not exist during the first run of the UI initialisation script. Similarly, if you rely on the default behaviour of using an object named
player as the player object, you may find that
game.pov is not set in the UI Initialisation script.