TR_m3_Salni_Tilvur_sc
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m3_Salni_Tilvur_sc
2
3short TR_Map
4short control
5short controlQ
6short NoLore
7short T_Local_NPC
8short T_Local_NoLore
9
10if ( CellChanged == 1 )
11 if ( GetJournalIndex "TR_m3_Ord_Doc3" > 0 )
12 if ( GetJournalIndex "TR_m3_Ord_Doc3" < 30 )
13 Enable
14 elseif ( GetDeadCount "TR_m3_Salni_Tilvur" == 0 )
15 Disable
16 "TR_m3_Ord_Doc3_Urn"->Disable
17 endif
18 else
19 Disable
20 endif
21endif
22
23if ( control == 1 )
24 if ( GetDistance "TR_m3_Ord_Doc3_StopAct" < 300 )
25 set control to 2
26 set controlQ to 3
27 AIWander 0 5 0 60 20 10
28 endif
29endif
30
31if ( TR_Map == 0 )
32 set TR_Map to 3
33endif
34
35End