krishScript
Bloodmoon.esm
Variables
4
Local Variables
doOnce
openDoor
followreset
timer
Source
1Begin krishScript
2
3short doOnce
4short openDoor
5short followreset
6float timer
7
8if ( GetJournalIndex BM_FrostGiant1 < 10 )
9 if ( GetJournalIndex BM_FrostGiant2 < 10 )
10 return
11 endif
12endif
13
14if ( GetJournalIndex BM_FrostGiant1 == 80 ) ;this section makes sure that his follow gets reset if Krish gets lost and confused
15 if ( followreset == 0 )
16 if ( MenuMode == 0 )
17 AiWander 128 0 0 0 0 0
18 set followreset to 1
19 endif
20 elseif ( followreset == 1 )
21 if ( MenuMode == 0 )
22 set timer to ( timer + GetSecondsPassed )
23 if ( timer > 2 )
24 AiFollow Player 0 0 0 0 0 0
25 set followreset to 2
26 endif
27 endif
28 endif
29endif
30
31if ( doOnce == 0 )
32 if ( GetJournalIndex BM_FrostGiant1 >= 10 )
33 setfight 30
34 set doOnce to 1
35 elseif ( GetJournalIndex BM_FrostGiant2 >= 10 )
36 setfight 90
37 set doOnce to 1
38 endif
39endif
40
41if ( doOnce == 1 )
42 if ( GetJournalIndex BM_FrostGiant1 >= 30 )
43 if ( GetDistance Player <= 512 )
44 ForceGreeting
45 set doOnce to 2
46 endif
47 endif
48endif
49
50if ( OnDeath == 1 )
51 if ( GetJournalIndex BM_FrostGiant1 >= 75 )
52 if ( GetJournalIndex BM_FrostGiant1 < 90 )
53 Journal BM_FrostGiant1 85
54 endif
55 elseif ( GetJournalIndex BM_FrostGiant2 == 50 )
56 set krishcount to ( krishcount + 1 )
57 endif
58endif
59
60if ( trollsdead == 8 )
61 if ( openDoor == 0 )
62 if ( GetDistance Player <= 512 )
63 if ( GetJournalIndex BM_FrostGiant1 > 0 )
64 ;Journal BM_FrostGiant1 80
65 ForceGreeting
66 set openDoor to 1
67 endif
68 endif
69 endif
70endif
71
72
73
74
75
76End krishScript