Scripts

cattleScript

Morrowind.esm
Variables 2
Local Variables
OnPCHitme
AiSet
Source
1Begin cattleScript 2 3Short OnPCHitme 4short AiSet 5 6if ( menumode == 1 ) 7 return 8endif 9 10if ( AiSet == 0 ) 11 setfight 20 12 setflee 100 13 set AiSet to -1 14endif 15 16if ( PCVampire != 1 ) 17 return 18endif 19 20if ( OnDeath == 1 ) 21 if ( GetJournalIndex "VA_VampHunter" == 100 ) 22 Journal "VA_VampHunter" 110 23 elseif ( GetJournalIndex "VA_VampCountess" == 60 ) 24 Journal "VA_VampCountess" 70 25 elseif ( GetJournalIndex "VA_VampAmulet" == 40 ) 26 Journal "VA_VampAmulet" 50 27 endif 28endif 29 30 31if ( VampClan == 0 ) 32 return 33elseif ( VampClan == 1 ) 34 if ( GetJournalIndex "VA_VampHunter" == 100 ) 35 if ( OnPCHitMe == 1 ) 36 SetFight 0 37 SetFlee 0 38 StopCombat Player 39 endif 40 endif 41elseif ( VampClan == 2 ) 42 if ( GetJournalIndex "VA_VampCountess" == 60 ) 43 if ( OnPCHitMe == 1 ) 44 SetFight 0 45 SetFlee 0 46 StopCombat Player 47 endif 48 endif 49elseif ( VampClan == 3 ) 50 if ( GetJournalIndex "VA_VampAmulet" == 40 ) 51 if ( OnPCHitMe == 1 ) 52 SetFight 0 53 SetFlee 0 54 StopCombat Player 55 endif 56 endif 57endif 58 59 60End cattleScript