-- 5.1000 function restaurant_intro() if not IsEventDone( EVRestaurantIntro ) then PlayIntroMovie("Art\\Movie\\Flyin\\intro_restaurant01a.xmv") end if not IsEventDone( EVRestaurantIntro ) then ChangeRoom( RestaurantEstab ) FadeIn() PlayDialog( Warrick, "M2_WARRICK_26" ) -- nil <-> Warrick ( nu era definit) ChangeRoom( RestaurantMarkus ) -- Trebuie definit caracterul PlayDialog( Markus, "M2_MARKUS_27" ) -- nil <-> Markus ( nu era definit) ChangeRoom( RestaurantEstab ) PlayDialog( Warrick, "M2_WARRICK_353" ) -- nil <-> Warrick ( nu era definit) PlayDialog( Markus, "M2_MARKUS_354" ) -- nil <-> Markus ( nu era definit) AddSuspect( Markus, "Markus Hellen", "Art\\Reenactments\\Pictures\\Markus Vanderhellen.tga" ) UpdateCaseFile( Markus, INFORMATION, "_TB_E3547" ) ChangeLink( HPorkchopFar, TOOLS ) else if IsQuestionAsked( WarrantSuspects, "_TB_Q24" ) then SetVisible( OMarkusRest, false ) SetActive( OMarkusRest, false ) end ChangeRoom( RestaurantEstab ) FadeIn() end end AddEvent( EVRestaurantIntro, true, nil, Restaurant, nil, "restaurant_intro" ) -- Display questions function display_questions() if not DisplayQuestionList( Markus ) then PlayDialog( Markus, "M2_MARKUS_1362" ) end end AddEvent( nil, true, nil, RestaurantMarkus, nil, "display_questions" ) AddEvent( nil, true, nil, InterroMarkusEstab, nil, "display_questions" ) function display_questions_char() -- DisplayQuestionList( Markus ) if not DisplayQuestionList( Markus ) then PlayDialog( Markus, "M2_MARKUS_1362" ) end end AddEvent( nil, true, nil, Markus, nil, "display_questions_char" ) --------------------------------------------------------------------------------------------------------------------------- function porchop_zoom() ZoomToRoom( RestaurantPorkchopClose ) end AddEvent( nil, true, magnifier, HPorkchopFar, nil, "porchop_zoom" ) -- 6.0000 function restaurant_alley_dialog() PlayDialog( nil, "M2_WARRICK_35" ) end AddEvent( nil, false, nil, RestaurantAlley, nil, "restaurant_alley_dialog" ) -- 6.1110 function restaurant_reciept1_closeup() PlayDialog( nil, "M2_WARRICK_36" ) end AddEvent( nil, false, nil, RestaurantReceipt1, nil, "restaurant_reciept1_closeup" ) -- 6.1120 function restaurant_reciept1_pick() SetVisible( ORestaurantReceipts1A, false ) SetVisible( ORestaurantReceipts1B, false ) SetVisible( ORestaurantReceipts1C, false ) SetVisible( ORestaurantReceipt1Far, false ) SetActive( HRestaurantReceipts1, false ) SetActive( HRestaurantReceipt1Far, false ) AddEvidence( EDAsparagusReceipt ) AddEvidenceDescriptionText( EDAsparagusReceipt, "_TB_E117" ) end AddEvent( nil, false, gloves, HRestaurantReceipts1, nil, "restaurant_reciept1_pick" ) -- 6.1121 function restaurant_reciept3_closeup() PlayDialog( nil, "M2_WARRICK_38" ) end AddEvent( nil, false, nil, RestaurantReceipt3, nil, "restaurant_reciept3_closeup" ) -- 6.1131 function restaurant_reciept3_pick() SetVisible( ORestaurantReceipts3A, false ) SetVisible( ORestaurantReceipts3B, false ) SetVisible( ORestaurantReceipts3C, false ) SetVisible( ORestaurantReceipt3Far, false ) SetActive( HRestaurantReceipts3, false ) SetActive( HRestaurantReceipt3Far, false ) AddEvidence( EDBakedAlaskaReceipt ) AddEvidenceDescriptionText( EDBakedAlaskaReceipt, "_TB_E119" ) end AddEvent( nil, false, gloves, HRestaurantReceipts3, nil, "restaurant_reciept3_pick" ) -- 6.1130 function restaurant_reciept2_closeup() PlayDialog( nil, "M2_WARRICK_37" ) end AddEvent( nil, false, nil, RestaurantReceipt2, nil, "restaurant_reciept2_closeup" ) -- 6.1131 function restaurant_reciept2_pick() SetVisible( ORestaurantReceipts2A, false ) SetVisible( ORestaurantReceipts2B, false ) SetVisible( ORestaurantReceipts2C, false ) SetVisible( ORestaurantReceipt2Far, false ) SetActive( HRestaurantReceipts2, false ) SetActive( HRestaurantReceipt2Far, false ) AddEvidence( EDEggplantReceipts ) AddEvidenceDescriptionText( EDEggplantReceipts, "_TB_E117" ) end AddEvent( nil, false, gloves, HRestaurantReceipts2, nil, "restaurant_reciept2_pick" ) --------------------------------------------------------------------------------------- -- 6.1140 function restaurant_food_dialog() PlayDialog( nil, "M2_WARRICK_39" ) end AddEvent( nil, false, nil, RestaurantPorkchopFar, nil, "restaurant_food_dialog" ) -- 6.1145 -- OBS: Cand popup-ul va fi available( poti lua evidente), conditia trebuie inlaturata --function restaurant_food_pick_cond() -- return HasEvidence( ETDiscFoodSubstance ) --end function restaurant_food_pick() SetVisible( OPorkchopFar1, false ) SetVisible( OPorkchopFar2, false ) SetVisible( ORestaurantPorkchopDumpster, false ) SetActive( HPorkchopFar, false ) SetActive( HRestaurantPorkchopDumpster, false ) SetActive( HRestaurantPorkchopClose, false) AddEvidence( EIDiscardedFood ) AddEvidenceDescriptionText( EIDiscardedFood, "_TB_E120" ) end AddEvent( EVResFood, false, gloves, HPorkchopFar, "restaurant_food_pick_cond", "restaurant_food_pick" ) -- 6.1150 -- Sunt probleme cu HOTSPOT-ul HPorkchopFar - nu face legatura cu TOOLS function food_closeup_lens() -- ChangeLink( HPorkchopFar, RestaurantPorkchopClose ) -- ChangeRoom( RestaurantPorkchopClose, true) PlayDialog( nil, "M2_WARRICK_40" ) end AddEvent( nil, false, nil, RestaurantPorkchopClose, nil, "food_closeup_lens") -- 6.1155 function restaurant_powder_food_pick() -- ChangeLink( HPorkchopFar, TOOLS ) -- SetVisible( ORestaurantPorkchopClose1, false) -- SetVisible( EOBJ_porkchop, false ) -- SetVisible( ORestaurantPorkchopClose2, false) -- SetVisible( ORestaurantPorkchopClose3, false) -- SetVisible( ORestaurantPorkchopClose4, false) SetActive( HRestaurantPorkchopClose, false) SetActive( EHOTSPOT_porkchop, false) AddEvidence( ETDiscFoodSubstance ) AddEvidenceDescriptionText( ETDiscFoodSubstance, "_TB_E121" ) end AddEvent( EVResPowder, false, asmount, HRestaurantPorkchopClose, nil, "restaurant_powder_food_pick") -- 6.1160 function restaurant_torn_cloth_dialog() PlayDialog( nil, "M2_WARRICK_41" ) end AddEvent( nil, false, nil, RestaurantTornclothClose, nil, "restaurant_torn_cloth_dialog") -- 6.1165 function restaurant_torn_cloth_pick() SetVisible( ORestaurantTornclothClose, false ) SetVisible( ORestaurantTornclothFar, false ) SetActive( HRestaurantTornclothClose, false ) SetActive( HRestaurantTornclothFar, false ) SetActive( HRestaurantTornclothEstab, false ) AddEvidence( EISnaggedClothFrag ) AddEvidenceDescriptionText( EISnaggedClothFrag, "_TB_E124" ) end AddEvent( nil, false, tweezers, HRestaurantTornclothClose, nil, "restaurant_torn_cloth_pick" ) --------------------------------------------------------------------------------------------------------------------------- -- Warrick Hints function rest_warrick() DisplayQuestionList( Warrick ) end AddEvent( nil,true, nil, RestaurantWarrick, nil, "rest_warrick" ) IncludeFile( "Script\\Gamelogic\\MarkusQuestions.lua" )