Difference between revisions of "Spell Cost"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(finally figured out what this formula is and where the constants are, so I'm putting it here.)
 
imported>DragoonWraith
(full, correct formula for determining the cost of a spell, including relevant GMSTs - much thanks to UESP for numerical formulae to match GMSTs to.)
Line 1: Line 1:
Casting a spell costs [[Magicka]]; the exact cost depends on the spell's cost and the player's skill. For custom player-made spells as well as Auto-Calculated spells made in the CS, the formula is
A spell's Magicka cost is determined by several different [[Category:Settings|game settings]] and the spell's magnitude, duration, area, and whether or not its range is Target.
  (BaseCost * fMagicDurMagBaseCostMult) * (Magnitude ^ fMagicCostScale) * (Duration) * (Area * fMagicAreaBaseCostMult)
  (BaseCost*fMagicDurMagBaseCostMult)
Where "BaseCost" is defined in the Magic Effect settings in the CS, and Magnitude, Duration, and Area are the parameters of the spell. If any of the parenthetical pieces of the formula is less than 1, 1 is used instead.
(Magnitude^fMagicCostScale)
Duration
(Area*fMagicAreaBaseCostMult)
(IsOnTarget*fMagicTargetCostMult)
If any of the pieces of the formula are less than 1, 1 is used instead.


The [[Category:Settings|game settings]] fMagicDurMagBaseCostMult, fMagicCostScale, and fMagicAreaBaseCostMult have default values of 0.1, 1.28, 0.15, respectively.
The game settings fMagicDurMagBaseCostMult, fMagicCostScale, fMagicAreaBaseCostMult, and fMagicTargetCostMult have default values of 0.1, 1.28, 0.15, and 1.5 respectively.
 
The actual cost to cast these spells is further modified by the caster's skill in the appropriate school of magic (which itself is modified by the character's Luck):
fMagicCasterSkillCostBase+(fMagicCasterSkillCostMult*(1-((Skill+(0.4*(Luck-50)/100)))
The GMST fMagicCasterSkillCostBase defaults to 0.2 and fMagicCasterSkillCostMult defaults to 1.2.


[[Category: Magic]]
[[Category: Magic]]

Revision as of 02:34, 5 January 2008

A spell's Magicka cost is determined by several different and the spell's magnitude, duration, area, and whether or not its range is Target.

(BaseCost*fMagicDurMagBaseCostMult)
(Magnitude^fMagicCostScale)
Duration
(Area*fMagicAreaBaseCostMult)
(IsOnTarget*fMagicTargetCostMult)

If any of the pieces of the formula are less than 1, 1 is used instead.

The game settings fMagicDurMagBaseCostMult, fMagicCostScale, fMagicAreaBaseCostMult, and fMagicTargetCostMult have default values of 0.1, 1.28, 0.15, and 1.5 respectively.

The actual cost to cast these spells is further modified by the caster's skill in the appropriate school of magic (which itself is modified by the character's Luck):

fMagicCasterSkillCostBase+(fMagicCasterSkillCostMult*(1-((Skill+(0.4*(Luck-50)/100)))

The GMST fMagicCasterSkillCostBase defaults to 0.2 and fMagicCasterSkillCostMult defaults to 1.2.