Scripts

TR_m3_MG_OE_Q6_Guar_sc

TR_Mainland.esm
Variables 2
Local Variables
doOnce
state
Source
1Begin TR_m3_MG_OE_Q6_Guar_sc 2 3short doOnce 4short state ; 0 = should disable; 1 = should enable 5 6if ( getlos player == 1 ) 7 if ( getjournalindex tr_m3_mg_oe_q6 == 50 ) 8 Journal "TR_m3_MG_OE_q6" 60 9 endif 10endif 11 12if ( doOnce > 0 ) 13 return 14endif 15 16if ( GetJournalIndex "TR_m3_MG_OE_q6" < 50 ) ;They are enabled when Ernandre tells the player about them to minimize the potenial of the quest breaking. 17 set state to 0 18elseif ( GetJournalIndex "TR_m3_MG_OE_q6" == 85 ) ;They are disabled forever after you lie to Ralani to not worry about the path of lying to her, then killing the guar 19 set state to 0 20 set doOnce to 1 21elseif ( GetJournalIndex "TR_m3_MG_OE_q6" == 110 ) ;They are disabled forever after you lie to Ralani to not worry about the path of lying to her, then killing the guar 22 set state to 0 23 set doOnce to 1 24elseif ( GetJournalIndex "TR_m3_MG_OE_q6" >= 150 ) ; They are disabled forever after you finish the quest in a nonstandard way 25 set state to 0 26 set doOnce to 1 27else ; otherwise, show them 28 set state to 1 29endif 30 31if ( state == 0 ) 32 if ( GetDisabled == 0 ) 33 disable 34 "TR_m3_MG_OE_Q6_Haypile1"->disable 35 "TR_m3_MG_OE_Q6_Haypile2"->disable 36 "TR_m3_MG_OE_Q6_Haypile3"->disable 37 "TR_m3_MG_OE_Q6_Haypile4"->disable 38 endif 39elseif ( GetDisabled ) 40 enable 41 "TR_m3_MG_OE_Q6_Haypile1"->enable 42 "TR_m3_MG_OE_Q6_Haypile2"->enable 43 "TR_m3_MG_OE_Q6_Haypile3"->enable 44 "TR_m3_MG_OE_Q6_Haypile4"->enable 45endif 46 47end