scriptName Dark extends activemagiceffect
;-- Properties --------------------------------------
activator property PlacedActivator auto
Armor property Armor1 auto
Scene property RiseScene auto
Idle property IdleWerewolfTransformation auto
Idle property IdleStopLoose auto
Idle property IdlePlayer auto
Armor property Shield auto
Spell property Swordspell auto
;-- Variables ---------------------------------------
bool KeepUpdating = true
objectReference ActivatorRef
form TargetActor
;-- Functions ---------------------------------------
function OnEffectFinish(Actor Target, Actor Caster)
Caster.removeitem(Armor1)
Caster.removeitem(Shield)
Caster.removespell(Swordspell)
endFunction
function OnEffectStart(Actor Target, Actor Caster)
if Target.GetActorBase().GetSex() == 0
Target.PlayIdle(IdleWerewolfTransformation)
utility.wait(4 as float)
Caster.additem(Armor1)
Caster.equipItem(Armor1)
Caster.additem(Shield)
Caster.equipItem(Shield)
Caster.addspell (Swordspell)
Target.PlayIdle(IdleStopLoose)
endIf
if Target.GetActorBase().GetSex() == 1
Target.PlayIdle(IdleWerewolfTransformation)
utility.wait(4 as float)
Caster.additem(Armor1)
Caster.equipItem(Armor1)
Caster.additem(Shield)
Caster.equipItem(Shield)
Caster.addspell (Swordspell)
Target.PlayIdle(IdleStopLoose)
endIf
endFunction