Morrowind Mod talk:GetStat

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

GetFight[edit]

Does anyone know what GetFight does?
FWDekker (talk) 15:13, 6 January 2019 (UTC)

Hur dur, of course it returns the Fight.
FWDekker (talk) 15:20, 6 January 2019 (UTC)

Encumbrance?[edit]

Is there a method to get a target's current carry weight? Secondly, is there a maximum carry weight capacity for that character/container that can be captured? Chill fridge (talk) 09:24, 1 June 2023 (UTC)

There are no console/scripting functions which allow you to access, display or modify an actor's Encumbrance. An NPC's maximum Encumbrance is calculated exactly the same as the player's: 5 * Strength. Therefore, you can determine an NPC's maximum Encumbrance by using the GetStrength function and multiplying the result by 5, but there is no way to determine an NPC's current carry weight. Note that GetStrength returns the NPC's current Strength, including any attribute bonuses/penalties (e.g. Fortify Strength or Drain Strength effects). The NPC's Strength, and therefore maximum Encumbrance, would change as soon as the effect wears off.
Container capacities are defined in the game data and cannot be displayed or modified in-game in any way. The only way to determine a container's maximum capacity (other than looking it up in the Construction Set) is to keep placing items into the container until it is "full" and adding up the items' weights. Note that this will (usually) not give you the exact maximum capacity of the container as there will usually be some "room" left over when you try to put the "overweight" item into it (e.g. if you try to put a 30-lb item into a 200-lb-maximum container which currently contains 180-lb. Another strange quirk is that if you then try to put a 10-lb item into the container, you will still be told that it won't fit, despite the fact that it would. Closing the container and re-opening it resets this issue (I think--it's been a while since I played and encountered this).)
All of this info is applicable to the original game engine. I'm not sufficiently conversant with OpenMW to know whether any Encumbrance-related functions are implemented there. — Wolfborn(Howl) 03:41, 2 June 2023 (UTC)
Once again you bless me with the facts, thank you my friend. Chill fridge (talk) 04:22, 2 June 2023 (UTC)

description of less apparent stats?[edit]

This page is referenced frequently—many 'get___' hyperlinks point here. Concatenating this many functions without descriptions of any kind seems somewhat problematic.
I don't know if this is an all-or-nothing situation. The page would become more cluttered if we committed to altering it to include descriptions, and if descriptions were added to just the few that aren't as obvious it might create a sense of inconsistency or incompleteness.
As a compromise, I figured I'd request a description for the following getStat functions to be included here in Talk. This might help with deciding what level of revision is warranted if any.
GetArmorBonus
GetDefendBonus
GetCastPenalty
GetFlying
GetHello
GetPCVisionBonus
Chill fridge (talk) 21:28, 12 June 2023 (UTC)