= Tutorial == Creating a scenario The following is to be used as an example tutorial for creating a scenario from scratch. === Opening the program To run the !ScriptBuilder application, download the application from the DownloadPage, and unzip the given folder. The program can be run by opening the command line at this location and (needs windows cross-check) typing {java -jar ScriptBuilder.jar} === Adding your first Incident to the Scenario For the first Incident, we're going to add both the Media Log and the Tomato Truck !Spill/Fire incidents from the pre-existing incident pool. To do this, navigate to the incidents menu, and select the "Load Incident..." option. This should bring up the [[ScriptBuilder_ReferenceManual#incidentPalette|Incident Pool Window]], similar to the one below: (Insert Photo of the incident palette window)[[BR]] Press the large "Add" button to the right of the incident you would like to add, in this case the Media Log and Tomato Truck !Spill/Fire. When completed, press the "Done" button, which will return you back to the Scenario Overview Window. You should see the two added incidents in the window, as shown below: (Insert photo of the overview window with both of the events added.)[[BR]] Take note that the Media Log does not have any tick marks on its timeline, as it does not contain any events. On the other hand, the Tomato Truck !Spill/Fire incident has a long line of tickmarks, which each indicate a time at which an incident occurs (could be more than one). === Modifying the incident properties To see the properties of the incident, right-click on the timeline and select the properties option as shown below:[[BR]] (insert photo of dropdown menu) A window titled "Incident Properties" should open and the property values will be filled with whatever was saved with the incident itself. Change the incident's color by selecting the dropdown menu and selecting "red" instead.[[BR]] (Insert image of the properties window with the color change)[[BR]] Upon completion, click "OK" to save the changes, and observe the change in color of the incident in the Scenario Overview Window.[[BR]] === Creating a new incident Open the incident menu, and select the "New Incident..." option. An Incident Properties window should appear, which will already have the next available incident number filled in, which in this case if 101. Change the color to Yellow, name it "An accident", and set the start time to 10 minutes. [[BR]] (insert image of incident properties with the correct values as said above)[[BR]] The Incident Editor window will appear without any incidents. Add a Witness event to the incident timeline by selecting the button names "Witness" and click anywhere to add the event to the timeline. A popup notifying that the event will be added to the beginning of the incident will appear, and after confirming, the event will appear as below:[[BR]] (add image of the Incident Editor with the Witness event added)[[BR]] {{{ Script Builder tutorial OUTLINE THIS IS FOR TUTORIAL - REFERENCE GUIDE IS FOR LATER Background Prerequisites: What the Simulation Manager does. How an incident script is structured. Major script builder features. Overview Window Stage 1| Creating a new Incident Incident Properties Dialog Incident Editor Window The Timeline Adding the first event Stage 1.5| Event Editor Window Adding more events Revising an Event Changing an event's time Stage 2| Modifying an Incident's timeline Add time to start or end Add or remove time from middle Saving a Scenario Opening an existing Scenario Incident Pool Concept Loading an Incident from the Incident Pool Incident Pool Window Stage 3| Saving a single Incident This saves WITHOUT units, is that correct? (YES) Explain implication: won't run properly in Sim Mgr. Loading Additional Units How default units are used. Why additional units may be needed. Stage 4| }}}