Scripts

lightofdayScript

Morrowind.esm
Variables 3
Local Variables
OnPCEquip
doOnce
damage
Source
1Begin lightofdayScript 2 3float damage 4short OnPCEquip 5short doOnce 6 7if ( menumode == 1) 8 return 9endif 10 11if ( OnPCEquip == 1 ) 12 if ( PCVampire == 1 ) 13 set damage to -7 14 set damage to ( damage * GetSecondsPassed ) 15 Player->ModCurrentHealth, Damage 16 if ( doOnce == 0 ) 17 MessageBox "Your had begins to blister and burn with the pain of a thousand suns. A voice echoes in your mind, 'Never shall you wield this, evil thing.'" 18 set doOnce to -1 19 endif 20 endif 21endif 22 23if ( OnPCEquip != 1 ) 24 set doOnce to 0 25endif 26 27End lightofdayScript