The Main script is where the game execution begins. It contains your start up code, ego instance, status code instance, and inventory items. It also contains the global
variables.
-
Sets up the ego.
It enables the player control and sets the ego's edgeHit to EDGE_NONE. It then sets up it's view/loop. If theLoop is specified, it sets the ego's loop to theLoop. If theView
is specified, it sets the ego's view to theView. If neither are specified, the ego's view is set to the global gEgoView.
-
Initializes an actor, setting it's properties to the defaults, and if specified, the loop/view.
-
Disables user control and input, and sets the ego's motion to NULL.
-
Enables user control and input, and sets the ego's motion to NULL.
-
If a print dialog is still on the screen (ie. the user set it up with a timer), it disposes it.
-
Prints the default "OK" message.
-
Prints the default "it is" message.
-
Prints the default "You are." message.
-
Prints the default "Good idea. You might try that again later." message.
-
Prints the default "You're not close enough." message.
-
Prints the default "You already took it." message.
-
Prints the default "You don't have it." message.
-
If MemoryInfo(miFREEHEAP) is greater than mem, it returns TRUE. Otherwise, it prints the default "You can't do that here; at least, not now." message and returns
FALSE.
-
Creates an instance of pView and adds it to the picture. It then hides the original pView.
-
Sets the specified inventory item's owner. If owner is specified, it sets the item's owner to it. Otherwise, it sets the owner to gRoomNumberExit.