TR_m1_q_Mashug
TR_Mainland.esm
Variables
11
Local Variables
TR_Map
control
doonce
speakonce
following
stuck
trapped
state
T_Local_NPC
NoLore
T_Local_NoLore
Source
1Begin TR_m1_q_Mashug
2
3short TR_Map
4short control
5short doonce
6short speakonce
7short following
8short stuck
9short trapped
10short state
11short T_Local_NPC
12short NoLore
13short T_Local_NoLore
14
15If ( GetPCCell "Nassudan" == 1 )
16 If ( GetPos x <= 2690 )
17 If ( state == 0 )
18 set state to 1
19 Endif
20 Endif
21 if ( GetCurrentAiPackage == 3 )
22 if ( TR_m1_FG_Forcefield->GetPos Z > 12513 ) ;failsafe, disabled forcefield is posZ==12512
23 if ( GetPos x >= 2800 )
24 messagebox "Stopping"
25 AIWander 0 0 0 0 0 0 0 0 0 0 0 0
26 endif
27 endif
28 endif
29 if ( CellChanged )
30 PositionCell 3487 4877 12430 16200 "Nassudan" ;TR_m1_MARK_Mashug
31 endif
32elseif ( GetPCCell "Firewatch" == 1 )
33 if ( T_Local_NoLore == 0 )
34 set T_Local_NoLore to 1
35 sethello 30
36 endif
37Endif
38
39If ( GetCurrentAiPackage == 3 )
40 If ( GetPCCell "Nassudan" == 0 )
41 If ( SpeakOnce == 0 )
42 If ( GetJournalIndex TR_m1_FG_CodaliaStalker == 0 )
43 set control to 2
44 ForceGreeting
45 set TR_m1_FG_Mashugsaved to 1
46 Journal TR_m1_FG_FindOrc 105
47 AIWander 512 0 0 0 0 10 30 20 0 0 20 0
48 set speakonce to 1
49 set following to 3
50 ElseIf ( GetJournalIndex TR_m1_FG_CodaliaStalker >= 100 )
51 set control to 2
52 set TR_m1_FG_Mashugsaved to 1
53 ForceGreeting
54 Journal TR_m1_FG_FindOrc 105
55 AIWander 512 0 0 0 0 10 30 20 0 0 20 0
56 set speakonce to 1
57 set following to 3
58 ElseIf ( GetJournalIndex TR_m1_FG_CodaliaStalker >= 10 )
59 if ( getjournalindex TR_m1_FG_CodaliaStalker < 100 )
60 set control to 2
61 ForceGreeting
62 set TR_m1_FG_Mashugsaved to 1
63 Journal TR_m1_FG_CodaliaStalker 50
64 AIWander 512 0 0 0 0 10 30 20 0 0 20 0
65 set speakonce to 1
66 set following to 3
67 endif
68 Endif
69 Endif
70 Endif
71Endif
72
73if ( TR_Map == 1 )
74 return
75endif
76
77set TR_Map to 1
78
79End