BILL_FG_Hrelvesuu
Morrowind.esm
Variables
5
Local Variables
once1
count1
LOSTest
deathTest
questTest
Source
1begin BILL_FG_Hrelvesuu
2; behaveour for Larienna's nemisis
3;
4; script location: should be placed on "Hrelvesuu" id: 'daedroth_fg_nchur'
5
6; variables
7short once1
8short count1
9short LOSTest
10short deathTest
11float questTest
12
13
14if ( MenuMode == 1 )
15 return
16endif
17
18if ( once1 == 1 )
19 if ( count1 == 0 )
20 if ( GetLOS "Larienna Macrina" == 1 )
21 ; if we see Larienna Macrina, attack her
22; Say "Vo\Misc\bill_intruderalert.wav", "Intruder Alert! Intruder Alert!"
23 StartCombat, "Larienna Macrina"
24 set once1 to 0 ; mission accomplished
25 endif
26 endif
27 set count1 to ( count1 + 1 )
28 if ( count1 > 20 )
29 ; check every 20 frames
30 set count1 to 0
31 endif
32endif
33
34if ( OnDeath == 1 )
35 ; when we are killed...
36 if ( GetJournalIndex FG_Nchurdamz > 0 )
37 ; ... and if the player is on the quest ...
38 Player->Journal FG_Nchurdamz 90
39 set "Larienna Macrina".questOver to 1
40 ; ... it's over.
41 endif
42endif
43
44
45end BILL_FG_Hrelvesuu