TR_m1_FW_TG6_CaroPatrol
TR_Mainland.esm
Variables
10
Local Variables
TR_Map
control
fighter
doonce
patrol
controlQ
T_Local_NPC
NoLore
timer
lastTurn
Source
1Begin TR_m1_FW_TG6_CaroPatrol
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 fighter
9float timer
10float lastTurn
11short doonce
12short patrol
13short controlQ
14short T_Local_NPC
15short NoLore
16
17set TR_Map to 1
18
19if ( GetPCCell, "Firewatch, College: Museum Wing" == 0 )
20 return
21endif
22
23if ( MenuMode == 1 )
24 return
25endif
26
27if ( TR_m1_FW_TG6_Attack >= 1 )
28 return
29endif
30
31if ( control == 1 )
32 return
33endif
34
35set timer to ( timer + GetSecondsPassed )
36
37if ( doonce == 0 )
38 set lastTurn to -5.5
39 set doonce to 1
40endif
41
42if ( patrol == 0 )
43 if ( timer >= lastTurn + 5.5 )
44 AITravel, 3442, 6750, -358, 0 ;TR_m1_MARK_Caro
45 set patrol to -1
46 set lastTurn to timer
47 endif
48endif
49
50if ( patrol == 1 )
51 if ( timer >= lastTurn + 5.5 )
52 AITravel, 3442, 6237, -358, 0 ;TR_m1_MARK_Caro
53 set patrol to -1
54 set lastTurn to timer
55 endif
56endif
57
58if ( GetAIPackageDone == 1 )
59 if ( GetPos, Y >= 6500 )
60 set patrol to 1
61 else
62 set patrol to 0
63 endif
64endif
65
66End