TR_m7_Qorinue-Najan_scr
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
controlA
NoLore
T_Local_NoLore
T_Local_NPC
doOnce
Source
1Begin TR_m7_Qorinue-Najan_scr
2
3short TR_Map
4short control ; uniform
5short controlQ ; race
6short controlA ; questions answered
7
8short NoLore
9short T_Local_NoLore
10short T_Local_NPC
11short doOnce
12
13if ( menuMode )
14 return
15endif
16
17if ( doOnce == 0 )
18 if ( PCRace == 1 )
19 set controlQ to 2 ; slave race, apprehensive
20 elseif ( PCRace == 2 )
21 set controlQ to 3 ; alliance race, love
22 elseif ( PCRace == 3 )
23 set controlQ to 1 ; dunmer, hate
24 elseif ( PCRace == 4 )
25 set controlQ to 2 ; unsure, apprehensive
26 elseif ( PCRace == 5 )
27 set controlQ to 3 ; alliance race, love
28 elseif ( PCRace == 6 )
29 set controlQ to 2 ; slave race, apprehensive
30 elseif ( PCRace == 7 )
31 set controlQ to 3 ; alliance race, love
32 elseif ( PCRace == 8 )
33 set controlQ to 3 ; alliance race, love
34 elseif ( PCRace == 9 )
35 set controlQ to 3 ; alliance race, love
36 elseif ( PCRace == 10 )
37 set controlQ to 2 ; unsure, apprehensive
38 else
39 set controlQ to 2 ; unsure, apprehensive
40 endif
41 set TR_Map to 7
42 set doOnce to 1
43endif
44
45if ( controlA ) ; questions answered
46 return
47endif
48
49if ( doOnce == 1 )
50 if ( GetDistance player <= 300 )
51 if ( GetDetected "Player" )
52 if ( GetWeaponDrawn == 0 ) ; in combat?
53 if ( player->HasItemEquipped T_Imp_Reman_Cuirass_01 != 0 )
54 set control to 1
55 endif
56 ForceGreeting
57 set doOnce to 2
58 return
59 endif
60 endif
61 endif
62endif
63
64if ( doOnce == 2 )
65 if ( GetDistance player >= 600 )
66 if ( GetDistance player < 900 )
67 if ( GetDetected "Player" )
68 if ( GetWeaponDrawn == 0 ) ; in combat?
69 ForceGreeting
70 set doOnce to 3
71 return
72 endif
73 endif
74 endif
75 endif
76endif
77
78if ( doOnce == 3 )
79 if ( GetDistance "Player" > 900 )
80 SetFight 100
81 StartCombat "Player"
82 set doOnce to 4
83 endif
84endif
85
86end