karstaagtrollScript
Bloodmoon.esm
Variables
3
Local Variables
doOnce
onfire
hasspell
Source
1Begin karstaagtrollScript
2
3short doOnce
4short onfire
5short hasspell
6
7if ( GetJournalIndex BM_FrostGiant2 > 10 )
8 if ( krishcount == 9 )
9 if ( GetJournalIndex BM_FrostGiant2 < 70 )
10 Journal BM_FrostGiant2 70
11 else
12 return
13 endif
14 endif
15endif
16
17if ( doOnce == 1 )
18 return
19endif
20
21if ( GetSpell BM_fireregen == 1 )
22 set hasspell to 1
23endif
24
25if ( GetEffect sEffectFireDamage == 0 )
26 if ( onfire == 1 )
27 set onfire to 0
28 endif
29elseif ( GetEffect sEffectFireDamage == 1 )
30 if ( onfire == 0 )
31 set onfire to 1
32 endif
33endif
34
35if ( onfire == 1 )
36 if ( hasspell == 1 )
37 RemoveSpell "BM_fireregen"
38 set hasspell to 0
39 endif
40elseif ( onfire == 0 )
41 if ( hasspell == 0 )
42 AddSpell "BM_fireregen"
43 set hasspell to 1
44 endif
45endif
46
47
48
49if ( GetJournalIndex BM_FrostGiant1 > 10 )
50 if ( trollsdead == 8 )
51 return
52 endif
53endif
54
55if ( OnDeath == 1 )
56 if ( doOnce == 0 )
57 set trollsdead to ( trollsdead + 1 )
58 set krishcount to ( krishcount + 1 )
59 set doOnce to 1
60 endif
61endif
62
63
64
65
66
67End karstaagtrollScript