Condition to check if the player is overencumbered?

Post » Mon Nov 19, 2012 4:34 am

Is there a condition to check whether the player is overencumbered or not?

I can't do it via papyrus, I need it to be a condition on a magic effect. GetActorValuePercent CarryWeight does not work unfortunately.
User avatar
Barbequtie
 
Posts: 3410
Joined: Mon Jun 19, 2006 11:34 pm

Post » Mon Nov 19, 2012 3:37 pm

http://www.creationkit.com/Actor_Valuecould help

Looks like you dont need the Percent in your GetActorValue, but you proberly need to find a way to check if current value is greater then allowed value, or as an alternative if the player can fast travel or not. Fast travel is normally blocked once you carry to much :)
User avatar
Lyndsey Bird
 
Posts: 3539
Joined: Sun Oct 22, 2006 2:57 am

Post » Mon Nov 19, 2012 5:59 pm

GetActorValue would allow me to check if the player is carrying over a certain amount, but the amount changes based on Stamina...

IsFastTravelEnabled is an option, but not an optimal one. This will trip the spell when the player is indoors, for example.
User avatar
Red Bevinz
 
Posts: 3318
Joined: Thu Sep 20, 2007 7:25 am

Post » Mon Nov 19, 2012 4:21 pm

GetActorValue would allow me to check if the player is carrying over a certain amount, but the amount changes based on Stamina...

Wouldent it be possible to parse the current stamina the player have, in say a float and check that to the spell?
User avatar
Danger Mouse
 
Posts: 3393
Joined: Sat Oct 07, 2006 9:55 am

Post » Mon Nov 19, 2012 10:01 am

some thing like this
int playersStamina = Game.GetPlayer().GetActorValue("Stamina") as int
and then check the value you get from that against what other conditions you have in your script?
User avatar
LittleMiss
 
Posts: 3412
Joined: Wed Nov 29, 2006 6:22 am

Post » Mon Nov 19, 2012 8:32 am

Stamina might not be optimal either, because it will not work as intended with mods that change the stamina/encumbrance relationship.
User avatar
Lily Something
 
Posts: 3327
Joined: Thu Jun 15, 2006 12:21 pm


Return to V - Skyrim