need to get armor value of actor

Post » Sat Jan 26, 2013 3:13 pm

Hey my first real time working with the creation kit and with papyrus but it doesn't too hard. I've got a couple throwing weapon mods in place and I'm looking to switch up their damage calculations because they're massively OP. When I went to edit their damage scripts, I discovered they didn't factor in the target's armor when damage is calculated. After some extensive searching, it appears that there is no easy way to get an actor's armor value. I considered the following possibilities:

1. Iterate through their default outfit and assume that is what they are wearing, but a quick check of Hadvar's inventory showed that there was not a list of armors but instead an entire set in there. This might make it more difficult but i hope not.

2. Create a gigantic list of every armor type and loop through it, calling Armor.GetArmorRating() Except that function doesn't exist to the best of my knowledge so I would have to write, in the script, the armor values for every piece of armor in addition to compiling the gigantic list of armor pieces. This is probably the worst option unless #3 turns out to be more difficult.

3. Make my own mod that doesn't use scripts and instead tries to modify a bow to look more like throwing knives.


I must say that what you can do with the built in papyrus functions is pretty insufficient for lots of things and that the kit in general appears to be a pretty poor design too (architecture, control, etc.). What other solutions exist? I'm really down for anything no matter how technically difficult; I only fear the tedious list appending in #2.
User avatar
jason worrell
 
Posts: 3345
Joined: Sat May 19, 2007 12:26 am

Return to V - Skyrim