ouch_wraithguard
Morrowind.esm
Variables
3
Local Variables
extraDamage
doOnce
OnPCEquip
Source
1Begin ouch_wraithguard
2
3short extraDamage
4short doOnce
5short OnPCEquip
6;global short wraithguardEquipped
7
8if ( OnPCEquip == 1 )
9 ;is wraithguard equipped?
10 set wraithguardEquipped to 1
11else
12 set wraithguardEquipped to 0
13 return
14endif
15
16if ( doOnce == 1 )
17 return
18endif
19
20;hurt PC BAD first time equipped
21
22Set extraDamage to Random 25
23Set extraDamage to -200 - extraDamage
24player->ModHealth extraDamage
25set doOnce to 1
26
27End