Drain stamina on sneak

Post » Tue Mar 11, 2014 6:58 pm

I managed to make a simple quest that runs a spell that works on sneak+moveemnt. BUT I’d like more, one is you can buy “preks” on sneak skill level of 30,75 and 100 that reduces the drain by 25,50 and 90%. Buying preks would probably be something like you find a sneak trainer and they have a purchase option where you can buy the prek for coin but only if you have the skill requirements.

For the preks the only way I can think of is make a regen stamina spell that reduces/counter reacts the drain stamina spell. ><

To start off how would I make a perk that can be bought? I’ve never added the ability to buy stuff to a person who has dialog options.

So far I have 2 separate spells one for run+sneak and one for walk+sneak . It drains fine on run+sneak but if I strafe while walk+sneak it does not drain 0-o

User avatar
Angel Torres
 
Posts: 3553
Joined: Thu Oct 25, 2007 7:08 am

Post » Tue Mar 11, 2014 5:58 pm

Take a peek at my mod http://www.nexusmods.com/skyrim/mods/50159/?.

What you need to do to solve the strafe issue is check for movement greater than 1.

Details are here: http://www.creationkit.com/IsMoving.

User avatar
JeSsy ArEllano
 
Posts: 3369
Joined: Fri Oct 20, 2006 10:51 am

Post » Tue Mar 11, 2014 10:04 pm

Thanks, another problem I ran into is that walk+sneak+stamina drain drains to much even on 0.01 or 0 for that matter. I'd have to get a script to turn 1 point into 100 or 10 to have it degrade at a slower rate then put in a script that dulls sneak skill by 50 points if you are out of stamina. blah ><

I checked out your esp, so I am missing the var? What dose the getglobalvalue do on the stamina:stamina effect?

User avatar
tiffany Royal
 
Posts: 3340
Joined: Mon Dec 25, 2006 1:48 pm


Return to V - Skyrim