TR_m4_NPC_Llayno2
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
T_Local_NPC
control
controlQ
T_Local_NoLore
NoLore
DoneGreeting
AlreadyDead
Source
1; Attached to hostile versions of the miners for the Remnants of Resdayn dream sequence
2Begin TR_m4_NPC_Llayno2
3
4short TR_Map
5short T_Local_NPC
6short control
7short controlQ
8short T_Local_NoLore
9short NoLore
10short DoneGreeting
11short AlreadyDead
12
13if ( AlreadyDead == 1 )
14 return
15endif
16
17if ( controlQ == 0 )
18 if ( GetDeadCount TR_m4_Llayno_Erendi > 0 )
19 set controlQ to -1
20 Disable
21 Return
22 else
23 set controlQ to 1
24 endif
25elseif ( controlQ < 0 )
26 Return
27endif
28
29if ( GetJournalIndex, "TR_m4_Om_RemnantsPath2" == 50 )
30 Set AlreadyDead to 1
31 Disable
32endif
33
34if ( DoneGreeting == 0 )
35 if ( GetDistance, player < 400 )
36 ForceGreeting
37 Set DoneGreeting to 1
38 endif
39endif
40
41if ( OnDeath )
42 TR_m4_Llayno_Erendi->SetHealth, 0
43 Set TR_m4_Om_ReRe_KillCount to ( TR_m4_Om_ReRe_KillCount + 1 )
44 Set TR_m4_Llayno_Erendi.noHit to 0
45endif
46
47if ( TR_Map == 4 )
48 return
49endif
50set TR_Map to 4
51
52End