TR_m3_q_SY_Ienni2_sc
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
TR_m3_Kha_ghost
control
controlQ
NoLore
noattack
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m3_q_SY_Ienni2_sc
2
3; This script copies T_ScNpc_Mw_Map3Nolore
4; and helps filter the dialog entries for Khalaan NPCs
5; TR_m3_Kha_ghost only enable the most basic dialogue that is needed for all ghosts
6; such as persuasion and topics like Almalexia and Solstheim
7; but otherwise keeps them nolore
8
9; this version is for TR_m3_q_Ienni Drothril2 and controls behavior of quest TR_m3_TT_SeeYou_Kha
10
11short TR_Map
12short TR_m3_Kha_ghost
13short control
14short controlQ
15short NoLore
16short noattack
17short T_Local_NPC
18short T_Local_NoLore
19
20if ( CellChanged )
21 if ( GetJournalIndex "TR_m3_TT_SeeYou_Kha" < 40 )
22 if ( GetDisabled )
23 return
24 endif
25 Disable
26 return
27 endif
28 if ( GetDisabled )
29 Enable
30 endif
31endif
32
33if ( TR_Map == 3 )
34 return
35endif
36
37set TR_Map to 3
38
39End