TR_m1_T_Dral2Sc
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m1_T_Dral2Sc
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short T_Local_NPC
8short T_Local_NoLore
9
10if ( MenuMode == 1 )
11 return
12endif
13
14if ( onDeath )
15 set TR_m1_HT_DralDead to 1
16 if ( GetDeadCount "TR_m1_T_Malvas_Relvani" == 0 ) ;if not already the case from his Mouth's death,
17 startscript TR_m0_TelvanniHortDeathSc ;make his death count towards dead Councilors
18 endif
19 Journal TR_m1_HT_UnseatingDral 100
20 ModPCFacRep 20 "Telvanni"
21 player->ModReputation 4
22endif
23
24if ( GetJournalIndex "TR_m1_HT_UnseatingDral" == 40 )
25 if ( controlQ == 0 )
26 if ( control == 2 )
27 if ( MenuMode == 1 )
28 return
29 endif
30 PlaySound "mysticism hit"
31 PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0
32 Disable
33 set control to 3
34 set controlQ to 1
35 endif
36 if ( CellChanged == 1 )
37 Disable
38 set controlQ to 1
39 endif
40 endif
41endif
42
43if ( control == 0 )
44 if ( GetJournalIndex TR_m1_HT_UnseatingDral == 20 )
45 PlaySound "mysticism hit"
46 PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0
47 ForceGreeting
48 endif
49elseif ( control == 1 )
50 if ( GetJournalIndex TR_m1_HT_UnseatingDral == 30 )
51 if ( GetHealthGetRatio < 0.5 )
52 ForceGreeting
53 endif
54 endif
55endif
56
57if ( TR_Map == 1 )
58 return
59endif
60
61set TR_Map to 1
62
63End