TR_m7_NPC_Lazare_Pajaud
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
doOnce
OnPCHitMe
Source
1Begin TR_m7_NPC_Lazare_Pajaud
2; This short script is there to allow dialogue to be filtered on the TR_Map local variable,
3; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be
4; appropriate to the location the NPC is.
5
6short TR_Map
7short control
8short controlQ
9short T_Local_NPC
10short NoLore
11short doOnce
12short OnPCHitMe
13;global TR_m3_q_AT_Armiger_Bid
14
15if ( GetDisabled == 0 )
16 if ( GetJournalIndex TR_m3_AT_Armiger == 0 )
17 Disable
18 elseif ( GetJournalIndex TR_m3_AT_Armiger_c == 100 )
19 Disable
20 elseif ( GetJournalIndex TR_m3_AT_Armiger >= 150 )
21 Disable
22 endif
23elseif ( GetDisabled )
24 if ( control == 0 )
25 if ( GetJournalIndex TR_m3_AT_Armiger > 0 )
26 set control to 1
27 Enable
28 endif
29 endif
30endif
31
32if ( CellChanged )
33 if ( GetDisabled == 0 )
34 if ( GetDeadCount "TR_m7_Brelan Drethos" >= 1 )
35 set control to 1
36 Disable
37 endif
38 endif
39endif
40
41if ( OnPCHitMe )
42 StartCombat player
43 if ( "TR_m7_Brelan Drethos"->GetDisabled == 0 )
44 "TR_m7_Brelan Drethos"->StartCombat player
45 endif
46 set OnPCHitMe to 0
47endif
48
49if ( TR_Map == 7 )
50 return
51endif
52
53set TR_Map to 7
54
55End