TR_m3_NPC_TricksterKnight
TR_Mainland.esm
Variables
12
Local Variables
TR_Map
NoLore
nohit
noattack
nothief
nointruder
noidle
noflee
nohello
T_Local_NPC
T_Local_NoLore
TR_m3_OE_tourney
Source
1Begin TR_m3_NPC_TricksterKnight
2
3; "The Trickster Knight" is a mystery challenger to the tournament.
4; The player shouldn't hear his voice.
5
6short TR_Map
7short NoLore
8short nohit
9short noattack
10short nothief
11short nointruder
12short noidle
13short noflee
14short nohello
15short T_Local_NPC
16short T_Local_NoLore
17short TR_m3_OE_tourney
18
19if ( OnDeath )
20
21 ;this script updates the journal stage as appropriate when Sienne dies: whether before or after he was confronted with the book matching his name
22 if ( GetJournalIndex TR_m3_Tou_TricksterKnight >= 75 )
23 Journal "TR_m3_Tou_TricksterKnight" 90
24 elseif ( GetJournalIndex TR_m3_Tou_TricksterKnight >= 10 )
25 Journal "TR_m3_Tou_TricksterKnight" 80
26 endif
27
28 PlaceAtMe "T_Bre_UNI_TricksterShield" 1 0 0
29 PlaySound "conjuration hit"
30 PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0
31 disable
32 return
33endif
34
35;hacks to simulate "infinite durability"
36;the armor is an illusion and shouldn't run out
37
38if ( HasItemEquipped "T_Bre_UNI_TricksterShield" == 0 )
39 if ( GetItemCount "T_Bre_UNI_TricksterShield" > 0 )
40 RemoveItem "T_Bre_UNI_TricksterShield" 1
41 AddItem "T_Bre_UNI_TricksterShield" 1
42 endif
43endif
44
45if ( HasItemEquipped "TR_m3_Tou_P_Trick_Boots" == 0 )
46 if ( GetItemCount "TR_m3_Tou_P_Trick_Boots" > 0 )
47 RemoveItem "TR_m3_Tou_P_Trick_Boots" 1
48 AddItem "TR_m3_Tou_P_Trick_Boots" 1
49 endif
50endif
51
52if ( HasItemEquipped "TR_m3_Tou_P_Trick_Cuirass" == 0 )
53 if ( GetItemCount "TR_m3_Tou_P_Trick_Cuirass" > 0 )
54 RemoveItem "TR_m3_Tou_P_Trick_Cuirass" 1
55 AddItem "TR_m3_Tou_P_Trick_Cuirass" 1
56 endif
57endif
58
59if ( HasItemEquipped "TR_m3_Tou_P_Trick_GauntletL" == 0 )
60 if ( GetItemCount "TR_m3_Tou_P_Trick_GauntletL" > 0 )
61 RemoveItem "TR_m3_Tou_P_Trick_GauntletL" 1
62 AddItem "TR_m3_Tou_P_Trick_GauntletL" 1
63 endif
64endif
65
66if ( HasItemEquipped "TR_m3_Tou_P_Trick_GauntletR" == 0 )
67 if ( GetItemCount "TR_m3_Tou_P_Trick_GauntletR" > 0 )
68 RemoveItem "TR_m3_Tou_P_Trick_GauntletR" 1
69 AddItem "TR_m3_Tou_P_Trick_GauntletR" 1
70 endif
71endif
72
73if ( HasItemEquipped "TR_m3_Tou_P_Trick_Greaves" == 0 )
74 if ( GetItemCount "TR_m3_Tou_P_Trick_Greaves" > 0 )
75 RemoveItem "TR_m3_Tou_P_Trick_Greaves" 1
76 AddItem "TR_m3_Tou_P_Trick_Greaves" 1
77 endif
78endif
79
80if ( HasItemEquipped "TR_m3_Tou_P_Trick_Helm" == 0 )
81 if ( GetItemCount "TR_m3_Tou_P_Trick_Helm" > 0 )
82 RemoveItem "TR_m3_Tou_P_Trick_Helm" 1
83 AddItem "TR_m3_Tou_P_Trick_Helm" 1
84 endif
85endif
86
87if ( HasItemEquipped "TR_m3_Tou_P_Trick_PauldronL" == 0 )
88 if ( GetItemCount "TR_m3_Tou_P_Trick_PauldronL" > 0 )
89 RemoveItem "TR_m3_Tou_P_Trick_PauldronL" 1
90 AddItem "TR_m3_Tou_P_Trick_PauldronL" 1
91 endif
92endif
93
94if ( HasItemEquipped "TR_m3_Tou_P_Trick_PauldronR" == 0 )
95 if ( GetItemCount "TR_m3_Tou_P_Trick_PauldronR" > 0 )
96 RemoveItem "TR_m3_Tou_P_Trick_PauldronR" 1
97 AddItem "TR_m3_Tou_P_Trick_PauldronR" 1
98 endif
99endif
100
101if ( OnActivate )
102 ;this section stops the player from looting the illusory armor and a duplicate shield if they click on the body before the death animation finishes
103 if ( GetHealth <= 0 )
104 return
105 else
106 Activate
107 endif
108endif
109
110if ( TR_Map )
111 return
112endif
113
114set TR_Map to 3
115set TR_m3_OE_tourney to 1
116
117End