Is there a way to get the actor a perk belongs to?

Post » Mon Feb 24, 2014 12:00 pm

I am creating a mod that applies a multiplication to the damage an actor does with daggers. The bonus damage different for each actor (stored in an external file).

I have created a perk, that I want to attach to each relevant actor, with an entry point that works with conditions "HasKeyword: WeapTypeDagger," where I set the value based on the actor. All I need to know is what actor the perk is applied to. Can I use a property on a perk script to get this? I thought of using an active magic effect to apply the perk and pass GetCurrentTarget() to it, but the compiler doesn't recognize the custom property in my perk script.

User avatar
Bereket Fekadu
 
Posts: 3421
Joined: Thu Jul 12, 2007 10:41 pm

Post » Mon Feb 24, 2014 1:10 pm

The perk entry point Mod Attack Damage has a conditions tab "Perk Owner" - just put your condition there and it will be run on the actor owning the perk. Should be pretty straightforward.

User avatar
MarilĂș
 
Posts: 3449
Joined: Sat Oct 07, 2006 7:17 am


Return to V - Skyrim