Scripts

dreamerWorkerScript

Morrowind.esm
Variables 1
Local Variables
doOnce
Source
1Begin dreamerWorkerScript 2 3;makes the workers disappear if they're dead and the heart is destroyed 4 5short doOnce 6;global short DestroyBlight 7 8if ( doOnce == 0 ) 9 if ( HeartDestroyed == 1 ) 10 SetHealth 0 11 Set doOnce to 1 12 endif 13 14 if ( GetDeadCount "dagoth_ur_2" > 0 ) 15 SetHealth 0 16 Set doOnce to 1 17 endif 18endif 19 20if ( doOnce != 2 ) 21 if ( DestroyBlight == -1 ) 22 Disable 23 Set doOnce to 2 24 endif 25endif 26 27End