TR_NecMQ_OrdSearchScript
TR_Mainland.esm
Variables
11
Local Variables
TR_Map
NoLore
T_Local_NPC
control
controlQ
TR_NecromOrd
TR_ArmedPC
TR_SpelledPC
TR_RunningPC
TR_JumpingPC
TR_NecromOrdAct
Source
1Begin TR_NecMQ_OrdSearchScript
2
3; this script enables and disables the ordinators searching the nerevar bonewalker in the fane of the ancestors
4; 6+
5
6Short TR_Map
7Short NoLore
8Short T_Local_NPC
9Short control
10Short controlQ
11Short TR_NecromOrd
12Short TR_ArmedPC
13Short TR_SpelledPC
14Short TR_RunningPC
15Short TR_JumpingPC
16Short TR_NecromOrdAct
17
18; standard ordinator in mourning stuff here
19
20if ( MenuMode == 0 )
21 if ( TR_NecromOrdAct > 0 )
22 Set control to ( control + 1 )
23 endif
24else
25 set TR_NecromOrdAct to 1
26 if ( control > 0 )
27 set control to 0
28 endif
29endif
30
31if ( control >= 2 )
32 Set control to 0
33 Set TR_NecromOrdAct to 0
34endif
35
36if ( GetDistance, player <= 512 )
37
38 if ( TR_ArmedPC != 1 )
39 if ( Player -> GetWeaponDrawn == 1 )
40 Set TR_ArmedPC to 1
41 endif
42 else
43 if ( Player -> GetWeaponDrawn == 0 )
44 Set TR_ArmedPC to 0
45 endif
46 endif
47
48 if ( TR_SpelledPC != 1 )
49 if ( Player -> GetSpellReadied == 1 )
50 Set TR_SpelledPC to 1
51 endif
52 else
53 if ( Player -> GetSpellReadied == 0 )
54 Set TR_SpelledPC to 0
55 endif
56 endif
57
58
59 if ( TR_RunningPC != 1 )
60 if ( GetPCRunning == 1 )
61 Set TR_RunningPC to 1
62 endif
63 else
64 if ( GetPCRunning == 0 )
65 Set TR_RunningPC to 0
66 endif
67 endif
68
69 if ( TR_JumpingPC != 1 )
70 if ( GetPCJumping == 1 )
71 Set TR_JumpingPC to 1
72 endif
73 else
74 if ( GetPCJumping == 0 )
75 Set TR_JumpingPC to 0
76 endif
77 endif
78
79endif
80
81; quest relevant stuff here
82
83if ( controlQ == 3 )
84 if ( GetDisabled == 1 )
85 SetDelete 1
86 else
87 Disable
88 endif
89
90; disable again after the mural cutscene
91
92elseif ( controlQ == 2 )
93 if ( GetJournalIndex TR_NecMQ_3 >= 70 )
94 if ( GetDisabled == 0 )
95 Disable
96 else
97 Set controlQ to 3
98 endif
99 endif
100
101; enable when the player starts looking for the nerevar bonewalker
102
103elseif ( controlQ == 1 )
104 if ( GetJournalIndex TR_NecMQ_3 >= 15 )
105 if ( GetDisabled == 1 )
106 Enable
107 else
108 Set controlQ to 2
109 endif
110 endif
111
112; start out disabled
113
114elseif ( controlQ == 0 )
115 if ( GetDisabled == 0 )
116 Disable
117 else
118 Set controlQ to 1
119 endif
120endif
121
122; obligatory map setting here
123
124if ( TR_Map == 2 )
125 Return
126endif
127
128set TR_Map to 2
129
130End TR_NecMQ_OrdSearchScript