Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Int property BMStandCost auto
- spell property Battlemage1HSpellSide auto
- Float property Speed auto
- Int property BMBackCost auto
- Float property Direction auto
- Int property BMForwardCost auto
- actor property selfref auto hidden
- Int property BMBashCost auto
- spell property Battlemage1HSpellStand auto
- Int property BMSideCost auto
- spell property Battlemage1HSpellBack auto
- spell property Battlemage1HSpellForward auto
- function OnAnimationEvent(objectreference akSource, String EventName)
- If EventName == "WeaponSwing"
- Direction = selfref.GetAnimationVariableFloat("Direction")
- Speed = selfref.GetAnimationVariableFloat("Speed")
- Bool PowerAttack = selfref.GetAnimationVariableBool("bAllowRotation")
- if PowerAttack
- if Speed == 0.000000
- if selfref.GetActorValue("magicka") >= BMStandCost as Float
- Battlemage1HSpellStand.Cast(selfref as objectreference, none)
- game.getplayer().damageAv("magicka", BMStandCost as Float)
- game.Advanceskill("Restoration", BMStandCost as Float)
- endIf
- elseIf Speed > 0.000000
- if Direction == 1.00000 || Direction == 0.000000
- if selfref.GetActorValue("magicka") >= BMForwardCost as Float
- Battlemage1HSpellForward.Cast(selfref as objectreference, none)
- game.getplayer().damageAv("magicka", BMForwardCost as Float)
- game.Advanceskill("Restoration", BMForwardCost as Float)
- endIf
- elseIf Direction == 0.250000
- if selfref.GetActorValue("magicka") >= BMSideCost as Float
- Battlemage1HSpellSide.Cast(selfref as objectreference, none)
- game.getplayer().damageAv("magicka", BMSideCost as Float)
- game.Advanceskill("Restoration", BMSideCost as Float)
- endIf
- elseIf Direction == 0.750000
- if selfref.GetActorValue("magicka") >= BMSideCost as Float
- Battlemage1HSpellSide.Cast(selfref as objectreference, none)
- game.getplayer().damageAv("magicka", BMSideCost as Float)
- game.Advanceskill("Restoration", BMSideCost as Float)
- endIf
- elseIf Direction == 0.500000
- if selfref.GetActorValue("magicka") >= BMBackCost as Float
- Battlemage1HSpellBack.Cast(selfref as objectreference, none)
- game.getplayer().damageAv("magicka", BMBackCost as Float)
- game.Advanceskill("Restoration", BMBackCost as Float)
- endIf
- endIf
- endIf
- endIf
- endIf
- endFunction
- function OnEffectFinish(actor akTarget, actor akCaster)
- self.unregisterForAnimationEvent(akCaster as objectreference, "PowerAttack_Start_End")
- self.unregisterForAnimationEvent(akCaster as objectreference, "WeaponSwing")
- endFunction
- function OnEffectStart(actor akTarget, actor akCaster)
- selfref = akCaster
- self.registerForAnimationEvent(akCaster as objectreference, "PowerAttack_Start_End")
- self.registerForAnimationEvent(akCaster as objectreference, "WeaponSwing")
- endFunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement