TR_m1_q_Garrulus_Script
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
doonce
enableonce
speakonce
trapped
T_Local_NPC
NoLore
Source
1Begin TR_m1_q_Garrulus_Script
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 doonce
9short enableonce
10short speakonce
11short trapped
12short T_Local_NPC
13short NoLore
14
15if ( CellChanged )
16 if ( doonce == 0 )
17 disable
18 set doonce to 1
19 endif
20
21 If ( GetDisabled )
22 If ( GetJournalIndex TR_m1_FG_CodaliaStalker == 10 )
23 If ( enableonce == 0 )
24 enable
25 set enableonce to 1
26 Endif
27 Endif
28 If ( GetJournalIndex TR_m1_FG_CodaliaStalkerAlt == 10 )
29 If ( enableonce == 0 )
30 enable
31 set enableonce to 1
32 Endif
33 Endif
34 Endif
35endif
36
37if ( GetDisabled )
38 return
39endif
40
41If ( OnDeath )
42 If ( GetPCCell "Firewatch" == 1 )
43 Journal TR_m1_FG_CodaliaStalker 20
44 Else
45 Journal TR_m1_FG_CodaliaStalker 40
46 Endif
47Endif
48
49If ( GetCurrentAiPackage == 3 )
50 If ( GetDistance "TR_m1_FG_Platform" <= 400 )
51 If ( SpeakOnce == 0 )
52 ForceGreeting
53 set SpeakOnce to 1
54 Endif
55 ElseIf ( GetPCCell "Nirthfly: Lower Level" == 1 )
56 If ( SpeakOnce == 0 )
57 ForceGreeting
58 set SpeakOnce to 1
59 Endif
60 Endif
61Endif
62
63if ( TR_Map )
64 return
65endif
66
67set TR_Map to 1
68
69End