-- true/false defn FALSE = 0 TRUE = 1 -- condition return values CONDITION_NOT_YET_MET = 0 CONDITION_SUCCEEDED = 1 CONDITION_FAILED = 2 -- Message types MT_INFO = 0 -- large centre screen popup MT_ALERT = 1 -- top right alert message MSG_TOP = 1 MSG_VCENTRE = 2 MSG_BOTTOM = 4 MSG_LEFT = 8 MSG_CENTRE = 16 MSG_RIGHT = 32 MSG_SMALL = 0 MSG_REG = 1 MSG_LRG = 2 function OnEvent(event) if (event == "introtext") then SysCall ( "ScenarioManager:ShowInfoMessageExt", "[Max] S6 nach Frankfurt Sued", "intromessage.html", 0, MSG_VCENTRE + MSG_CENTRE, MSG_REG, TRUE ); end if (event == "cabcamera") then SysCall ( "CameraManager:ActivateCamera", "CabCamera", 0 ); end if event == "Ans1" then SysCall ( "ScenarioManager:PlayDialogueSound", "Ans1.wav"); end if event == "Ans2" then SysCall ( "ScenarioManager:PlayDialogueSound", "Ans2.wav"); end if event == "Ans3" then SysCall ( "ScenarioManager:PlayDialogueSound", "Ans3.wav"); end if event == "Ans4" then SysCall ( "ScenarioManager:PlayDialogueSound", "Ans4.wav"); end if event == "Ans5" then SysCall ( "ScenarioManager:PlayDialogueSound", "Ans5.wav"); end if event == "Ans6" then SysCall ( "ScenarioManager:PlayDialogueSound", "Ans6.wav"); end if event == "Ans7" then SysCall ( "ScenarioManager:PlayDialogueSound", "Ans7.wav"); end if event == "Ans8" then SysCall ( "ScenarioManager:PlayDialogueSound", "Ans8.wav"); end if event == "Ans9" then SysCall ( "ScenarioManager:PlayDialogueSound", "Ans9.wav"); end if event == "Ans10" then SysCall ( "ScenarioManager:PlayDialogueSound", "Ans10.wav"); end if event == "Ans11" then SysCall ( "ScenarioManager:PlayDialogueSound", "Ans11.wav"); end if event == "Ans12" then SysCall ( "ScenarioManager:PlayDialogueSound", "Ans12.wav"); end end