TR_m3_NPC_Aim_IndGrd_scp
TR_Mainland.esm
Variables
7
Local Variables
NoLore
T_Local_NPC
T_Local_NoLore
TR_Map
control
controlQ
nearUlvo
Source
1Begin TR_m3_NPC_Aim_IndGrd_scp
2
3;a script for the indoril guard helping the player with the raid
4
5short NoLore
6short T_Local_NPC
7short T_Local_NoLore
8short TR_Map
9short control
10short controlQ
11
12short nearUlvo
13
14if ( GetDistance "TR_m3_Ulvo Telvor" <= 300 )
15 if ( nearUlvo == 0 )
16 set nearUlvo to 1
17 endif
18endif
19
20if ( control >= 0 )
21 if ( GetJournalIndex "TR_m3_Aim_Dreugh2" >= 90 )
22 AiWander 0 0 0
23 set control to -1
24 endif
25elseif ( control > 0 )
26 if ( GetPCCell "Aimrah" == 0 )
27 AiWander 0 0 0
28 set control to -1
29 endif
30endif
31
32if ( CellChanged )
33 if ( control < 0 )
34 if ( GetDisabled == 0 )
35 disable
36 endif
37 elseif ( GetJournalIndex "TR_m3_Aim_Dreugh2" < 60 )
38 if ( GetDisabled == 0 )
39 disable
40 endif
41 elseif ( GetDisabled )
42 enable
43 endif
44endif
45
46if ( TR_Map )
47 return
48endif
49
50set TR_Map to 3
51
52end