TR_NecMQ_BilsaBarusScript
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
NoLore
T_Local_NPC
T_Local_Nolore
control
controlQ
controlQ1
Source
1Begin TR_NecMQ_BilsaBarusScript
2
3; this script controls Bilsa Barus - the priest taking care of the ghost of Savile Theras
4; 6+
5
6Short TR_Map
7Short NoLore
8Short T_Local_NPC
9short T_Local_Nolore
10Short control
11Short controlQ
12short controlQ1
13
14Set TR_Map to 2
15
16if ( MenuMode == 1 )
17 Return
18endif
19
20; the quest is over now, the priest is no longer needed and can be disabled
21
22if ( controlQ == 10 )
23 if ( GetDisabled == 0 )
24 Disable
25 else
26 SetDelete 1
27 endif
28
29elseif ( controlQ == 6 )
30 if ( GetJournalIndex TR_NecMQ_Destroyer >= 110 )
31 Set controlQ to 10
32 endif
33
34; when the ghost is killed, make her wander over to its remains
35
36elseif ( controlQ == 5 )
37 if ( GetDistance TR_NecMQ_SavileTheras < 100 )
38 AIWander 0 5 0 20 10 0 0 0 0 0
39 Set controlQ to 6
40 endif
41
42elseif ( controlQ == 4 )
43 if ( GetJournalIndex TR_NecMQ_Destroyer >= 90 )
44 AIActivate TR_NecMQ_SavileTheras
45 Set controlQ to 5
46 endif
47
48; if the player releases the ghost
49
50elseif ( controlQ == 3 )
51 Set control to 1
52 Set controlQ to 4
53
54; wait to see if the player releases the aggressive ghost or puts the ghost in the urn provided by herself
55
56elseif ( controlQ == 2 )
57 if ( TR_Necrom_VaultPortR == 1 )
58 Set controlQ to 3
59 elseif ( GetJournalIndex TR_NecMQ_Destroyer >= 60 )
60 Set controlQ to 6
61 endif
62
63; the quest has started now, enable the priest
64
65elseif ( controlQ == 1 )
66 if ( GetJournalIndex TR_NecMQ_Destroyer > 5 )
67 if ( GetDisabled == 1 )
68 Enable
69 else
70 Set controlQ to 2
71 endif
72 endif
73
74; starts out disabled before the begin of the quest
75
76elseif ( controlQ == 0 )
77 if ( GetDisabled == 0 )
78 Disable
79 else
80 Set controlQ to 1
81 endif
82endif
83
84End TR_NecMQ_BilsaBarusScript