Scripts

lugrubScript

Morrowind.esm
Variables 3
Local Variables
doOnce
NoLore
timer
Source
1Begin lugrubScript 2 3short doOnce 4short NoLore 5float timer 6 7if ( CellChanged == 1 ) 8 Set doOnce to 0 9 Set timer to 0 10 Return 11endif 12 13if ( MenuMode == 1 ) 14 ;don't increment timer in menu mode... 15 Return 16endif 17 18if ( GetJournalIndex IL_GnisisBlight >= 10 ) 19 ;if you *don't* kill lugrub in last quest, it is now "safe" to be here 20 ;you get one free stopcombat 21 if ( doOnce != -1 ) 22 Set doOnce to -1 23 StopCombat 24 endif 25 Return 26endif 27 28if ( doOnce == 0 ) 29 if ( GetDistance Player < 400 ) 30 Set doOnce to 1 31 ForceGreeting 32 Set timer to 0 33 endif 34endif 35 36if ( doOnce == 1 ) 37 Set timer to ( timer + GetSecondsPassed ) 38 if ( timer > 10 ) 39 StartCombat Player 40 endif 41 Return 42endif 43 44End