TR_m2_q_12_Nedheleg
TR_Mainland.esm
Variables
8
Local Variables
orders
forcegreet
OrcBanditsDead
doonce
PlayerAttacked
TR_Map
T_Local_NPC
NoLore
Source
1Begin TR_m2_q_12_Nedheleg
2;q2-12_Misc - Ruin of Strife - Local script, placed on Nedheleg
3;Used to keep track of if any orcs had died and which 'side' of the quest was taken.
4short orders
5short forcegreet
6short OrcBanditsDead
7short doonce
8short PlayerAttacked
9short TR_Map
10short T_Local_NPC
11short NoLore
12
13if ( OrcBanditsDead == 3 )
14 if ( doonce == 0 )
15 AIFollowCell Player "Bthangthamuzand, Entrance Hall" 0 4115 3958 15268 ;TR_m2_MARK_Nedheleg
16 set doonce to 1
17 if ( getJournalIndex TR_m2_Wil_RuinofStrife < 30 )
18 Journal TR_m2_Wil_RuinofStrife 30
19 endif
20 endif
21endif
22
23if ( TR_m2_BugdulgroGulfis->OnDeath == 1 )
24 set OrcBanditsDead to ( OrcBanditsDead + 1 )
25endif
26
27if ( TR_m2_O_Ushugoba->OnDeath == 1 )
28 set OrcBanditsDead to ( OrcBanditsDead + 1 )
29endif
30
31if ( TR_m2_BogamulgroGulfis->OnDeath == 1 )
32 set OrcBanditsDead to ( OrcBanditsDead + 1 )
33endif
34
35
36if ( TR_m2_Bugdulgrogulfis.controlQ == 1 )
37 if ( forcegreet == 0 )
38 set forcegreet to 1
39 ForceGreeting
40 StartCombat Player
41 set TR_m2_o_Jeras_Ticedo.attackplayer to 1
42 endif
43endif
44
45if ( GetDeadCount TR_m2_o_Jeras_Ticedo == 0 )
46 if ( TR_m2_o_Jeras_Ticedo.attackplayer == 1 )
47 if ( PlayerAttacked == 0 )
48 StartCombat Player
49 setfight 100
50 set PlayerAttacked to 1
51 endif
52 endif
53endif
54
55if ( TR_Map == 0 )
56 set TR_Map to 2
57endif
58
59End TR_m2_q_12_Nedheleg