BILL_synette_jeline
Morrowind.esm
Variables
9
Local Variables
testDist
testLOS
doneHighSign
testBait
doneBait
OnPCHitMe
bow
blade
count
Source
1begin BILL_synette_jeline
2; if player is spotted, then give muscle the high-sign to take position
3; if player takes bait, then attack
4
5; script location: should be placed on "synette jeline" (NPC)
6
7short testDist
8short testLOS
9short doneHighSign
10short testBait
11short doneBait
12short OnPCHitMe
13
14short bow
15short blade
16short count
17
18if ( MenuMode == 1 )
19 return
20endif
21
22; *********** AI augmentation **********
23;if ( count == 0 )
24; set testDist to GetDistance, Player
25; if ( testDist < 400 )
26; ; melee distance
27; SetMarksman, 55
28; SetShortblade, 60
29; endif
30; if ( testDist > 400 )
31; ; missile distance
32; SetMarksman, 60
33; SetShortblade, 55
34; endif
35;endif
36;set count to ( count + 1 )
37;if ( count > 3 )
38; set count to 0
39;endif
40; *********** AI augmentation **********
41
42if ( doneHighSign == 1 )
43 ;set testDist to ( GetDistance, player )
44 ;if ( testDist < 1200 )
45 ; if within sighting distance
46 ; set testLOS to ( GetLOS, player )
47 ; if ( testLOS == 1 )
48 ; and if she spots the player
49 "tavynu tedran"->AITravel, -95568.648, 113477.344, 548.457, 0
50 set doneHighSign to 2
51 ; endif
52 endif
53endif
54
55if ( doneBait == 0 )
56 ;set testBait to "expensive_ring_01_BILL"->GetDistance, player
57 ;if ( testBait < 200 )
58 if ( player->GetItemCount "expensive_ring_01_BILL" > 0 )
59 Player->Say "Vo\Misc\bill_nogooddeed.wav", "No good deed goes unpunished, Outlander."
60 StartCombat player
61 SetFight 100
62 "tavynu tedran"->StartCombat Player
63 "tavynu tedran"->SetFight 100
64 set doneBait to 1
65 endif
66endif
67
68if ( doneBait == 1 )
69 if ( doneHighSign == 2 )
70 if ( GetJournalIndex MV_LostRing >= 20 )
71 if ( OnPCHitMe == 1 )
72 Journal MV_LostRing 40
73 set doneBait to -1
74 set doneHighSign to -1
75 endif
76 endif
77 endif
78endif
79
80end BILL_synette_jeline