TR_m3_OE_FG_UnendingScr
TR_Mainland.esm
Variables
8
Local Variables
OnPCEquip
burdenBuff
blindBuff
silenceBuff
poisonBuff
damageBuff
control
controlQ
Source
1begin TR_m3_OE_FG_UnendingScr
2
3short OnPCEquip
4
5short burdenBuff
6short blindBuff
7short silenceBuff
8short poisonBuff
9short damageBuff
10short control
11short controlQ
12
13if ( control == 1 )
14 player->removespell "TR_m3_unending_burden"
15 player->removespell "TR_m3_unending_blind"
16 player->removespell "TR_m3_unending_silence"
17 player->removespell "TR_m3_unending_drainhp"
18 player->removespell "TR_m3_unending_poison"
19 set control to 0
20endif
21
22if ( OnPCEquip == 0 )
23 if ( controlQ == 1 )
24 set controlQ to 0
25 set control to 1
26 endif
27 return
28endif
29
30set controlQ to 1
31
32if ( damageBuff == 1 )
33 if ( player->GetEffect sEffectDamageHealth == 0 )
34 player->removespell "TR_m3_unending_drainhp"
35 set damageBuff to 0
36 endif
37elseif ( player->GetEffect sEffectDamageHealth == 1 )
38 player->addspell "TR_m3_unending_drainhp"
39 set damageBuff to 1
40endif
41
42if ( burdenBuff == 1 )
43 if ( player->GetEffect sEffectBurden == 0 )
44 player->removespell "TR_m3_unending_burden"
45 set burdenBuff to 0
46 endif
47elseif ( player->GetEffect sEffectBurden == 1 )
48 player->addspell "TR_m3_unending_burden"
49 set burdenBuff to 1
50endif
51
52if ( blindBuff == 1 )
53 if ( player->GetEffect sEffectBlind == 0 )
54 player->removespell "TR_m3_unending_blind"
55 set blindBuff to 0
56 endif
57elseif ( player->GetEffect sEffectBlind == 1 )
58 player->addspell "TR_m3_unending_blind"
59 set blindBuff to 1
60endif
61
62if ( silenceBuff == 1 )
63 if ( player->GetEffect sEffectSilence == 0 )
64 player->removespell "TR_m3_unending_silence"
65 set silenceBuff to 0
66 endif
67elseif ( player->GetEffect sEffectSilence == 1 )
68 player->addspell "TR_m3_unending_silence"
69 set silenceBuff to 1
70endif
71
72if ( poisonBuff == 1 )
73 if ( player->GetEffect sEffectPoison == 0 )
74 player->removespell "TR_m3_unending_poison"
75 set poisonBuff to 0
76 endif
77elseif ( player->GetEffect sEffectPoison == 1 )
78 player->addspell "TR_m3_unending_poison"
79 set poisonBuff to 1
80endif
81
82end