Scripts

eb_pestScript

Morrowind.esm
Variables 1
Local Variables
doonce
Source
1Begin eb_pestScript 2 3;if ( CellChanged == 0 ) 4; Return 5;endif 6 7short doonce 8 9if ( doonce == -1 ) 10 return 11endif 12 13if ( GetJournalIndex EB_Pest >= 20 ) 14 if ( GetDisabled == 1 ) 15 Enable 16 endif 17else 18 if ( GetDisabled == 0 ) 19 Disable 20 endif 21endif 22 23If ( OnDeath == 1 ) 24 set ratskilled to ratskilled + 1 25endif 26 27if ( GetJournalIndex EB_Pest >=25 ) 28 if ( GetJournalIndex EB_Pest <= 30 ) 29 if ( GetJournalIndex EB_Pest != 26 ) 30 if ( ratskilled == 10 ) 31 Journal "EB_Pest" 35 32 set doonce to -1 33 endif 34 endif 35 endif 36endif 37 38 39 40End