So, let's say that I want to record a bit of data every time the player is hit with power attack and has less than 25% of health left and the code looks a little like this:
Scriptname MyHitScript extends ReferenceAlias{Record data when player is hit.}GlobalVariable property WoundLevel autoEvent OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)if (abPowerAttack == true)int PlayerHealth = Game.GetPlayer().GetActorValuePercentage("Health") as intActorBase PlayerBase = Game.GetPlayer().GetBaseObject() as ActorBaseRace PlayerRace = PlayerBase.GetRace() If (PlayerHealth <= 0.25) debug.MessageBox("The strike was permanently crippling! Your abilities have been affacted, and you have a scar!") WoundLevel.Mod(1) endifendifEndEventI create a new quest and then click on the Quest Alias tab and create new by selecting "Unique Actor - Player". I then attach the above script to that Alias. Make sure that the quest runs at launch, and that it is set to start up.
If anyone knows what I am missing or doing wrong please be so kind to point me in the right direction.


