function return_pano_room() SetBackRoom(GrayHouse, GrayHouse) end AddEvent(nil, true, nil, GrayHouse, nil, "return_pano_room") -- 2.1 function gray_intro() if not IsEventDone(FirstTimeGray) then ChangeRoom( GrayIntro1 ) else ChangeRoom( GrayHouse, false ) end FadeIn() end AddEvent( nil, true, nil, Gray, nil, "gray_intro" ) function gray_intro1() -- if not IsEventDone(FirstTimeGray) then PlayDialog( Sara, "M2_SARAHEXPO_19" ) PlayDialog( Officer, "M2_OFFICEREXPO_01" ) PlayDialog( Sara, "M2_SARAHEXPO_01" ) SetActive(HBehindDeskDesk, false) AddVictim(Jason,"Jason Gray","Art\\Reenactments\\Pictures\\graysuspect.tga") UpdateCaseFile(Jason,VICTIM_CRIMESCENE,"TEXT2230",600) ChangeRoom( SaraCloseup ) PlayDialog( Sara, "M2_SARAHENTER_01" ) -- end -- 2.2 ChangeRoom( GrayHouse, false ) end AddEvent( FirstTimeGray, true, nil, GrayIntro1, nil, "gray_intro1" ) -- 2.3 function gray_headspace_enter() PlayDialog( nil, "M2_SARAHEVID_01" ) -- dialogul nu exista end AddEvent( nil, false, nil, Headspace , nil, "gray_headspace_enter" ) -- 2.3.1 function gray_headspace_sniffer() PlayDialog( nil, "M2_SARAHEVID_03" ) AddEvidence( EHeadspaceSample ) AddEvidenceDescriptionText( EHeadspaceSample , "TEXT2014" ) SetActive(HSniffer, false) SetActive(HPanoHeadspace, false) end AddEvent( nil, false, asmount, HSniffer , nil, "gray_headspace_sniffer" ) -- 2.4.1 function burned_material() -- PlayDialog(nil,"M2_SARAHEVID_26") PlayReenactment( "Art\\Reenactments\\Movie\\reenact1.xmv", "Art\\Reenactments\\Pictures\\reenact1.tga", "TEXT2341", nil, "REENACT1" ) end AddEvent(nil,false,nil,DeskFront,nil,"burned_material") --2.4.2 function burned_scrap() PlayDialog(Sara,"M2_SARAHEVID_27") end AddEvent(nil,false,nil,BurnedScrap,nil,"burned_scrap") --2.4.3 function before_UV_cond() return not IsEventDone( EVBurnedScrapUV ) end function before_UV() PlayDialog(Sara,"M2_SARAH_55") end AddEvent(nil,true,gloves,HBurnedScrap1,"before_UV_cond","before_UV") -- 2.4.4 function gray_burnedscrap_uv() PlayDialog( nil, "M2_SARAHEVID_04" ) end AddEvent( EVBurnedScrapUV, false, uv, HBurnedScrap1 , nil, "gray_burnedscrap_uv" ) -- 2.4.5 function gray_burnedscrap_gloves_cond() return IsEventDone( EVBurnedScrapUV ) end function gray_burnedscrap_gloves() SetVisible( OBurnedScrap, false ) SetActive( HBurnedScrap1 , false ) SetActive( HBurnedScrap2 , false ) SetActive( HBurnedScrap3 , false ) SetVisible( OBurnedScrapFar, false ) SetActive( OBurnedScrapFar, false ) SetVisible ( OPanoGrayBurnedScrap, false) AddEvidence( EScrapHouse ) AddEvidenceDescriptionText( EScrapHouse , "TEXT2008" ) if HasEvidence(EBottleShard) then SetActive ( HPanoDeskFront, false) end end AddEvent( nil, false, gloves, HBurnedScrap1 , "gray_burnedscrap_gloves_cond", "gray_burnedscrap_gloves" ) -- 2.4.6 function broken_glass_click() PlayDialog(Sara,"M2_SARAHEVID_05") end AddEvent(nil,false,nil,BrokenGlass,nil,"broken_glass_click") -- 2.4.7 function collect_broken_colored_glass() AddEvidence(EBottleShard) AddEvidenceDescriptionText(EBottleShard,"TEXT2050") SetActive(OBrokenGlass,false) SetVisible(OBrokenGlass,false) SetVisible( OBrokenGlassFar, false ) SetActive( OBrokenGlassFar, false ) SetVisible( OPanoGrayBrokenGlass, false ) SetActive( OPanoGrayBrokenGlass, false ) if HasEvidence(EScrapHouse) then SetActive ( HPanoDeskFront, false) end NewEvent( nil, EVMolotovCoctail ) end AddEvent(nil,false,gloves,OBrokenGlass,nil,"collect_broken_colored_glass") AddEvent(nil,false,tweezers,OBrokenGlass,nil,"collect_broken_colored_glass") -- 2.5.1 function click_rag() PlayDialog(nil, "M2_SARAHEVID_06") end AddEvent(nil, false, nil, HouseRag, nil, "click_rag") -- 2.5.2 function pick_rag() SetVisible(OHouseRag, false) AddEvidence(ERagHouse) AddEvidenceDescriptionText(ERagHouse, "TEXT2020") SetActive(HHouseRag1, false) SetVisible(ODeskRagFar, false) SetActive(ODeskRagFar, false) SetActive(HHouseRag2, false) if (HasEvidence(ELighter) and IsEventDone(ListenMessage)) then SetActive(HPanoBehindDesk, false) end NewEvent( nil, EVMolotovCoctail ) end AddEvent(nil, false, gloves, HHouseRag1, nil, "pick_rag") AddEvent(nil, false, gloves, HHouseRag2, nil, "pick_rag") -- 2.5.3 function click_lighter() PlayDialog(nil, "M2_SARAHEVID_22") end AddEvent(nil, false, nil, Lighter, nil, "click_lighter") -- 2.5.4 function pick_lighter() SetVisible(OLighter, false) AddEvidence(ELighter) AddEvidenceDescriptionText(ELighter, "TEXT2152") SetActive(HLighter1, false) SetVisible(OLighterFar, false) SetActive(OLighterFar, false) SetActive(HLighter2, false) if (HasEvidence(ERagHouse) and IsEventDone(ListenMessage)) then SetActive(HPanoBehindDesk, false) end end AddEvent(nil, false, gloves, HLighter1, nil, "pick_lighter") AddEvent(nil, false, tweezers, HLighter2, nil, "pick_lighter") AddEvent(nil, false, gloves, HLighter2, nil, "pick_lighter") AddEvent(nil, false, tweezers, HLighter1, nil, "pick_lighter") -- 2.5.5 function gray_molotov_cocktail_cond() return HasEvidence( EBottleShard ) and HasEvidence( ERagHouse ) end function gray_molotov_cocktail() PlayDialog( nil, "M2_SARAHEVID_28" ) UpdateCaseFile(Jason, INFORMATION, "TEXT2231") end AddEvent( nil, false, nil, EVMolotovCoctail , "gray_molotov_cocktail_cond", "gray_molotov_cocktail" ) -- 2.6.1 function click_paper() -- SetVisible(ODeskNotePrints, false ) PlayDialog(nil, "M2_SARAHEVID_07") end AddEvent(nil, false, nil, DeskNote, nil, "click_paper") -- 2.6.2 function paper_print() AddEvidence(EDeskBurntNotePrint) AddEvidenceDescriptionText(EDeskBurntNotePrint, "TEXT2002") SetActive(HDeskNoteFar, false) -- SetVisible(ODeskNoteFar, false ) SetActive(ODeskNote, false) -- SetVisible(ODeskNote, false ) -- SetActive(ODeskNotePrints, false) SetActive(ODeskNotePrints, false ) SetActive(HDeskNotePrints, false) if IsEventDone(ListenMessage) then SetActive(HPanoDesktop, false) end end AddEvent (nil, false, ninhydrin, ODeskNotePrints, nil, "paper_print") -- 2.7 function enter_telephone() PlayDialog(nil, "M2_SARAH_44") end AddEvent(nil, false, nil, DeskPhone, nil, "enter_telephone") -- 2.7.1 function press_redial() PlayDialog(nil, "M2_VOICE_01") PlayDialog(nil, "M2_SARAH_45") SetActive(HPhoneRedial, false) SetActive(HDeskPhoneFar, false) SetActive(HBehindDeskPhone, false) if HasEvidence(EDeskBurntNotePrint) then SetActive(HPanoDesktop, false) end if (HasEvidence(ERagHouse) and HasEvidence(ELighter)) then SetActive(HPanoBehindDesk, false) end end AddEvent(ListenMessage, false, nil, HPhoneRedial, nil, "press_redial") -- 2.8 function comment_window() PlayDialog(nil, "M2_SARAHEVID_08") ChangeLink (HFloorGlass, nil) end AddEvent (nil, false, nil, FloorGlass, nil, "comment_window") -- 2.8.1 function click_window() PlayDialog(nil, "M2_SARAHEVID_11") SetActive(HFloorGlass, false) SetActive(HPanoFloorglass, false) end AddEvent (nil, false, nil, HFloorGlass, nil, "click_window") -- 3.4 Asta am facut noi function gray_closeup() if not IsEventDone( EVGrayCloseUp) then PlayDialog( Jason, "M2_GRAYEXPO_01") PlayDialog( nil, "M2_SARAHEXPO_02") PlayDialog( Jason, "M2_GRAYEXPO_02") end -- DisplayQuestionList(Jason) if not DisplayQuestionList(Jason) then PlayDialog ( Jason, "M2_GRAY_50") end end AddEvent( EVGrayCloseUp, true, nil, SaraJason1, nil, "gray_closeup" ) IncludeFile( "Script\\Gamelogic\\JasonQuestions.lua" ) -- IncludeFile( "Script\\Gamelogic\\SarahHints.lua" ) IncludeFile( "Script\\Gamelogic\\SarahQuestions.lua" ) -- just to enter: FadeIn() SUCKS!!! -- function shed_entry() -- FadeIn() -- ChangeRoom( ShedOpen ) -- end -- AddEvent( nil, true, nil, Shed, nil, "shed_entry" ) -- function hangar_entry() -- FadeIn() -- ChangeRoom( HangarPano ) -- end -- AddEvent( nil, true, nil, Hangar, nil, "hangar_entry" ) -- function boardroom_entry() -- FadeIn() -- ChangeRoom( Boardroom ) -- end -- AddEvent( nil, true, nil, RichieOffice, nil, "boardroom_entry" )