Scripts

TR_m3_NPC_Dolvys_Teloth

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m3_NPC_Dolvys_Teloth 2 3; for TR_m3_Bala_WLCR quest 4; controlQ == 1 -- spoken about the quest 5; controlQ == 2 -- talked to him at the end of the quest 6; controlQ == -1 -- talked to him after snitching to Atran Oran 7; control == 1 -- currently following you 8; control == 2 -- stop following you and return to AT 9 10short TR_Map 11short control 12short controlQ 13short NoLore 14short T_Local_NPC 15short T_Local_NoLore 16 17; to avoid forcegreeting loop when not in AT 18if ( MenuMode ) 19 return 20endif 21 22if ( TR_m3_WLCR_FightDeath ) 23 if ( CellChanged ) 24 if ( GetDisabled == 0 ) 25 Disable 26 endif 27 endif 28elseif ( GetJournalIndex TR_m3_Bala_WLCR == 80 ) 29 if ( CellChanged ) 30 if ( GetDisabled == 0 ) 31 Disable 32 endif 33 endif 34elseif ( GetDisabled ) 35 Enable 36endif 37 38if ( GetJournalIndex TR_m3_Bala_WLCR == 60 ) 39 if ( GetPCCell "Almas Thirr" != 1 ) 40 if ( control == 1 ) 41 set control to 2 42 forcegreeting 43 return 44 endif 45 endif 46endif 47 48if ( OnDeath ) 49 if ( GetJournalIndex TR_m3_Bala_WLCR >= 10 ) 50 if ( GetJournalIndex TR_m3_Bala_WLCR < 100 ) 51 Journal TR_m3_Bala_WLCR 230 52 endif 53 endif 54 if ( GetPCCell "Almas Thirr" == 1 ) 55 set TR_m3_WLCR_FightDeath to 1 56 endif 57endif 58 59if ( TR_Map ) 60 return 61endif 62 63set TR_Map to 3 64 65End