TR_m2_q_HT_VQ6_DaeUH_sc
TR_Mainland.esm
Variables
3
Local Variables
state
control
controlQ
Source
1Begin TR_m2_q_HT_VQ6_DaeUH_sc
2
3;This script is placed on the Daedra in Tel Muthada, Upper Hall
4;It makes them attack the Telvanni ahead of them
5
6Short state
7Short control ;counts number of dead Telvanni
8Short controlQ
9
10if ( controlQ == 1 )
11 if ( TR_m2_HT_Vaerin_Q6Done == 1 )
12 if ( GetDisabled == 0 )
13 Disable
14 endif
15 endif
16 return
17endif
18
19if ( OnDeath )
20 set controlQ to 1
21 set TR_m2_HT_Vaerin_DaedraDead to ( TR_m2_HT_Vaerin_DaedraDead + 1 )
22 return
23endif
24
25if ( TR_m2_HT_Vaerin_RitualDone == 0 )
26 if ( GetDisabled == 0 )
27 Disable
28 endif
29 return
30else
31 if ( GetDisabled )
32 Enable
33 endif
34endif
35
36if ( control == 2 )
37 set control to 3
38 SetFight 100
39 StartCombat player
40 return
41elseif ( state == 0 )
42 StartCombat "TR_m2_TelMuthGuard_UH"
43 set state to 1
44elseif ( state == 1 )
45 if ( GetDeadCount "TR_m2_TelMuthGuard_UH" >= 1 )
46 Set control to ( control + 1 )
47 Set state to 2
48 endif
49elseif ( state == 2 )
50 StartCombat "TR_m2_Llevari Telsaran"
51 set state to 3
52elseif ( state == 3 )
53 if ( GetDeadCount "TR_m2_Llevari Telsaran" >= 1 )
54 Set control to ( control + 1 )
55 Set state to 4
56 endif
57endif
58
59
60End