TR_m7_Lysenia_Rethelius_scr
TR_Mainland.esm
Variables
9
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
T_Local_NoLore
attackstate
OnPCHitMe
timer
Source
1Begin TR_m7_Lysenia_Rethelius_scr
2
3short TR_Map
4short control
5short controlQ
6short T_Local_NPC
7short NoLore
8short T_Local_NoLore
9float timer
10short attackstate
11short OnPCHitMe
12
13
14; default m7 script
15
16set TR_Map to 7
17
18; script to make sure her husband defends her
19
20if ( OnPCHitMe == 1 )
21 set attackstate to 1
22 set OnPCHitMe to 0
23endif
24
25if (attackstate == 1)
26 StartCombat, player
27 set timer to ( timer + GetSecondsPassed)
28 if ( timer >= 1 )
29 set timer to 0
30 "TR_m7_Beldros Rethelius"->StartCombat, Player
31 set attackstate to 0
32 endif
33endif
34
35; script to fail the quest if she dies
36
37if ( OnDeath )
38 if ( getJournalIndex TR_m7_HO_Guide >= 10 )
39 if ( getJournalIndex TR_m7_HO_Guide < 100 )
40 Journal TR_m7_HO_Guide 111
41 return
42 endif
43 endif
44endif
45
46; script to remove her once the tour is done and they move on
47
48if ( getJournalIndex TR_m7_HO_Guide >= 100 )
49 if ( getJournalIndex TR_m7_HO_Guide < 110 )
50 if ( CellChanged == 1 )
51 disable
52 return
53 endif
54 endif
55endif
56
57End