Scripts

TR_m7_EEC_Brandysmash

TR_Mainland.esm
Variables 3
Local Variables
control
MessageOn
Button
Source
1Begin TR_m7_EEC_Brandysmash 2 3short control 4short MessageOn 5short Button 6 7; Disable before the quest starts 8if ( GetJournalIndex "TR_m7_EEC_Narsis5" < 10 ) 9 if ( GetDisabled == 0 ) 10 disable 11 endif 12 return 13endif 14 15; Disable after the quest is completed 16if ( GetJournalIndex "TR_m7_EEC_Narsis5" >= 100 ) 17 if ( GetDisabled == 0 ) 18 disable 19 endif 20 return 21endif 22 23; Enable during the quest 24if ( GetDisabled == 1 ) 25 enable 26 return 27endif 28 29if ( OnActivate == 1 ) 30 if ( GetJournalIndex "TR_m7_EEC_Narsis5" >= 10 ) 31 if ( GetJournalIndex "TR_m7_EEC_Narsis5" < 100 ) 32 if ( control == 0 ) 33 set MessageOn to 1 34 endif 35 endif 36 endif 37endif 38 39if ( MessageOn == 1 ) 40 ; Show the MessageBox with options 41 MessageBox "The crate is packed tight with sealed bottles of Cyrodiilic brandy.", "Smash the bottles.", "Leave them alone." 42 set MessageOn to 2 43endif 44 45if ( MessageOn == 2 ) 46 set Button to GetButtonPressed 47 if ( Button == -1 ) 48 return 49 endif 50 if ( Button == 0 ) 51 ; Smash the bottles 52 Journal "TR_m7_EEC_Narsis5" 45 53 MessageBox "You smash the stored brandy, and watch the contents wash away." 54 TR_m7_EEC_brandycrate->removeitem "potion_cyro_brandy_01" 30 55 TR_m7_EEC_brandycrate->additem "T_Com_BrokenBottle_02" 30 56 set control to 1 57 set MessageOn to 0 58 return 59 elseif ( Button == 1 ) 60 ; Leave them alone 61 set MessageOn to 0 62 return 63 endif 64endif 65 66End