|
John Cletheroe's
Trainz Hintz - A Step-By-Step Guide To Making A Very Simple TRS2004 Scenario |
The aim of this tutorial is to explain how to create a very simple scenario in TRS2004 using the GameScript/TrainzScript programming language (the language can be referred to by both names). Each stage of the operation is covered in some detail, with the aim of explaining not only what has to be done but also why it needs to be done.
Scenarios are scripted interactive activities in which the user is given a train driving task, usually with initial instructions and additional instructions as the scenario proceeds. Scenarios can react to events. Scenarios can operate AI trains as well as handling the train that the user drives. Scenarios can include random choices and random events. Scenarios can display text and images, and play sounds.
Tasks given to the user in scenarios can include passenger and freight operations, mainline driving, shunting, loading and unloading of rolling stock at industries, and even shunting puzzles.
The GameScript/TrainzScript language is also used in Trainz for other purposes, such as scripts associated with assets, and for the creation of Driver Commands and Rules. This tutorial does not cover those subjects.
Part Two: The Differences Between Driver Sessions And Scenarios
Most recently modified 15-Sep-09