TR_m7_NPC_Thorleif
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
OnPCHitMe
doonce
Source
1Begin TR_m7_NPC_Thorleif
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short T_Local_NPC
8short T_Local_NoLore
9
10short OnPCHitMe
11short doonce
12
13if ( OnPCHitMe )
14 if ( doonce == 0 )
15 if ( GetJournalIndex "TR_m7_Ns_TG_6b" == 100 )
16 set doonce to 1
17 if ( GetPCCell "Narsis, Redwater Theater" == 0 )
18 elseif ( GetDeadCount "TR_m7_Anise Delms" == 0 )
19 "TR_m7_Anise Delms"->PositionCell 3545 3902 15121 10800 "Narsis, Redwater Theater" ; TR_m7_MARK_Ns_JNS_Anise
20 "TR_m7_Anise Delms"->AiWander 0 0 0
21 "TR_m7_Anise Delms"->setfight 100
22 "TR_m7_Anise Delms"->startcombat player
23 endif
24 endif
25 endif
26 startcombat player
27 set OnPCHitMe to 0
28endif
29
30if ( OnDeath )
31 if ( GetJournalIndex "TR_m7_Ns_TG_1" >= 10 )
32 if ( GetJournalIndex "TR_m7_Ns_TG_1" < 100 )
33 Journal "TR_m7_Ns_TG_1" 150
34 endif
35 endif
36 if ( GetJournalIndex "TR_m7_Ns_TG_2" >= 10 )
37 if ( GetJournalIndex "TR_m7_Ns_TG_2" < 100 )
38 Journal "TR_m7_Ns_TG_2" 150
39 endif
40 endif
41 if ( GetJournalIndex "TR_m7_Ns_TG_3" >= 10 )
42 if ( GetJournalIndex "TR_m7_Ns_TG_3" < 100 )
43 Journal "TR_m7_Ns_TG_3" 150
44 endif
45 endif
46 if ( GetJournalIndex "TR_m7_Ns_TG_4" >= 10 )
47 if ( GetJournalIndex "TR_m7_Ns_TG_4" < 100 )
48 Journal "TR_m7_Ns_TG_4" 150
49 endif
50 endif
51 if ( GetJournalIndex "TR_m7_Ns_TG_5" >= 10 )
52 if ( GetJournalIndex "TR_m7_Ns_TG_6" < 100 )
53 Journal "TR_m7_Ns_TG_5" 150
54 endif
55 endif
56 if ( GetJournalIndex "TR_m7_Ns_TG_6" >= 10 )
57 if ( GetJournalIndex "TR_m7_Ns_TG_6" < 100 )
58 Journal "TR_m7_Ns_TG_6" 150
59 endif
60 endif
61 if ( GetJournalIndex "TR_m7_Ns_TG_7" >= 10 )
62 if ( GetJournalIndex "TR_m7_Ns_TG_7" < 100 )
63 Journal "TR_m7_Ns_TG_7" 150
64 if ( GetJournalIndex "TR_m7_JNS_TheBoss_SnakeEyes" < 10 )
65 set TR_m7_Ns_FortunaQuestActive to 0
66 elseif ( GetJournalIndex "TR_m7_JNS_TheBoss_SnakeEyes" >= 100 )
67 set TR_m7_Ns_FortunaQuestActive to 0
68 endif
69 endif
70 endif
71 if ( GetJournalIndex "TR_m7_Ns_TG_8" >= 10 )
72 if ( GetJournalIndex "TR_m7_Ns_TG_8" < 100 )
73 Journal "TR_m7_Ns_TG_8" 150
74 endif
75 endif
76 if ( GetJournalIndex "TR_m7_Ns_TG_9" >= 10 )
77 if ( GetJournalIndex "TR_m7_Ns_TG_9" < 100 )
78 Journal "TR_m7_Ns_TG_9" 150
79 endif
80 endif
81endif
82
83if ( TR_Map )
84 return
85endif
86
87set TR_Map to 7
88
89End