Scripts

TR_m1_q_CompareLedgersFirst

TR_Mainland.esm
Variables 3
Local Variables
state
doOnce
OnPCAdd
Source
1Begin TR_m1_q_CompareLedgersFirst 2 3short state 4short doOnce 5short OnPCAdd 6 7If ( state == 0 ) 8 If ( OnActivate ) 9 If ( Player->GetItemCount TR_m1_q_OfficialPTRRLedgers >= 1 ) 10 Journal TR_m1_RR_MQ_7 50 11 set state to 1 12 Endif 13 Activate 14 Endif 15Endif 16 17If ( MenuMode ) 18 return 19Endif 20 21If ( state == 1 ) 22 If ( MenuMode == 0 ) 23 TR_m1_Azariah_Thelas->ForceGreeting 24 set state to 2 25 Endif 26Endif 27 28If ( OnPCAdd ) 29 set doOnce to 1 30Endif 31 32If ( GetJournalIndex TR_m1_RR_MQ_8 >= 30 ) 33 If ( doOnce == 0 ) 34 If ( GetDisabled == 0 ) 35 disable 36 Endif 37 Endif 38Endif 39 40End