Scripts

TR_m7_ShiSha_DreraynSedri_sc

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m7_ShiSha_DreraynSedri_sc 2 3short TR_Map 4short control 5short controlQ 6short NoLore 7short T_Local_NPC 8short T_Local_NoLore 9 10if ( TR_Map != 7 ) 11 set TR_Map to 7 12endif 13 14; Ravos dies from exposure if you kill Drerayn at specific points in the quest 15if ( OnDeath ) 16 if ( GetJournalIndex TR_m7_ShiSha_FamilyAffair < 60 ) 17 "TR_m7_q_Ravos Goran"->SetHealth 0 18 elseif ( GetDeadCount "TR_m7_q_Ravos Goran" >= 1 ) 19 if ( GetJournalIndex TR_m7_ShiSha_FamilyAffair < 100 ) 20 Journal TR_m7_ShiSha_FamilyAffair 110 21 endif 22 endif 23endif 24 25; Drerayn attack Ravos if you escort him too close 26if ( GetJournalIndex TR_m7_ShiSha_FamilyAffair == 60 ) 27 if ( GetDistance "TR_m7_q_Ravos Goran" < 512 ) 28 if ( GetLOS "TR_m7_q_Ravos Goran" == 1 ) 29 Journal TR_m7_ShiSha_FamilyAffair 68 30 ForceGreeting 31 endif 32 endif 33endif 34 35; disables once you escort Ravos to safety 36if ( GetJournalIndex TR_m7_ShiSha_FamilyAffair < 70 ) 37 return 38elseif ( GetDisabled ) 39 return 40elseif ( GetJournalIndex TR_m7_ShiSha_FamilyAffair == 70 ) 41 Disable 42 return 43endif 44 45End