TR_m2_q_5_Mohryl_SCN
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m2_q_5_Mohryl_SCN
2
3; Script on "TR_m2_q_5_Mohryl" for quest TR_m2_TMo_QualityTime.
4; This script handles Mohryl's suicide and starts his fight with the
5; player in prison.
6;
7; Revamped -- rot and arvisrend, 8 Aug 2013.
8
9short TR_Map
10short control
11short controlQ
12short NoLore
13short T_Local_NPC
14short T_Local_NoLore
15
16if ( TR_Map != 2 )
17 set TR_Map to 2
18endif
19
20if ( MenuMode == 1 )
21 return
22endif
23
24; suicide:
25if ( controlQ == -1 )
26 if ( GetForceMoveJump == 0 )
27 ForceMoveJump
28 endif
29 if ( getCurrentAIPackage != 1 )
30 AITravel 271296 20965 942 ;TR_m2_MARK_Mohryl
31 endif
32 if ( GetPos, z < 1200 )
33 SetHealth 0
34 set controlQ to 2
35 Journal "TR_m2_TMo_QualityTime" 12
36 endif
37endif
38
39; fight with player:
40if ( GetJournalIndex "TR_m2_TMo_QualityTime" == 32 )
41 if ( GetPCCell "Tel Mothrivra, Prison" )
42 if ( controlQ == 4 )
43 if ( TR_m2_q_5_SedriEndavel.control == 0 )
44 set TR_m2_q_5_SedriEndavel.control to 1
45 endif
46 endif
47 endif
48endif
49
50End