user interface initialisation script
start 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)game.inituserinterface
)StartGame
(which you probably only care about if you're replacing rather than adding to it)
game.start
)_initialise_
scripts (in the order they appear in the XML file; which usually means libraries first, but not necessarily)beforefirstenter
beforeenter
game.roomenter
)firstenter
enter
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.