TR_m4_NPC_Alynu_Radin
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
teleport
timer
Source
1Begin TR_m4_NPC_Alynu_Radin
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short T_Local_NPC
8short T_Local_NoLore
9short teleport
10
11float timer
12
13if ( OnDeath )
14 if ( GetJournalIndex TR_m4_And_SheKindlySpoke >= 10 )
15 Journal TR_m4_And_SheKindlySpoke 200
16 endif
17endif
18
19if ( control == -1 )
20 return
21endif
22
23; cast divine intervention and disable 2 seconds later
24if ( teleport == 1 )
25 if ( control == 0 )
26 set control to 1
27 set timer to 0
28 cast "divine intervention" player
29 return
30 endif
31
32 if ( MenuMode == 1 )
33 return
34 endif
35
36 set timer to ( timer + GetSecondsPassed )
37 if ( timer >= 2 )
38 set control to -1
39 disable
40 return
41 endif
42endif
43
44if ( TR_Map == 4 )
45 return
46endif
47
48set TR_Map to 4
49
50End