giantScript
Bloodmoon.esm
Variables
3
Local Variables
doOnce
onfire
hasspell
Source
1Begin giantScript
2
3short doOnce
4short onfire
5short hasspell
6
7if ( GetJournalIndex BM_WildHunt > 82 )
8 return
9endif
10
11if ( GetEffect sEffectFireDamage == 0 )
12 if ( onfire == 1 )
13 set onfire to 0
14 endif
15elseif ( GetEffect sEffectFireDamage == 1 )
16 if ( onfire == 0 )
17 set onfire to 1
18 endif
19endif
20
21if ( onfire == 1 )
22 if ( hasspell == 1 )
23 RemoveSpell "BM_fireregen"
24 set hasspell to 0
25 endif
26elseif ( onfire == 0 )
27 if ( hasspell == 0 )
28 AddSpell "BM_fireregen"
29 set hasspell to 1
30 endif
31endif
32
33if ( doOnce == 0 )
34 if ( GetDistance Player <= 1028 )
35 Journal BM_WildHunt 80
36 set doOnce to 1
37 endif
38endif
39
40if ( OnDeath == 1 )
41 if ( GetJournalIndex BM_WildHunt < 82 )
42 Journal BM_WildHunt 82
43 endif
44endif
45
46End giantScript