-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINEQ_MehrunesRazorContact.psc
25 lines (19 loc) · 1.25 KB
/
INEQ_MehrunesRazorContact.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
Scriptname INEQ_MehrunesRazorContact extends ActiveMagicEffect
{Probabilistically kills target if the target is not immune}
;=========================================== Properties ===========================================================================>
Faction Property pDA07MehrunesRazorImmuneFaction Auto
GlobalVariable Property KillChance Auto
;========================================== Autoreadonly ==========================================================================>
;=========================================== Variables ============================================================================>
;===============================================================================================================================
;==================================== Functions ================================================
;================================================================================================
; Apply this effect if the target is not immune
Event OnEffectStart(Actor akTarget, Actor akCaster)
If akTarget.IsInFaction(pDA07MehrunesRazorImmuneFaction) == 0
If (Utility.RandomInt(1, 100) <= KillChance.GetValueInt())
Debug.Notification("Mehrunes Razor eliminated a foe")
akTarget.Kill()
EndIf
EndIf
EndEvent