Difference between revisions of "User:JRoush"

2,006 bytes removed ,  19:53, 16 July 2010
imported>JRoush
imported>JRoush
Line 20: Line 20:


The GetCursorPos function is a bit dodgy.  Returned positions are not consistent, and seem to depend on integrated movement history.  This, combined with the lack of a function to get screen resolution, makes it impractical for use in menus (specifically, I couldn't use it to script in a custom slider bar).
The GetCursorPos function is a bit dodgy.  Returned positions are not consistent, and seem to depend on integrated movement history.  This, combined with the lack of a function to get screen resolution, makes it impractical for use in menus (specifically, I couldn't use it to script in a custom slider bar).
=== Actor Values ===
Reasonably sure the notes on the [[:Category:Actor Value Functions]] page are incorrect or incomplete.
From poking around the disassembly:
'''Note''': these formulas do not apply for Fame, Infamy, or Bounty, which are calculated differently.
BaseCalcAV = (BaseAV + CalcAdd) * CalcMult
MaxAV = BaseCalcAV + MaxAdd
CurAV = MaxAV + CurAdd
where
* '''BaseCalcAV''' is true "base" value of the AV, as retrieved by the GetBaseAV function.  It is '''not''' necessarily the max or "full health" value you see in the attributes menu.
* '''BaseAV''' is the raw AV value of the ''base form'', as loaded from the file.  It can be modified directly by the SetAV function, and by some Ability-type spells.
* '''CalcAdd''' is an added factor computed from other AVs & gamesettings.  Only nonzero for the player, and only for Health, Magicka, Fatigue, and Encumbrance.  This is, for example, what adds the factor of (fPCBaseHealthMult*Endurance) to the player's health.  This term cannot be directly changed.
* '''CalcMult''' is a multiplier computed from other AVs.  Only non-1.0 for the player, and only for Magicka, where it is the value of the player's MagickaMultiplier AV.  This term cannot be directly changed.
* '''MaxAV''' is the max or "full health" value of the attribute.  If it is greater than the BaseCalcAV, it shows up green, if it is less it shows up red, and if it is equal it shows up blue.
* '''MaxAdd''' is a factor maintained for each ref object, independent of the base form.  It can be modified directly by "recoverable" effects such as Fortify and Drain.
* '''CurAV''' is the current value of the AV.  For health/magicka/fatigue it is shown in the menu using the same color as the max value.  For skills + attributes, it's color is computed directly.
* '''CurAdd''' is a factor maintained for each ref object, independent of the base form.  It can be modified directly using the ModAV and ForceAV functions, and by "nonrecoverable" effects such as Damage and Restore.
Anonymous user