TR_m7_BedrasFels_sc
TR_Mainland.esm
Variables
7
Local Variables
TR_map
control
controlq
DoOnce
NoLore
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m7_BedrasFels_sc
2
3short TR_map
4short control
5short controlq
6short DoOnce
7short NoLore
8short T_Local_NPC
9short T_Local_NoLore
10
11if ( TR_Map != 7 )
12 set TR_Map to 7
13endif
14
15if ( getjournalindex TR_m7_ShiSha_IL_1 == 0 )
16 return
17endif
18
19if ( getjournalindex TR_m7_ShiSha_IL_1 >= 10 )
20 if ( getjournalindex TR_m7_ShiSha_IL_1 <= 30 )
21 if ( gethealth <= 65 )
22 if ( control == 0 )
23 set control to 1
24 stopcombat
25 forcegreeting
26 endif
27 endif
28 if ( getfatigue <= 60 )
29 if ( control == 0 )
30 set control to 1
31 stopcombat
32 forcegreeting
33 endif
34 endif
35 endif
36endif
37
38if ( DoOnce == 0 )
39 if ( getdistance "TR_m7_Madala Ceno" <= 430 )
40 if ( getjournalindex TR_m7_ShiSha_IL_1 == 50 )
41 journal TR_m7_ShiSha_IL_1 60
42 AiWander 0 0 0
43 set DoOnce to 1
44 elseif ( getjournalindex TR_m7_ShiSha_IL_1 == 40 )
45 journal TR_m7_ShiSha_IL_1 70
46 AIWander 0 0 0
47 set DoOnce to 1
48 else
49 journal TR_m7_ShiSha_IL_1 65
50 AiWander 0 0 0
51 set DoOnce to 1
52 endif
53 endif
54endif
55
56if ( controlq == 0 )
57 if ( getjournalindex TR_m7_ShiSha_IL_1 >= 110 )
58 if ( cellchanged )
59 positioncell 3674 4327 14128 10800 "Shipal-Sharai, Legion Post" ; TR_m7_MARK_ShiSha_Bedras
60 AiWander 0 0 0
61 set controlq to 1
62 endif
63 endif
64endif
65
66end