TR_m7_NPC_Bolnor_Selvilo
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
T_Local_NoLore
doOnce
TeleportAway
Source
1Begin TR_m7_NPC_Bolnor_Selvilo
2
3short TR_Map
4short control
5short controlQ
6short T_Local_NPC
7short NoLore
8short T_Local_NoLore
9short doOnce
10short TeleportAway
11
12if ( CellChanged )
13 if ( GetDisabled == 0 )
14 if ( GetJournalIndex TR_m7_HR_AldIuval_q1_b == 100 )
15 if ( GetJournalIndex TR_m7_HR_AldIuval_q4 < 10 )
16 Disable
17 endif
18 endif
19 if ( GetJournalIndex TR_m7_HR_AldIuval_q4 == 100 )
20 Disable
21 endif
22 endif
23endif
24
25if ( GetJournalIndex "TR_m7_HR_AldIuval_q4" == 45 )
26 if ( doOnce == 0 )
27 if ( TeleportAway == 1 )
28 if ( MenuMode == 1 )
29 return
30 endif
31 PlaySound "mysticism hit"
32 PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0
33 PositionCell 3400 3709 12609 5000 "Ald Marak, Kogotel" ; TR_m7_MARK_AI_HR_Bolnor
34 AIWander 0 0 0 0 60 20 10 10
35 RemoveItem "TR_m7_q_SelviloMace" 1
36 RemoveItem "T_De_Bonemold_Chuzei_Cuirass_E" 1
37 RemoveItem "T_De_Bonemold_Chuzei_Greaves_E" 1
38 RemoveItem "T_De_Bonemold_Chuzei_Boots_E" 1
39 RemoveItem "thunderfall" 1
40 RemoveItem "T_De_Ex_Pants_01" 1
41 RemoveItem "T_De_Ex_Shirt_01" 1
42 RemoveItem "expensive_belt_01" 1
43 RemoveItem "expensive_ring_02" 1
44 AddItem "common_shirt_01" 1
45 Equip "common_shirt_01"
46 AddItem "common_pants_01" 1
47 Equip "common_pants_01"
48 SetFight 30
49 set TeleportAway to 0
50 set doOnce to 1
51 endif
52 endif
53endif
54
55if ( control == 0 )
56 if ( GetJournalIndex TR_m7_HR_AldIuval_q4 > 0 )
57 set control to 1
58 if ( GetDisabled )
59 Enable
60 endif
61 set T_Local_NoLore to 0
62 "TR_m7_Orns Nethri"->Enable
63 SetMediumArmor 85
64 SetBluntWeapon 90
65 AddItem "TR_m7_q_SelviloMace" 1
66 AddItem "T_De_Bonemold_Chuzei_Cuirass_E" 1
67 AddItem "T_De_Bonemold_Chuzei_Greaves_E" 1
68 AddItem "T_De_Bonemold_Chuzei_Boots_E" 1
69 AddItem "p_restore_health_e" 3
70 AddItem "potion_local_liquor_01" 2
71 AddItem "thunderfall" 1
72 Equip "thunderfall"
73 if ( GetItemCount "silver shortsword" >= 1 )
74 RemoveItem "silver shortsword" 1
75 endif
76 if ( GetItemCount "exquisite_shoes_01" >= 1 )
77 RemoveItem "exquisite_shoes_01" 1
78 endif
79 if ( GetItemCount "TR_m7_HK_key_selvilo" >= 1 )
80 RemoveItem "TR_m7_HK_key_selvilo" 1
81 endif
82 endif
83; on vanilla, he doesnt equip his armor when doing additem and equip on the same frame
84; maybe because of setting his blunt weapon stat?
85elseif ( control == 1 )
86 Equip "T_De_Bonemold_Chuzei_Cuirass_E"
87 Equip "T_De_Bonemold_Chuzei_Greaves_E"
88 Equip "T_De_Bonemold_Chuzei_Boots_E"
89 set control to 2
90endif
91
92if ( GetJournalIndex TR_m7_HR_AldIuval_q4 == 30 )
93 if ( controlQ == 1 )
94 if ( GetHealthGetRatio < 0.15 )
95 if ( GetDeadCount "TR_m7_Bolnor Selvilo" == 0 )
96 SetFight 30
97 SetFatigue 100
98 ForceGreeting
99 endif
100 endif
101 endif
102endif
103
104if ( OnDeath )
105 if ( GetJournalIndex TR_m7_HR_AldIuval_q4 >= 10 )
106 if ( GetJournalIndex TR_m7_HR_AldIuval_q4 < 40 )
107 StartScript "TR_m7_HR_AldIuval_NilusReset_sc"
108 Journal TR_m7_HR_AldIuval_q4 40
109 endif
110 endif
111endif
112
113if ( TR_Map )
114 return
115endif
116
117set TR_Map to 7
118set T_Local_NoLore to -1
119
120End