Scripts

TR_m2_q_A8_5_Undead

TR_Mainland.esm
Source
1Begin TR_m2_q_A8_5_Undead 2 3if ( GetFight < 100 ) 4 if ( TR_m2_q_A8_5_Dras_Varet->GetAttacked == 1 ) 5 if ( GetDistance Player < 2048 ) 6 SetFight 100 7 StartCombat Player 8 endif 9 elseif ( TR_m2_q_A8_5_Dras_Varet->GetFight == 100 ) 10 if ( GetDistance Player < 2048 ) 11 SetFight 100 12 StartCombat Player 13 endif 14 elseif ( GetJournalIndex TR_m2_A8_5_FreeAtLast == 60 ) 15 if ( GetDistance Player < 2048 ) 16 SetFight 100 17 StartCombat Player 18 endif 19 endif 20endif 21 22if ( GetHealth > 0 ) 23 if ( GetDeadCount TR_m2_q_A8_5_Dras_Varet > 0 ) 24 SetHealth -5 25 endif 26endif 27 28end