-
Notifications
You must be signed in to change notification settings - Fork 2
/
INVB_PerkKeywordAdder_Virus.psc
49 lines (40 loc) · 1.25 KB
/
INVB_PerkKeywordAdder_Virus.psc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Scriptname INVB_PerkKeywordAdder_Virus extends activemagiceffect
GlobalVariable property INVB_Global_Notes Auto Const Mandatory
Keyword Property FPE_NoPreg Auto
Perk Property Perk_IUD Auto
potion Property Potion_IUD Auto Const
string Property string_Enable auto
string Property string_Disable auto
bool Property bool_CanRemove auto
bool Property bool_GiveKeyword auto
bool Property bool_GivePerk auto
bool Property bool_GiveBackPotion auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
if akTarget.HasPerk(Perk_IUD) && bool_CanRemove == true
if bool_GivePerk == true
akTarget.RemovePerk(Perk_IUD)
endIf
if bool_GiveKeyword == true
akTarget.RemoveKeyword(FPE_NoPreg)
endIf
if bool_GiveBackPotion == true
Game.GetPlayer().additem(Potion_IUD, 1, true)
endIf
if INVB_Global_Notes.GetValue() == 1
debug.notification(string_Disable)
endIf
else
if bool_GivePerk == true
akTarget.AddPerk(Perk_IUD)
endIf
if bool_GiveKeyword == true
akTarget.AddKeyword(FPE_NoPreg)
endIf
if bool_GiveBackPotion == true
Game.GetPlayer().additem(Potion_IUD, 1, true)
endIf
if INVB_Global_Notes.GetValue() == 1
debug.notification(string_Enable)
endIf
endIf
EndEvent