Scripts

TR_m2_q_sc_NisirelDiary

TR_Mainland.esm
Variables 2
Local Variables
OnPCEquip
PCSkipEquip
Source
1Begin TR_m2_q_sc_NisirelDiary 2 3; For quest Complicated Competition 4; Updates journal on player opening Nisirel's Diary 5 6short OnPCEquip 7short PCSkipEquip 8 9set PCSkipEquip to 0 10 11; Activating from the inventory 12 13if ( MenuMode ) 14 set PCSkipEquip to 1 15 if ( OnPCEquip ) 16 if ( GetJournalIndex TR_m2_TGi_ComplicatComp > 0 ) 17 if ( GetJournalIndex TR_m2_TGi_ComplicatComp < 40 ) 18 Journal TR_m2_TGi_ComplicatComp 40 19 if ( GetPCCell "Tel Gilan, Nisirel's Potions" ) 20 "TR_m2_Ervul Dranoth"->PositionCell 218743 13516 909 2220 "Tel Gilan" ;marker TR_m2_MARK_Ervul 21 "TR_m2_Ervul Dranoth"->AIWander 0 0 0 0 0 0 0 0 0 0 0 0 22 endif 23 endif 24 endif 25 set OnPCEquip to 0 26 set PCSkipEquip to 0 27 Activate 28 endif 29 Return 30endif 31 32; Activating in the world 33if ( OnActivate ) 34 if ( GetJournalIndex TR_m2_TGi_ComplicatComp > 0 ) 35 if ( GetJournalIndex TR_m2_TGi_ComplicatComp < 40 ) 36 Journal TR_m2_TGi_ComplicatComp 40 37 if ( GetPCCell "Tel Gilan, Nisirel's Potions" ) 38 "TR_m2_Ervul Dranoth"->PositionCell 218743 13516 909 2220 "Tel Gilan" ;marker TR_m2_MARK_Ervul 39 "TR_m2_Ervul Dranoth"->AIWander 0 0 0 0 0 0 0 0 0 0 0 0 40 endif 41 endif 42 endif 43 Activate 44endif 45 46End