Scripts

beastbearScript

Bloodmoon.esm
Variables 3
Local Variables
doOnce
followOnce
companion
Source
1Begin beastbearScript 2 3;CHECKS RIEKLINGS KILLED, GIVES BEAR TRAVEL PACKAGE, SETS JOURNALS, CHECKS BEAR HEALTH, DEATH 4 5short doOnce 6short followOnce 7short companion 8 9if ( OnDeath == 1 ) 10 if ( GetJournalIndex BM_Beasts < 100 ) 11 Journal BM_Beasts 105 12 endif 13endif 14 15if ( GetJournalIndex BM_Beasts == 40 ) 16 if ( GetHealth > 800 ) 17 ;THIS IS WHERE TO CHECK IF BEAR IS HEALED 18 Journal BM_Beasts 50 19 endif 20endif 21 22;THIS IS THE PART WHERE WE CHECK TO SEE IF PLAYER GOT THE ARROW OUT 23 24if ( Player->GetItemCount "BM_Arrow_riekling_uni" > 0 ) 25 if ( GetJournalIndex BM_Beasts < 40 ) 26 Journal BM_Beasts 40 27 set companion to 0 28 endif 29endif 30 31 32if ( riekkilled >= 5 ) 33 if ( GetJournalIndex BM_Beasts < 30 ) 34 Journal BM_Beasts 30 35 set companion to 1 36 endif 37endif 38 39if ( GetDisabled == 0 ) 40 if ( GetJournalIndex BM_Beasts < 10 ) 41 Disable 42 elseif ( GetJournalIndex BM_Stones >= 100 ) 43 Disable 44 endif 45elseif ( GetDisabled == 1 ) 46 if ( GetJournalIndex BM_Beasts >= 10 ) 47 if ( GetJournalIndex BM_Beasts < 100 ) 48 Enable 49 endif 50 endif 51endif 52 53if ( GetDistance Player <= 512 ) 54 if ( GetJournalIndex BM_Beasts == 10 ) 55 if ( doOnce == 0 ) 56 StartCombat BM_riekling_be_UNIQUE1 57 set doOnce to 1 58 Journal BM_Beasts 20 59 endif 60 endif 61endif 62 63if ( GetJournalIndex BM_Beasts == 50 ) 64 if ( followOnce == 0 ) 65 AiFollow Player 0 0 0 0 0 0 66 set followOnce to 1 67 endif 68endif 69 70if ( GetJournalIndex BM_Beasts == 100 ) 71 if ( followOnce == 1 ) 72 AiWander 128 6 0 40 30 20 0 0 0 0 0 0 73 set followOnce to 2 74 endif 75endif 76 77 78 79 80 81 82End beastbearScript