Damage sneak on loss of stamina

Post » Thu Jun 26, 2014 6:22 am

So I am trying to

Drain stamina on sneak=Working albeit not when you sneak backwards

Boost sneak by 30% when sneaking and stamina is above 10%=Not working

Drop sneak by 80% when stamina drops below 10%=Not working

Damage sneak by 5000 points when stamina drops below 10%=Not working

I tried getstaminaprecent and getactorvauleprectange

Neither seem to work, I guess it comes down to how I deal with stamina as fortify 30% does not work either.For fortify and damage sneak I tried turning the 10% to 90% and that did not show any results.

Heres a pic, http://zippydsmlee.tumblr.com/image/89890575800

User avatar
City Swagga
 
Posts: 3498
Joined: Sat May 12, 2007 1:04 am

Post » Thu Jun 26, 2014 1:52 am

One thing I noticed straight off : you're GetActorValuePercent is wrong. It returns a value between 0 and 1, not 0 and 100; try changing that, and see if there's any difference.

I'm also not sure if SneakMod works in percent or points; on a normal AV, 30 does not equal 30%, but 30 points; so if you boost 100 by 30, it equals 130, which IS 30%, but if your AV was 200, it would be boosted by 30 still, which is only 15%. I'd double check that, just in case.

Also, is it your Sneak SKILL you want to boost? Because I'm pretty sure that's a separate thing again from Sneak Mod, but SneakMod might be the one you need, anyway, depending what you're trying to do.

User avatar
Cool Man Sam
 
Posts: 3392
Joined: Thu May 10, 2007 1:19 pm


Return to V - Skyrim