TR_m1_RinarScript
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
NoLore
doOnce
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m1_RinarScript
2
3; Script on NPC TR_m1_Rinar_Sandras for quest TR_m1_FW_Clannfear.
4; Checks when you get Rinar to leave the house.
5
6short TR_Map
7short control
8short controlQ
9short NoLore
10short doOnce
11short T_Local_NPC
12short T_Local_NoLore
13
14if ( CellChanged )
15 if ( GetJournalIndex "TR_m1_FW_Clannfear" >= 100 )
16 if ( GetDisabled == 0 )
17 if ( GetDistance Player > 8192 )
18 if ( GetHealth > 0 )
19 Disable
20 endif
21 endif
22 endif
23 endif
24endif
25
26if ( doOnce == 0 )
27 if ( GetInterior == 0 )
28 journal "TR_m1_FW_Clannfear" 40
29 AIWander 512 0 0
30 set doOnce to 1
31 endif
32endif
33
34
35if ( TR_Map != 1 )
36 set TR_Map to 1
37endif
38
39End