Scriptname d20damaged extends ActorKeyword Property d2damager autoKeyword Property d4damager autoKeyword Property d6damager autoKeyword Property d8damager autoKeyword Property d10damager autoKeyword Property d12damager autoEvent OnHit(ObjectReference akAggressor, Form akWeapon, Projectile akProjectile) if akWeapon.HasKeyword(d2damager) ==1 int d2random = Utility.randomint(1,2) *-1 (self as actor).ModAV("health", d2random) endif if akWeapon.HasKeyword(d4damager) ==1 int d4random = Utility.randomint(1,4) *-1 (self as actor).ModAV("health", d4random) endif if akWeapon.HasKeyword(d6damager) ==1 int d6random = Utility.randomint(1,6) *-1 (self as actor).ModAV("health", d6random) endif if akWeapon.HasKeyword(d8damager) ==1 int d8random = Utility.randomint(1,8) *-1 (self as actor).ModAV("health", d8random) endif if akWeapon.HasKeyword(d10damager) ==1 int d10random = Utility.randomint(1,10) *-1 (self as actor).ModAV("health", d10random) endif if akWeapon.HasKeyword(d12damager) ==1 int d12random = Utility.randomint(1,12) *-1 (self as actor).ModAV("health", d12random) endifEndEventand this is the error it throws that I don't know what it is/what to do about it
Starting 1 compile threads for 1 files...Compiling "d20damaged"...c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\d20damaged.psc(11,1): the parameter types of function onhit in the empty state on script d20damaged do not match the parent script objectreferenceNo output generated for d20damaged, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on d20damaged
Thoughts?
