TR_m4_q_mm_AshvubabiSC
TR_Mainland.esm
Variables
9
Local Variables
TR_Map
control
controlQ
NoLore
OnPCHitMe
DoOnce
State
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_q_mm_AshvubabiSC
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short OnPCHitMe
8short DoOnce
9short State
10short T_Local_NPC
11short T_Local_NoLore
12
13;control and ControlQ used for the quest TR_m4_Arv_Metamorphosis
14
15if ( State == 10 ) ;Kills the mind slaves when she dies (mostly for dramatic effect)
16 TR_m4_q_mm_Bisaya->SetHealth 0
17 TR_m4_q_mm_Sharpatu->SetHealth 0
18endif
19
20
21If ( DoOnce )
22 return
23endif
24
25if ( OnDeath ) ;Just updates journal OnDeath
26 if ( GetJournalIndex "TR_m4_Arv_Metamorphosis" > 10 )
27 Journal TR_m4_Arv_Metamorphosis 60
28 endif
29
30 ; un-curse the player if the player was cursed
31 Player->RemoveSpell "TR_m4_q_mm_SelfCurse"
32 StopScript "TR_m4_q_mm_AshvuCurseSC"
33
34 set State to 10
35 set DoOnce to 1
36 set TR_m4_q_mm_AshvuDead to 1 ;Global var, needed to use it because GetDeadCount is fps intensive
37
38 if ( GetJournalIndex TR_m4_TT_ArmunAdventure > 0 )
39 if ( GetJournalIndex TR_m4_TT_ArmunAdventure < 100 )
40 Journal TR_m4_TT_ArmunAdventure_f 100
41 endif
42 endif
43
44endif
45
46if ( OnPCHitMe )
47 SetFight 100
48 TR_m4_q_mm_Bisaya->SetFight 100
49 TR_m4_q_mm_Sharpatu->SetFight 100
50 StartCombat player
51 TR_m4_q_mm_Bisaya->StartCombat player
52 TR_m4_q_mm_Sharpatu->StartCombat player
53 Set OnPCHitME to 0
54endif
55
56
57if ( TR_Map == 4 )
58 return
59endif
60
61set TR_Map to 4
62
63End