TR_m1_HT_RRMineNPC_sc
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
T_Local_NPC
T_Local_Khajiit
NoLore
doOnce
Source
1Begin TR_m1_HT_RRMineNPC_sc
2
3short TR_Map
4short control
5short controlQ
6short T_Local_NPC
7short T_Local_Khajiit
8short NoLore
9short doOnce
10
11if ( doOnce == 0 )
12 if ( GetJournalIndex "TR_m1_HT_Rathra_q6" >= 10 )
13 set doOnce to 1
14 SetFight 100
15 endif
16endif
17
18if ( OnDeath )
19 set TR_m1_HT_Rathra_q6_MineDead to ( TR_m1_HT_Rathra_q6_MineDead + 1 )
20 if ( GetJournalIndex "TR_m1_HT_Rathra_q6" == 10 )
21 if ( TR_m1_HT_Rathra_q6_MineDead >= 8 )
22 Journal "TR_m1_HT_Rathra_q6" 20
23 endif
24 endif
25endif
26
27if ( T_Local_Khajiit )
28 return
29endif
30
31set T_Local_Khajiit to -1
32
33if ( GetRace "T_Els_Cathay" )
34 set T_Local_Khajiit to 1
35elseif ( GetRace "T_Els_Cathay-raht" )
36 set T_Local_Khajiit to 1
37elseif ( GetRace "T_Els_Dagi-raht" )
38 set T_Local_Khajiit to 1
39elseif ( GetRace "T_Els_Ohmes" )
40 set T_Local_Khajiit to 1
41elseif ( GetRace "T_Els_Ohmes-raht" )
42 set T_Local_Khajiit to 1
43elseif ( GetRace "T_Els_Suthay" )
44 set T_Local_Khajiit to 1
45elseif ( GetRace "T_Els_Tojay" )
46 set T_Local_Khajiit to 1
47elseif ( GetRace "Khajiit" )
48 set T_Local_Khajiit to 1
49endif
50set TR_Map to 1
51
52End