TR_m3_Rivosa_Ovam_sc
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m3_Rivosa_Ovam_sc
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. This version is for "TR_m3_Rivosa_Ovam"
5
6short TR_Map
7short control
8short controlQ
9short NoLore
10short T_Local_NPC
11short T_Local_NoLore
12
13if ( GetJournalIndex "TR_m3_TT_Dar_5" == 100 )
14 if ( controlQ == 0 )
15 if ( CellChanged == 1 ) ; this is fine since it's a move within the same int
16 PositionCell 6837 4485 11776 16800 "Monastery of St. Seryn, Infirmary" ;TR_m3_MARK_Rivosa_Ovam
17 AIWander 0 5 0 60 20 10
18 set controlQ to 1
19 endif
20 endif
21elseif ( GetJournalIndex "TR_m3_TT_Dar_5" == 42 )
22 if ( CellChanged == 1 )
23 if ( GetDisabled == 0 )
24 Disable
25 endif
26 endif
27elseif ( GetJournalIndex "TR_m3_TT_Dar_5" == 101 )
28 if ( CellChanged == 1 )
29 if ( GetDisabled == 0 )
30 Disable
31 endif
32 endif
33elseif ( GetJournalIndex "TR_m3_TT_Dar_5" == 40 )
34 ; this is also used as an ownership global for progress of truth,
35 ; so it should always be at least 1 from this point on
36 if ( GetDistance "TR_m3_Alv_Llethros" < 500 )
37 set "TR_m3_TT_Dar_5_Nearby" to 2
38 elseif ( GetDistance "TR_m3_Ulvul Daryon" < 500 )
39 set "TR_m3_TT_Dar_5_Nearby" to 3
40 else
41 set "TR_m3_TT_Dar_5_Nearby" to 1
42 endif
43endif
44
45if ( TR_Map == 0 )
46 set TR_Map to 3
47endif
48
49End