TR_m4_NPC_Becora
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
OnPCHitMe
Source
1Begin TR_m4_NPC_Becora
2; NPC script for Becora, part of the HH GM questline
3
4short TR_Map
5short control
6short controlQ
7short NoLore
8short T_Local_NPC
9short T_Local_NoLore
10short OnPCHitMe
11
12if ( MenuMode )
13 return
14endif
15
16if ( OnDeath )
17 Journal TR_m7_HH_GM_4c 30
18endif
19
20if ( ControlQ )
21 return
22endif
23
24if ( OnPCHitMe == 1 )
25 set controlQ to 1
26 ForceGreeting
27endif
28
29if ( CellChanged )
30 if ( GetDisabled == 0 )
31 if ( GetJournalIndex "TR_m7_HH_GM_4c" >= 20 )
32 disable
33 set controlQ to 1
34 endif
35 endif
36endif
37
38if ( GetJournalIndex "TR_m7_HH_GM_4c" < 10 )
39 if ( GetDisabled )
40 return
41 else
42 Disable
43 endif
44elseif ( GetDisabled )
45 Enable
46endif
47
48if ( TR_Map )
49 return
50endif
51
52set TR_Map to 4
53
54End